Skip to content
Threat Brief

← All advisories

CVE-2026-13732

High 7.0No known exploitationFix status unknown

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

Record last updated

CVSS score

7.0

High on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.2%

Higher than 5% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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.

Weakness: CWE-787

Patching and mitigation

Patch status
Unknown: no source documents a fix
Mitigation
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 ` before debugging. - Use `readelf -S | 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 (opens in a new tab)
Vendor guidance
access.redhat.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
Red HatRed Hat Enterprise Linux 6Not documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 7Not documentedNot documentedCVE Program
Red HatRed Hat Cost Management On-Premise 1 (unaffected)1791460851Not documentedCVE Program
Red HatRed Hat Enterprise Linux 10 (unaffected)0:16.3-3.1.el10_2Not documentedCVE Program
Red HatRed Hat Enterprise Linux 10.0 Extended Update Support (unaffected)0:14.2-4.3.el10_0Not documentedCVE Program
Red HatRed Hat Enterprise Linux 8 (unaffected)0:8.2-20.1.el8_10Not documentedCVE Program
Red HatRed Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support (unaffected)0:8.2-15.1.el8_4Not documentedCVE Program
Red HatRed Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On (unaffected)0:8.2-15.1.el8_4Not documentedCVE Program
Red HatRed Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support (unaffected)0:8.2-18.1.el8_6Not documentedCVE Program
Red HatRed Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On (unaffected)0:8.2-18.1.el8_6Not documentedCVE Program
Red HatRed Hat Enterprise Linux 8.8 Telecommunications Update Service (unaffected)0:8.2-19.1.el8_8Not documentedCVE Program
Red HatRed Hat Enterprise Linux 8.8 Update Services for SAP Solutions (unaffected)0:8.2-19.1.el8_8Not documentedCVE Program
Red HatRed Hat Enterprise Linux 9 (unaffected)0:16.3-3.1.el9_8Not documentedCVE Program
Red HatRed Hat Enterprise Linux 9.2 Update Services for SAP Solutions (unaffected)0:10.2-10.2.el9_2Not documentedCVE Program
Red HatRed Hat Enterprise Linux 9.4 Update Services for SAP Solutions (unaffected)0:10.2-13.1.el9_4Not documentedCVE Program
Red HatRed Hat Enterprise Linux 9.6 Extended Update Support (unaffected)0:14.2-4.2.el9_6Not documentedCVE Program
Red HatRed Hat Hardened Images (unaffected)17.2-6.2.hum1Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.0 (unaffected)1794259031Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.0 (unaffected)1794259034Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.0 (unaffected)1794259119Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.0 (unaffected)1794259393Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.0 (unaffected)1794260794Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.4 (unaffected)1794259064Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.4 (unaffected)1794259182Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.4 (unaffected)1794259370Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.4 (unaffected)1794259404Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.4 (unaffected)1794259570Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.4 (unaffected)1794259815Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.4 (unaffected)1794260191Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.4 (unaffected)1794260631Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.4 (unaffected)1794260782Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.5 (unaffected)1794259110Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.5 (unaffected)1794259162Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.5 (unaffected)1794259318Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.5 (unaffected)1794259380Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.5 (unaffected)1794259456Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.5 (unaffected)1794259559Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.5 (unaffected)1794259807Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.5 (unaffected)1794259862Not documentedCVE Program
Red HatRed Hat OpenShift AI 3.5 (unaffected)1794259958Not documentedCVE Program
Red HatRed Hat Update Infrastructure 5 (unaffected)1791964013Not documentedCVE Program
Red HatRed Hat Update Infrastructure 5 (unaffected)1791978528Not documentedCVE Program
Red HatRed Hat Update Infrastructure 5 (unaffected)1791978528Not documentedCVE Program
Red HatRed Hat Update Infrastructure 5 (unaffected)1791978534Not documentedCVE Program
Red HatRed Hat Update Infrastructure 5 (unaffected)1791978693Not documentedCVE Program

Timeline

  1. Disclosure

    CVE record published by redhat

    Source: CVE Program (opens in a new tab)

Vendor guidance and references

CVE-2026-13732: Gdb: gdb: out-of-bounds write in stabs parser read_member_functions() via crafted elf · Threat Brief