Bug 2494416 (CVE-2026-13732) - CVE-2026-13732 gdb: gdb: Out-of-bounds write in STABS parser read_member_functions() via crafted ELF
Summary: CVE-2026-13732 gdb: gdb: Out-of-bounds write in STABS parser read_member_func...
Keywords:
Status: NEW
Alias: CVE-2026-13732
Deadline: 2026-08-06
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2544475
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-29 14:49 UTC by OSIDB Bzimport
Modified: 2026-12-01 20:42 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:106289 0 None None None 2026-12-01 19:47:34 UTC
Red Hat Product Errata RHSA-2026:106290 0 None None None 2026-12-01 20:42:29 UTC
Red Hat Product Errata RHSA-2026:96095 0 None None None 2026-11-09 03:07:01 UTC
Red Hat Product Errata RHSA-2026:96096 0 None None None 2026-11-09 02:47:20 UTC
Red Hat Product Errata RHSA-2026:96097 0 None None None 2026-11-09 03:11:16 UTC
Red Hat Product Errata RHSA-2026:96098 0 None None None 2026-11-09 02:48:33 UTC
Red Hat Product Errata RHSA-2026:99594 0 None None None 2026-11-12 11:12:23 UTC
Red Hat Product Errata RHSA-2026:99596 0 None None None 2026-11-12 11:20:20 UTC
Red Hat Product Errata RHSA-2026:99597 0 None None None 2026-11-12 11:36:55 UTC

Description OSIDB Bzimport 2026-06-29 14:49:53 UTC
A flaw was found in the GDB STABS debug format parser. The
read_member_functions() function in gdb/stabsread.c processes C++ member
function lists from STABS symbol data. When a class contains both
destructor and non-destructor member functions, the code at lines
5086-5131 attempts to separate them into two lists. However, the linked
list removal logic has a bug: the `last_sublist` tracking variable is
updated to point to REMOVED destructor nodes instead of the previous
retained node, and the `continue` path for non-destructor nodes does not
update `last_sublist` at all. This causes destructor entries to remain
in the `sublist` linked list while the `length` variable is decremented
by `has_destructor`. In the subsequent copy loop (lines 5163-5166), the
allocated array has `length` elements but the loop iterates over all
remaining `sublist` entries (more than `length`). The loop index `i`
starts at `length` and decrements, going negative, causing writes before
the allocated obstack array. The written data consists of `struct fn_field`
members controlled by the attacker through crafted STABS strings. The
obstack underflow can corrupt chunk metadata including function pointers,
which are called on subsequent obstack operations, resulting in arbitrary
code execution. The vulnerability triggers automatically when GDB expands
partial symbol tables — any symbol-inspection command (break, ptype, info
functions) on a binary containing crafted .stab/.stabstr sections is
sufficient. The inferior process does not need to be executed.

    Upstream: https://sourceware.org/git/binutils-gdb.git
    Affected: gdb/stabsread.c (read_member_functions, lines 5086-5166)
    Confirmed on: GDB 16.3-1, Debian trixie, x86-64, glibc 2.41
    Reporter: JD Marsters (Bhut Red)

Comment 2 errata-xmlrpc 2026-11-09 02:47:20 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions

Via RHSA-2026:96096 https://access.redhat.com/errata/RHSA-2026:96096

Comment 3 errata-xmlrpc 2026-11-09 02:48:32 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10.0 Extended Update Support

Via RHSA-2026:96098 https://access.redhat.com/errata/RHSA-2026:96098

Comment 4 errata-xmlrpc 2026-11-09 03:07:00 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2026:96095 https://access.redhat.com/errata/RHSA-2026:96095

Comment 5 errata-xmlrpc 2026-11-09 03:11:15 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:96097 https://access.redhat.com/errata/RHSA-2026:96097

Comment 6 errata-xmlrpc 2026-11-12 11:12:22 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On

Via RHSA-2026:99594 https://access.redhat.com/errata/RHSA-2026:99594

Comment 7 errata-xmlrpc 2026-11-12 11:20:19 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2026:99596 https://access.redhat.com/errata/RHSA-2026:99596

Comment 8 errata-xmlrpc 2026-11-12 11:36:53 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On

Via RHSA-2026:99597 https://access.redhat.com/errata/RHSA-2026:99597

Comment 9 errata-xmlrpc 2026-12-01 19:47:33 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6 Extended Lifecycle Support  - EXTENSION

Via RHSA-2026:106289 https://access.redhat.com/errata/RHSA-2026:106289

Comment 10 errata-xmlrpc 2026-12-01 20:42:27 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2026:106290 https://access.redhat.com/errata/RHSA-2026:106290


Note You need to log in before you can comment on or make changes to this bug.