CVE-2026-13732

Public on 2026-08-31
Modified on 2026-10-14
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.
Severity
Important severity
Important
See what this means
CVSS v3 Base Score
7.8
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
Amazon Linux 2 - Core crash 2026-09-28 ALAS2-2026-3937 Fixed
Amazon Linux 2023 crash 2026-09-29 ALAS2023-2026-3118 Fixed
Amazon Linux 2027 Preview crash 2026-09-28 ALAS2027-2026-095 Fixed
Amazon Linux 2023 cuda-gdb-12-5 No Fix Planned
Amazon Linux 2023 cuda-gdb-12-6 No Fix Planned
Amazon Linux 2023 cuda-gdb-12-8 No Fix Planned
Amazon Linux 2023 cuda-gdb-12-9 No Fix Planned
Amazon Linux 2023 cuda-gdb-13-0 No Fix Planned
Amazon Linux 2023 cuda-gdb-13-1 No Fix Planned
Amazon Linux 2023 cuda-gdb-13-2 No Fix Planned
Amazon Linux 2023 cuda-gdb-13-3 No Fix Planned
Amazon Linux 2 - Core gdb 2026-09-28 ALAS2-2026-3958 Fixed
Amazon Linux 2023 gdb 2026-09-29 ALAS2023-2026-3142 Fixed
Amazon Linux 2027 Preview gdb 2026-10-13 ALAS2027-2026-115 Fixed

CVSS Scores

Score Type Score Vector
Amazon Linux CVSSv3 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H