CVE-2026-13732Gdb: gdb: out-of-bounds write in stabs parser read_member_functions() via crafted elf
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | gdb | Fix pending | UBUNTU-CVE-2026-13732 | |
| Ubuntu 26.04 | gdb | Under investigation | UBUNTU-CVE-2026-13732 | |
| Ubuntu 24.04 | gdb | Under investigation | UBUNTU-CVE-2026-13732 | |
| Ubuntu 22.04 | gdb | Under investigation | UBUNTU-CVE-2026-13732 | |
| Ubuntu 20.04 | gdb | Fix pending | UBUNTU-CVE-2026-13732 | |
| Ubuntu 18.04 | gdb | Fix pending | UBUNTU-CVE-2026-13732 | |
| Ubuntu 16.04 | gdb | Fix pending | UBUNTU-CVE-2026-13732 | |
| Debian 14 | gdb | Will 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 13 | gdb | Will 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 12 | gdb | Will 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 10 | gdb | Fixed | 0:16.3-3.1.el10_2 | RHSA-2026:73427 |
| Red Hat Enterprise Linux 10 | gdb-doc | Fixed | 0:16.3-3.1.el10_2 | RHSA-2026:73427 |
| Red Hat Enterprise Linux 10 | gdb-gdbserver | Fixed | 0:16.3-3.1.el10_2 | RHSA-2026:73427 |
| Red Hat Enterprise Linux 10 | gdb-headless | Fixed | 0:16.3-3.1.el10_2 | RHSA-2026:73427 |
| Red Hat Enterprise Linux 10 | gdb-minimal | Fixed | 0:16.3-3.1.el10_2 | RHSA-2026:73427 |
| Red Hat Enterprise Linux 9 | gdb | Fixed | 0:16.3-3.1.el9_8 | RHSA-2026:73426 |
| Red Hat Enterprise Linux 9 | gdb-doc | Fixed | 0:16.3-3.1.el9_8 | RHSA-2026:73426 |
| Red Hat Enterprise Linux 9 | gdb-gdbserver | Fixed | 0:16.3-3.1.el9_8 | RHSA-2026:73426 |
| Red Hat Enterprise Linux 9 | gdb-headless | Fixed | 0:16.3-3.1.el9_8 | RHSA-2026:73426 |
| Red Hat Enterprise Linux 9 | gdb-minimal | Fixed | 0:16.3-3.1.el9_8 | RHSA-2026:73426 |
| Red Hat Enterprise Linux 8 | gdb | Fixed | 0:8.2-20.1.el8_10 | RHSA-2026:73425 |
| Red Hat Enterprise Linux 8 | gdb-doc | Fixed | 0:8.2-20.1.el8_10 | RHSA-2026:73425 |
| Red Hat Enterprise Linux 8 | gdb-gdbserver | Fixed | 0:8.2-20.1.el8_10 | RHSA-2026:73425 |
| Red Hat Enterprise Linux 8 | gdb-headless | Fixed | 0:8.2-20.1.el8_10 | RHSA-2026:73425 |
| Red Hat Enterprise Linux 7 | gdb | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | gdb-doc | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | gdb-gdbserver | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | gdb | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | gdb-gdbserver | Fix pending Affected | ||
| AlmaLinux 10 | gdb-doc | Fixed | 16.3-3.1.el10_2 | ALSA-2026:73427 |
| AlmaLinux 9 | gdb | Fixed | 16.3-3.1.el9_8 | ALSA-2026:73426 |
| AlmaLinux 9 | gdb-doc | Fixed | 16.3-3.1.el9_8 | ALSA-2026:73426 |
| AlmaLinux 9 | gdb-gdbserver | Fixed | 16.3-3.1.el9_8 | ALSA-2026:73426 |
| AlmaLinux 9 | gdb-headless | Fixed | 16.3-3.1.el9_8 | ALSA-2026:73426 |
| AlmaLinux 9 | gdb-minimal | Fixed | 16.3-3.1.el9_8 | ALSA-2026:73426 |
| AlmaLinux 8 | gdb | Fixed | 8.2-20.1.el8_10 | ALSA-2026:73425 |
| AlmaLinux 8 | gdb-doc | Fixed | 8.2-20.1.el8_10 | ALSA-2026:73425 |
| AlmaLinux 8 | gdb-gdbserver | Fixed | 8.2-20.1.el8_10 | ALSA-2026:73425 |
| AlmaLinux 8 | gdb-headless | Fixed | 8.2-20.1.el8_10 | ALSA-2026:73425 |
| Rocky Linux 10 | gdb | Fixed | 0:16.3-3.1.el10_2 | RLSA-2026:73427 |
| Rocky Linux 9 | gdb | Fixed | 0:16.3-3.1.el9_8 | RLSA-2026:73426 |
| Rocky Linux 8 | gdb | Fixed | 0:8.2-20.1.el8_10 | RLSA-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.
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 10.0 Extended Update Support
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On
- Red Hat Enterprise Linux 8.8 Telecommunications Update Service
- Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
- Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions
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:
- https://access.redhat.com/errata/RHSA-2026:73425 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:73426 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:73427 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:79357 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:82447 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:82939 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2026:73425
- https://access.redhat.com/errata/RHSA-2026:73426
- https://access.redhat.com/errata/RHSA-2026:73427
- https://access.redhat.com/errata/RHSA-2026:79357
- https://access.redhat.com/errata/RHSA-2026:82447
- https://access.redhat.com/errata/RHSA-2026:82939
- https://access.redhat.com/errata/RHSA-2026:96095
- https://access.redhat.com/errata/RHSA-2026:96096
- https://access.redhat.com/errata/RHSA-2026:96097
- https://access.redhat.com/errata/RHSA-2026:96098
- https://access.redhat.com/errata/RHSA-2026:98414
- https://access.redhat.com/errata/RHSA-2026:98415
- https://access.redhat.com/errata/RHSA-2026:98416
- https://access.redhat.com/errata/RHSA-2026:98417
- https://access.redhat.com/errata/RHSA-2026:98419
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.