Description
A flaw was found in GDB's STABS debug format parser. The
read_member_functions() function in gdb/stabsread.c contains a linked
list removal bug in the code that separates destructor and non-destructor
member functions of C++ classes. The bug causes the destructor entries to
remain in the main function list while the list length counter is
decremented, resulting in an out-of-bounds write when the function list
is copied to its final allocated array. An attacker can craft an ELF
binary with malicious .stab and .stabstr sections that triggers this
out-of-bounds write when a user opens the file in GDB and performs any
symbol-inspection operation such as setting a breakpoint. The inferior
process does not need to be executed. Under controlled conditions, this
was demonstrated to achieve execution of arbitrary commands within the
GDB process.
Published: 2026-08-31
Score: 7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

Vendor Workaround

The following practices would help for avoiding exposure and mitigate this flaw: - Do not open untrusted or unknown ELF binaries in GDB without first stripping debug sections. Use `objcopy --remove-section=.stab --remove-section=.stabstr <binary>` before debugging. - Use `readelf -S <binary> | grep stab` to check for the presence of STABS sections before opening a binary in GDB. Legitimate modern binaries use DWARF, not STABS. - Consider using LLDB or other debuggers that do not support STABS for analysis of untrusted binaries. - For automated environments (CI, test farms) that invoke GDB on potentially untrusted binaries, run GDB in a sandboxed or containerized environment with restricted filesystem access. - GDB 17+ deprecates STABS support but still parses it. GDB 18 (expected late 2026/2027) will remove STABS support entirely. - GCC removed STABS emitting in GCC 13 (2023), so legitimately compiled binaries from recent GCC versions will not contain STABS data.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
Link Providers
https://access.redhat.com/errata/RHSA-2026:73425 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:73426 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:73427 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:79357 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:82447 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:82939 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:96095 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:96096 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:96097 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:96098 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98414 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98415 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98416 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98417 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98419 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98420 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98421 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98423 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98427 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98428 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98429 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98430 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98431 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98432 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98434 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98435 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98436 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98437 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98438 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98439 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98440 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98441 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:98443 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:99594 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:99596 cve-icon cve-icon
https://access.redhat.com/errata/RHSA-2026:99597 cve-icon cve-icon
https://access.redhat.com/security/cve/CVE-2026-13732 cve-icon cve-icon
https://bugzilla.redhat.com/show_bug.cgi?id=2494416 cve-icon cve-icon
History

Fri, 13 Nov 2026 12:30:00 +0000


Thu, 12 Nov 2026 11:45:00 +0000

Type Values Removed Values Added
CPEs cpe:/a:redhat:rhel_aus:8.6::appstream
cpe:/a:redhat:rhel_eus_long_life:8.6::appstream
References

Thu, 12 Nov 2026 11:30:00 +0000

Type Values Removed Values Added
First Time appeared Redhat rhel Aus
Redhat rhel Eus Long Life
Redhat rhel Tus
CPEs cpe:/a:redhat:rhel_aus:8.4::appstream
cpe:/a:redhat:rhel_e4s:8.8::appstream
cpe:/a:redhat:rhel_eus_long_life:8.4::appstream
cpe:/a:redhat:rhel_tus:8.8::appstream
Vendors & Products Redhat rhel Aus
Redhat rhel Eus Long Life
Redhat rhel Tus
References

Mon, 09 Nov 2026 05:30:00 +0000

Type Values Removed Values Added
CPEs cpe:/a:redhat:rhel_e4s:9.4::appstream
References

Mon, 09 Nov 2026 03:30:00 +0000

Type Values Removed Values Added
First Time appeared Redhat rhel E4s
Redhat rhel Eus
CPEs cpe:/a:redhat:rhel_e4s:9.2::appstream
cpe:/a:redhat:rhel_eus:9.6::appstream
Vendors & Products Redhat rhel E4s
Redhat rhel Eus
References

Mon, 09 Nov 2026 03:00:00 +0000

Type Values Removed Values Added
First Time appeared Redhat enterprise Linux Eus
CPEs cpe:/o:redhat:enterprise_linux_eus:10.0
Vendors & Products Redhat enterprise Linux Eus
References

Wed, 04 Nov 2026 22:15:00 +0000

Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els

Wed, 14 Oct 2026 19:15:00 +0000

Type Values Removed Values Added
First Time appeared Redhat rhui
CPEs cpe:/a:redhat:rhui:5::el9
Vendors & Products Redhat rhui
References

Wed, 14 Oct 2026 02:45:00 +0000

Type Values Removed Values Added
References

Fri, 09 Oct 2026 01:30:00 +0000

Type Values Removed Values Added
First Time appeared Redhat cost Management On Premise
CPEs cpe:/a:redhat:cost_management_on_premise:1::el10
Vendors & Products Redhat cost Management On Premise
References

Tue, 29 Sep 2026 21:00:00 +0000

Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:9 cpe:/a:redhat:enterprise_linux:9::appstream
References

Tue, 29 Sep 2026 16:30:00 +0000

Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:8::appstream
cpe:/o:redhat:enterprise_linux:10.2
References

Fri, 04 Sep 2026 14:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}


Tue, 01 Sep 2026 22:00:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 31 Aug 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Redhat hardened Images
Vendors & Products Redhat hardened Images

Mon, 31 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Description A flaw was found in GDB's STABS debug format parser. The read_member_functions() function in gdb/stabsread.c contains a linked list removal bug in the code that separates destructor and non-destructor member functions of C++ classes. The bug causes the destructor entries to remain in the main function list while the list length counter is decremented, resulting in an out-of-bounds write when the function list is copied to its final allocated array. An attacker can craft an ELF binary with malicious .stab and .stabstr sections that triggers this out-of-bounds write when a user opens the file in GDB and performs any symbol-inspection operation such as setting a breakpoint. The inferior process does not need to be executed. Under controlled conditions, this was demonstrated to achieve execution of arbitrary commands within the GDB process.
Title Gdb: gdb: out-of-bounds write in stabs parser read_member_functions() via crafted elf
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
Weaknesses CWE-787
CPEs cpe:/a:redhat:hummingbird:1
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}


Subscriptions

Redhat Cost Management On Premise Enterprise Linux Enterprise Linux Eus Hardened Images Hummingbird Openshift Ai Rhel Aus Rhel E4s Rhel Els Rhel Eus Rhel Eus Long Life Rhel Tus Rhui
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-11-13T12:22:59.561Z

Reserved: 2026-06-29T14:42:33.339Z

Link: CVE-2026-13732

cve-icon Vulnrichment

Updated: 2026-09-01T14:33:23.544Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-08-31T20:17:02.180

Modified: 2026-11-13T13:18:22.137

Link: CVE-2026-13732

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-04T16:15:05Z

Weaknesses