7.0high
Gdb: gdb: out-of-bounds write in stabs parser read_member_functions() via crafted elf
- Severity
- 7.0high CVSS:3.1 by redhat
- Exploit likelihood
- 0.20% (higher than 5% of CVEs)
- Published
- Last changed
- Assigned by
- redhat
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gdb | Not specified Not affected: from 0:16.3-3.1.el10_2 before *, from 0:14.2-4.3.el10_0 before *, from 0:8.2-20.1.el8_10 before *, from 0:8.2-15.1.el8_4 before *, from 0:8.2-18.1.el8_6 before *, from 0:8.2-19.1.el8_8 before * | CVE List |
| costmanagement/costmanagement-ui-rhel10 | Not specified Not affected: from 1791460851 before * | CVE List |
| gdb-main | Not specified Not affected: from 17.2-6.2.hum1 before * | CVE List |
| rhai/base-image-rocm-rhel9 | Not specified Not affected: from 1794259031 before * | CVE List |
| rhai/base-image-tpu-rhel9 | Not specified Not affected: from 1794259119 before *, from 1794259370 before *, from 1794259807 before * | CVE List |
| rhai/base-image-spyre-rhel9 | Not specified Not affected: from 1794259034 before *, from 1794260191 before *, from 1794259162 before * | CVE List |
| rhai/base-image-cuda-rhel9 | Not specified Not affected: from 1794259393 before * | CVE List |
| rhai/base-image-cpu-rhel9 | Not specified Not affected: from 1794260794 before *, from 1794259815 before *, from 1794259110 before * | CVE List |
| rhai/base-image-rocm-7.1-rhel9 | Not specified Not affected: from 1794260631 before * | CVE List |
| rhai/base-image-neuron-rhel9 | Not specified Not affected: from 1794259404 before *, from 1794259318 before * | CVE List |
| rhai/base-image-gaudi-rhel9 | Not specified Not affected: from 1794259570 before *, from 1794259380 before * | CVE List |
| rhai/base-image-cuda-13.0-rhel9 | Not specified Not affected: from 1794259182 before *, from 1794259958 before * | CVE List |
| rhai/base-image-rocm-6.4-rhel9 | Not specified Not affected: from 1794259064 before * | CVE List |
| rhai/base-image-cuda-12.9-rhel9 | Not specified Not affected: from 1794260782 before *, from 1794259456 before * | CVE List |
| rhai/base-image-rubin-rhel9 | Not specified Not affected: from 1794259862 before * | CVE List |
| rhai/base-image-rocm-7.14-rhel9 | Not specified Not affected: from 1794259559 before * | CVE List |
| rhui5/cds-kubernetes-rhel9 | Not specified Not affected: from 1791978534 before * | CVE List |
| rhui5/cds-rhel9 | Not specified Not affected: from 1791978528 before * | CVE List |
| rhui5/haproxy-rhel9 | Not specified Not affected: from 1791978528 before * | CVE List |
| rhui5/installer-rhel9 | Not specified Not affected: from 1791964013 before * | CVE List |
| rhui5/rhua-rhel9 | Not specified Not affected: from 1791978693 before * | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-13732 changed 2026-11-26 | CVE Terms of Use |
| NVD | CVE-2026-13732 changed 2026-11-13 | Public domain |