Public vulnerability disclosure

CVE-2026-13732

Gdb: gdb: out-of-bounds write in stabs parser read_member_functions() via crafted elf

publishedCWE-787

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.

Technical severity7.0 highCVSS 3.1 · CNA: redhat
Published2026-08-31Source updated 2026-11-09
Collected2026-11-093 attributed sources

Fixes and workarounds

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.

Source: CNA: redhat

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
Red Hat Enterprise Linux 10
Red Hat
gdb
https://access.redhat.com/downloads/content/package-browser/
≥ 0:16.3-3.1.el10_2; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat Enterprise Linux 10.0 Extended Update Support
Red Hat
gdb
https://access.redhat.com/downloads/content/package-browser/
≥ 0:14.2-4.3.el10_0; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat Enterprise Linux 8
Red Hat
gdb
https://access.redhat.com/downloads/content/package-browser/
≥ 0:8.2-20.1.el8_10; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat Enterprise Linux 9
Red Hat
gdb
https://access.redhat.com/downloads/content/package-browser/
≥ 0:16.3-3.1.el9_8; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
Red Hat
gdb
https://access.redhat.com/downloads/content/package-browser/
≥ 0:10.2-10.2.el9_2; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat Enterprise Linux 9.6 Extended Update Support
Red Hat
gdb
https://access.redhat.com/downloads/content/package-browser/
≥ 0:14.2-4.2.el9_6; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat Cost Management On-Premise 1
Red Hat
costmanagement/costmanagement-ui-rhel10
https://catalog.redhat.com/software/containers/
≥ 1791460851; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat Hardened Images
Red Hat
gdb-main
https://catalog.redhat.com/software/containers/
≥ 17.2-6.2.hum1; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat Update Infrastructure 5
Red Hat
rhui5/cds-kubernetes-rhel9
https://catalog.redhat.com/software/containers/
≥ 1791978534; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat Update Infrastructure 5
Red Hat
rhui5/cds-rhel9
https://catalog.redhat.com/software/containers/
≥ 1791978528; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat Update Infrastructure 5
Red Hat
rhui5/haproxy-rhel9
https://catalog.redhat.com/software/containers/
≥ 1791978528; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat Update Infrastructure 5
Red Hat
rhui5/installer-rhel9
https://catalog.redhat.com/software/containers/
≥ 1791964013; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat Update Infrastructure 5
Red Hat
rhui5/rhua-rhel9
https://catalog.redhat.com/software/containers/
≥ 1791978693; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat Enterprise Linux 6
Red Hat
gdb
https://access.redhat.com/downloads/content/package-browser/
Range not reported
Other versions: affected
CNA: redhat
Red Hat Enterprise Linux 7
Red Hat
gdb
https://access.redhat.com/downloads/content/package-browser/
Range not reported
Other versions: affected
CNA: redhat

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

CVSS assessments

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
3.1 / 7.0
high
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HCNA: redhat
3.1 / 7.0
high
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HNVD: [email protected]

Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

References

For agents and automation

Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.

Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.

Endpoints and access details

https://api.y2.dev/api/v2/cyber/cves
https://api.y2.dev/api/v2/cyber/cves/{cveId}

A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.

For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.

Agent access JSON · OpenAPI · CVE API guide