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

> An attacker can execute arbitrary code in GDB by tricking a user into opening a crafted ELF binary with malicious STABS sections.

- **Severity:** High 7.0 (`CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 31 Aug 2026
- **Updated:** 14 Oct 2026
- **Also known as:** ALSA-2026:73425, ALSA-2026:73426, ALSA-2026:73427, AZL-98547, AZL-98550, BELL-CVE-2026-13732, CLSA-2026-1791547259, CLSA-2026-1792625564, DEBIAN-CVE-2026-13732, GHSA-j2fm-9w3c-hpj9, OESA-2026-4505, OESA-2026-4506, OESA-2026-4507, OESA-2026-4508, RHSA-2026:73425, RHSA-2026:73426, RHSA-2026:73427, RHSA-2026:82447, RLSA-2026:73425, RLSA-2026:73426, RLSA-2026:73427, SUSE-SU-2026:23849-1, SUSE-SU-2026:4294-1, SUSE-SU-2026:4400-1, UBUNTU-CVE-2026-13732, openSUSE-SU-2026:21890-1

## What is CVE-2026-13732?

CVE-2026-13732 is a high-severity memory corruption vulnerability in Red Hat Cost Management On-Premise 1, published on 31 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

### Official 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 (Out-of-bounds Write)

## Which versions are affected by CVE-2026-13732?


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `gdb` | AlmaLinux:10 | All versions | 16.3-3.1.el10_2 |
| `gdb-doc` | AlmaLinux:10 | All versions | 16.3-3.1.el10_2 |
| `gdb-gdbserver` | AlmaLinux:10 | All versions | 16.3-3.1.el10_2 |
| `gdb-headless` | AlmaLinux:10 | All versions | 16.3-3.1.el10_2 |
| `gdb-minimal` | AlmaLinux:10 | All versions | 16.3-3.1.el10_2 |
| `gdb` | AlmaLinux:8 | All versions | 8.2-20.1.el8_10 |
| `gdb-doc` | AlmaLinux:8 | All versions | 8.2-20.1.el8_10 |
| `gdb-gdbserver` | AlmaLinux:8 | All versions | 8.2-20.1.el8_10 |
| `gdb-headless` | AlmaLinux:8 | All versions | 8.2-20.1.el8_10 |
| `gdb` | AlmaLinux:9 | All versions | 16.3-3.1.el9_8 |
| `gdb-doc` | AlmaLinux:9 | All versions | 16.3-3.1.el9_8 |
| `gdb-gdbserver` | AlmaLinux:9 | All versions | 16.3-3.1.el9_8 |
| `gdb-headless` | AlmaLinux:9 | All versions | 16.3-3.1.el9_8 |
| `gdb-minimal` | AlmaLinux:9 | All versions | 16.3-3.1.el9_8 |
| `gdb` | Red Hat:enterprise_linux:10.2 | All versions | 0:16.3-3.1.el10_2 |
| `gdb-debuginfo` | Red Hat:enterprise_linux:10.2 | All versions | 0:16.3-3.1.el10_2 |
| `gdb-debugsource` | Red Hat:enterprise_linux:10.2 | All versions | 0:16.3-3.1.el10_2 |
| `gdb-doc` | Red Hat:enterprise_linux:10.2 | All versions | 0:16.3-3.1.el10_2 |
| `gdb-gdbserver` | Red Hat:enterprise_linux:10.2 | All versions | 0:16.3-3.1.el10_2 |
| `gdb-headless` | Red Hat:enterprise_linux:10.2 | All versions | 0:16.3-3.1.el10_2 |
| `gdb-minimal` | Red Hat:enterprise_linux:10.2 | All versions | 0:16.3-3.1.el10_2 |
| `gdb` | Red Hat:enterprise_linux:8::appstream | All versions | 0:8.2-20.1.el8_10 |
| `gdb-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:8.2-20.1.el8_10 |
| `gdb-debugsource` | Red Hat:enterprise_linux:8::appstream | All versions | 0:8.2-20.1.el8_10 |
| `gdb-doc` | Red Hat:enterprise_linux:8::appstream | All versions | 0:8.2-20.1.el8_10 |
| `gdb-gdbserver` | Red Hat:enterprise_linux:8::appstream | All versions | 0:8.2-20.1.el8_10 |
| `gdb-headless` | Red Hat:enterprise_linux:8::appstream | All versions | 0:8.2-20.1.el8_10 |
| `gdb` | Red Hat:enterprise_linux:9::appstream | All versions | 0:16.3-3.1.el9_8 |
| `gdb-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:16.3-3.1.el9_8 |
| `gdb-debugsource` | Red Hat:enterprise_linux:9::appstream | All versions | 0:16.3-3.1.el9_8 |
| `gdb-doc` | Red Hat:enterprise_linux:9::appstream | All versions | 0:16.3-3.1.el9_8 |
| `gdb-gdbserver` | Red Hat:enterprise_linux:9::appstream | All versions | 0:16.3-3.1.el9_8 |
| `gdb-headless` | Red Hat:enterprise_linux:9::appstream | All versions | 0:16.3-3.1.el9_8 |
| `gdb-minimal` | Red Hat:enterprise_linux:9::appstream | All versions | 0:16.3-3.1.el9_8 |
| `gdb` | Red Hat:hummingbird:1 | All versions | 0:17.2-6.2.hum1 |
| `gdb-doc` | Red Hat:hummingbird:1 | All versions | 0:17.2-6.2.hum1 |
| `gdb-gdbserver` | Red Hat:hummingbird:1 | All versions | 0:17.2-6.2.hum1 |
| `gdb-headless` | Red Hat:hummingbird:1 | All versions | 0:17.2-6.2.hum1 |
| `gdb-minimal` | Red Hat:hummingbird:1 | All versions | 0:17.2-6.2.hum1 |
| `gdb` | Rocky Linux:10 | All versions | 0:16.3-3.1.el10_2 |

## How do I fix CVE-2026-13732?

Apply the vendor's patch.

## Is CVE-2026-13732 being exploited?

There is no known exploitation of CVE-2026-13732 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-13732 and fix it if it is affected.

What it is: CVE-2026-13732 is a high-severity memory corruption vulnerability in Red Hat Cost Management On-Premise 1, published on 31 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2026-13732 in the wild and no public exploit code.

Affected product: Red Hat Cost Management On-Premise 1. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-13732/ (Markdown: https://insights.sbomify.com/CVE-2026-13732/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-13732
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-13732
- OSV: https://osv.dev/vulnerability/CVE-2026-13732

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-13732/
Summaries are generated and may contain mistakes; the official description above is the record.
