CVE-2026-13732
JSON

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 packageVersionsReported by
gdbNot 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-rhel10Not specified
Not affected: from 1791460851 before *
CVE List
gdb-mainNot specified
Not affected: from 17.2-6.2.hum1 before *
CVE List
rhai/base-image-rocm-rhel9Not specified
Not affected: from 1794259031 before *
CVE List
rhai/base-image-tpu-rhel9Not specified
Not affected: from 1794259119 before *, from 1794259370 before *, from 1794259807 before *
CVE List
rhai/base-image-spyre-rhel9Not specified
Not affected: from 1794259034 before *, from 1794260191 before *, from 1794259162 before *
CVE List
rhai/base-image-cuda-rhel9Not specified
Not affected: from 1794259393 before *
CVE List
rhai/base-image-cpu-rhel9Not specified
Not affected: from 1794260794 before *, from 1794259815 before *, from 1794259110 before *
CVE List
rhai/base-image-rocm-7.1-rhel9Not specified
Not affected: from 1794260631 before *
CVE List
rhai/base-image-neuron-rhel9Not specified
Not affected: from 1794259404 before *, from 1794259318 before *
CVE List
rhai/base-image-gaudi-rhel9Not specified
Not affected: from 1794259570 before *, from 1794259380 before *
CVE List
rhai/base-image-cuda-13.0-rhel9Not specified
Not affected: from 1794259182 before *, from 1794259958 before *
CVE List

Classification

CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

References

https://access.redhat.com/errata/RHSA-2026:73425vendor-advisory
https://access.redhat.com/errata/RHSA-2026:73426vendor-advisory
https://access.redhat.com/errata/RHSA-2026:73427vendor-advisory
https://access.redhat.com/errata/RHSA-2026:79357vendor-advisory
https://access.redhat.com/errata/RHSA-2026:82447vendor-advisory
https://access.redhat.com/errata/RHSA-2026:82939vendor-advisory
https://access.redhat.com/errata/RHSA-2026:96095vendor-advisory
https://access.redhat.com/errata/RHSA-2026:96096vendor-advisory
https://access.redhat.com/errata/RHSA-2026:96097vendor-advisory
https://access.redhat.com/errata/RHSA-2026:96098vendor-advisory
https://access.redhat.com/errata/RHSA-2026:98414vendor-advisory
https://access.redhat.com/errata/RHSA-2026:98415vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-13732 changed 2026-11-26CVE Terms of Use
NVDCVE-2026-13732 changed 2026-11-13Public domain