ALAS2-2026-3958


Amazon Linux 2 (EOS) Security Advisory: ALAS2-2026-3958
Advisory Released Date: 2026-09-28
Advisory Updated Date: 2026-09-28
Severity: Important

Issue Overview:

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. (CVE-2026-13732)


Affected Packages:

gdb


Note:

This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.


Issue Correction:
Run yum update gdb or yum update --advisory ALAS2-2026-3958 to update your system.

New Packages:
aarch64:
    gdb-8.0.1-36.amzn2.0.3.aarch64
    gdb-gdbserver-8.0.1-36.amzn2.0.3.aarch64
    gdb-debuginfo-8.0.1-36.amzn2.0.3.aarch64

i686:
    gdb-8.0.1-36.amzn2.0.3.i686
    gdb-gdbserver-8.0.1-36.amzn2.0.3.i686
    gdb-debuginfo-8.0.1-36.amzn2.0.3.i686

noarch:
    gdb-doc-8.0.1-36.amzn2.0.3.noarch

src:
    gdb-8.0.1-36.amzn2.0.3.src

x86_64:
    gdb-8.0.1-36.amzn2.0.3.x86_64
    gdb-gdbserver-8.0.1-36.amzn2.0.3.x86_64
    gdb-debuginfo-8.0.1-36.amzn2.0.3.x86_64