CVEfocus › CVE database › CVE-2026-13732

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

CVSS 7.0 HighEPSS 0.2% (higher than 5% of CVEs)Published 2026-08-31Updated 2026-11-13Assigner: redhat

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.

CWE-787

What to do

Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

27Fixed
9Fix pending
3Under investigation
3Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10gdbFix pendingUBUNTU-CVE-2026-13732
Ubuntu 26.04gdbUnder investigationUBUNTU-CVE-2026-13732
Ubuntu 24.04gdbUnder investigationUBUNTU-CVE-2026-13732
Ubuntu 22.04gdbUnder investigationUBUNTU-CVE-2026-13732
Ubuntu 20.04gdbFix pendingUBUNTU-CVE-2026-13732
Ubuntu 18.04gdbFix pendingUBUNTU-CVE-2026-13732
Ubuntu 16.04gdbFix pendingUBUNTU-CVE-2026-13732
Debian 14gdbWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2026-13732
Debian 13gdbWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2026-13732
Debian 12gdbWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2026-13732
Red Hat Enterprise Linux 10gdbFixed0:16.3-3.1.el10_2RHSA-2026:73427
Red Hat Enterprise Linux 10gdb-docFixed0:16.3-3.1.el10_2RHSA-2026:73427
Red Hat Enterprise Linux 10gdb-gdbserverFixed0:16.3-3.1.el10_2RHSA-2026:73427
Red Hat Enterprise Linux 10gdb-headlessFixed0:16.3-3.1.el10_2RHSA-2026:73427
Red Hat Enterprise Linux 10gdb-minimalFixed0:16.3-3.1.el10_2RHSA-2026:73427
Red Hat Enterprise Linux 9gdbFixed0:16.3-3.1.el9_8RHSA-2026:73426
Red Hat Enterprise Linux 9gdb-docFixed0:16.3-3.1.el9_8RHSA-2026:73426
Red Hat Enterprise Linux 9gdb-gdbserverFixed0:16.3-3.1.el9_8RHSA-2026:73426
Red Hat Enterprise Linux 9gdb-headlessFixed0:16.3-3.1.el9_8RHSA-2026:73426
Red Hat Enterprise Linux 9gdb-minimalFixed0:16.3-3.1.el9_8RHSA-2026:73426
Red Hat Enterprise Linux 8gdbFixed0:8.2-20.1.el8_10RHSA-2026:73425
Red Hat Enterprise Linux 8gdb-docFixed0:8.2-20.1.el8_10RHSA-2026:73425
Red Hat Enterprise Linux 8gdb-gdbserverFixed0:8.2-20.1.el8_10RHSA-2026:73425
Red Hat Enterprise Linux 8gdb-headlessFixed0:8.2-20.1.el8_10RHSA-2026:73425
Red Hat Enterprise Linux 7gdbFix pending
Affected
Red Hat Enterprise Linux 7gdb-docFix pending
Affected
Red Hat Enterprise Linux 7gdb-gdbserverFix pending
Affected
Red Hat Enterprise Linux 6gdbFix pending
Affected
Red Hat Enterprise Linux 6gdb-gdbserverFix pending
Affected
AlmaLinux 10gdb-docFixed16.3-3.1.el10_2ALSA-2026:73427
AlmaLinux 9gdbFixed16.3-3.1.el9_8ALSA-2026:73426
AlmaLinux 9gdb-docFixed16.3-3.1.el9_8ALSA-2026:73426
AlmaLinux 9gdb-gdbserverFixed16.3-3.1.el9_8ALSA-2026:73426
AlmaLinux 9gdb-headlessFixed16.3-3.1.el9_8ALSA-2026:73426
AlmaLinux 9gdb-minimalFixed16.3-3.1.el9_8ALSA-2026:73426
AlmaLinux 8gdbFixed8.2-20.1.el8_10ALSA-2026:73425
AlmaLinux 8gdb-docFixed8.2-20.1.el8_10ALSA-2026:73425
AlmaLinux 8gdb-gdbserverFixed8.2-20.1.el8_10ALSA-2026:73425
AlmaLinux 8gdb-headlessFixed8.2-20.1.el8_10ALSA-2026:73425
Rocky Linux 10gdbFixed0:16.3-3.1.el10_2RLSA-2026:73427
Rocky Linux 9gdbFixed0:16.3-3.1.el9_8RLSA-2026:73426
Rocky Linux 8gdbFixed0:8.2-20.1.el8_10RLSA-2026:73425

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

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…

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.