Skip to main content

A flaw was found in GDB's STABS debug format parser. (CVE-2026-13732)

0
Medium
Published: 08/31/2026 (08/31/2026, 20:17:00 UTC)
Source: GCVE Database
Product: gdb

Description

A vulnerability exists in GDB's STABS debug format parser due to a linked list removal bug in the read_member_functions() function. This bug causes destructor entries to remain in the main function list while the list length counter is decremented, leading to an out-of-bounds write when copying the function list to its final array. An attacker can craft a malicious ELF binary with specially crafted .stab and .stabstr sections that trigger this out-of-bounds write when a user opens the binary in GDB and performs symbol-inspection operations. The inferior process does not need to be executed for exploitation. Under controlled conditions, arbitrary command execution within the GDB process has been demonstrated.

CVSS v3.1

Score 7.0high

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

Ubuntu:Pro:16.04:LTSmore threats →ghsa
gdb
pkg:deb/ubuntu/gdb?arch=source&distro=esm-infra/xenial
Affected versions
=7.10-1ubuntu2=7.10-1ubuntu3=7.10.1-0ubuntu1=7.10.90.20160215-0ubuntu2=7.10.90.20160220-0ubuntu1=7.11-0ubuntu1=7.11.1-0ubuntu1~16.04=7.11.1-0ubuntu1~16.5=7.11.1-0ubuntu1~16.5+esm1
Ubuntu:Pro:18.04:LTSmore threats →ghsa
gdb
pkg:deb/ubuntu/gdb?arch=source&distro=esm-infra/bionic
Affected versions
=8.0.1-0ubuntu1=8.0.1-0ubuntu2=8.0.1-0ubuntu3=8.1-0ubuntu1=8.1-0ubuntu2=8.1-0ubuntu3=8.1-0ubuntu3.1=8.1-0ubuntu3.2=8.1.1-0ubuntu1=8.1.1-0ubuntu1+esm1
Ubuntu:20.04:LTSmore threats →ghsa
gdb
pkg:deb/ubuntu/gdb?arch=source&distro=focal
Affected versions
=8.3-0ubuntu1=9.0.50.20191019-0ubuntu1=9.0.50.20191119-0ubuntu1=9.0.90.20191216-0ubuntu1=9.0.90.20200105-0ubuntu1=9.0.90.20200117-0ubuntu1=9.1-0ubuntu1=9.2-0ubuntu1~20.04=9.2-0ubuntu1~20.04.1=9.2-0ubuntu1~20.04.2
Ubuntu:22.04:LTSmore threats →ghsa
gdb
pkg:deb/ubuntu/gdb?arch=source&distro=jammy
Affected versions
=11.1-0ubuntu2=11.1-0ubuntu3=11.2-0ubuntu1=12.0.50.20220217-0ubuntu1=12.0.90-0ubuntu1=12.1-0ubuntu1~22.04=12.1-0ubuntu1~22.04.2
Ubuntu:24.04:LTSmore threats →ghsa
gdb
pkg:deb/ubuntu/gdb?arch=source&distro=noble
Affected versions
=14.0.50.20230907-0ubuntu1=14.1-0ubuntu1=14.1-0ubuntu2=15.0.50.20240219-0ubuntu1=15.0.50.20240320-0ubuntu1=15.0.50.20240403-0ubuntu1=15.1-1ubuntu1~24.04.1
Ubuntu:26.04:LTSmore threats →ghsa
gdb
pkg:deb/ubuntu/gdb?arch=source&distro=resolute
Affected versions
=16.3-1ubuntu2=16.3-5ubuntu1=17.1-1ubuntu1=17.1-1ubuntu2=17.1-2ubuntu1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/11/2026, 22:33:43 UTC

Technical Analysis

CVE-2026-13732 is a vulnerability in the GNU Debugger (GDB) affecting the STABS debug format parser. The flaw is a linked list removal bug in the read_member_functions() function in gdb/stabsread.c, which improperly handles destructor and non-destructor member functions of C++ classes. This results in destructor entries remaining in the main function list while the list length counter is decremented, causing an out-of-bounds write during the copying of the function list to its allocated array. An attacker can exploit this by crafting an ELF binary with malicious .stab and .stabstr sections. When a user opens this binary in GDB and performs any symbol-inspection command (e.g., setting a breakpoint), the out-of-bounds write is triggered. The inferior process does not need to be running for this to occur. Controlled exploitation has demonstrated arbitrary command execution within the GDB process. The vulnerability affects all currently supported Red Hat product streams shipping GDB, as STABS parsing is active by default. GDB 17 deprecated STABS parsing, and GDB 18 will remove it entirely. GCC removed STABS emitting support in GCC 13. Mitigations include avoiding opening untrusted ELF binaries with STABS sections in GDB, stripping debug sections before debugging, using alternative debuggers like LLDB, and sandboxing GDB in automated environments.

Potential Impact

The vulnerability allows an attacker to cause an out-of-bounds write in the GDB process by opening a crafted ELF binary with malicious STABS debug sections and performing symbol inspection commands. This can lead to arbitrary command execution within the GDB process, compromising confidentiality, integrity, and availability of the debugging environment. The attack requires local user interaction (opening the binary in GDB and issuing commands) but does not require the inferior process to be running. The CVSS 3.1 score is 7.0 (medium severity) with high impact on confidentiality, integrity, and availability.

Mitigation Recommendations

A fix is available as GDB 18 (expected late 2026/2027) will remove STABS support entirely. In the meantime, users should avoid opening untrusted or unknown ELF binaries in GDB without first stripping .stab and .stabstr sections using tools like `objcopy --remove-section=.stab --remove-section=.stabstr <binary>`. Users can check for STABS sections with `readelf -S <binary> | grep stab`. Consider using alternative debuggers such as LLDB that do not support STABS for untrusted binaries. For automated environments invoking GDB on untrusted binaries, run GDB in sandboxed or containerized environments with restricted filesystem access. Since GDB 17 deprecated STABS parsing but still parses it, upgrading to GDB 18 when available is recommended.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-13732
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.04:LTS"]
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6aa47ec255bf5e2cf5857a27

Added to database: 09/11/2026, 22:20:50 UTC

Last enriched: 09/11/2026, 22:33:43 UTC

Last updated: 09/11/2026, 22:49:44 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses