Описание
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.
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.
Ссылки
- https://nvd.nist.gov/vuln/detail/CVE-2026-13732
- https://access.redhat.com/errata/RHSA-2026:73425
- https://access.redhat.com/errata/RHSA-2026:98429
- https://access.redhat.com/errata/RHSA-2026:98430
- https://access.redhat.com/errata/RHSA-2026:98431
- https://access.redhat.com/errata/RHSA-2026:98432
- https://access.redhat.com/errata/RHSA-2026:98434
- https://access.redhat.com/errata/RHSA-2026:98435
- https://access.redhat.com/errata/RHSA-2026:98436
- https://access.redhat.com/errata/RHSA-2026:98437
- https://access.redhat.com/errata/RHSA-2026:98438
- https://access.redhat.com/errata/RHSA-2026:98439
- https://access.redhat.com/errata/RHSA-2026:98440
- https://access.redhat.com/errata/RHSA-2026:98441
- https://access.redhat.com/errata/RHSA-2026:98443
- https://access.redhat.com/errata/RHSA-2026:99594
- https://access.redhat.com/errata/RHSA-2026:99596
- https://access.redhat.com/errata/RHSA-2026:99597
- https://access.redhat.com/security/cve/CVE-2026-13732
- https://bugzilla.redhat.com/show_bug.cgi?id=2494416
- 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
- https://access.redhat.com/errata/RHSA-2026:98420
- https://access.redhat.com/errata/RHSA-2026:98421
- https://access.redhat.com/errata/RHSA-2026:98423
- https://access.redhat.com/errata/RHSA-2026:98427
- https://access.redhat.com/errata/RHSA-2026:98428
Связанные уязвимости
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.
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.
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.
Gdb: 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_f ...