1. Accueil
  2. Vulnérabilités
  3. CVE-2026-13732

CVE-2026-13732

Gdb: gdb: out-of-bounds write in stabs parser read_member_functions() via crafted elf

Publiée le 31 août 2026 · modifiée le 2 déc. 2026 · Sources : NVD, CNA (éditeur ou attributeur), CERT-FR, EPSS (FIRST)

Faible 30/100

Résumé

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.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Redhat (21 ligne(s))
Redhat
ProduitVersionsCorrigé dansSource
Hat Cost Management On-Premise 1 Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 10 Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 10.0 Extended Update Support Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSION Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 7 Extended Lifecycle Support Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 8 Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 8.8 Telecommunications Update Service Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 8.8 Update Services for SAP Solutions Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 9 Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 9.2 Update Services for SAP Solutions Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 9.4 Update Services for SAP Solutions Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 9.6 Extended Update Support Versions non précisées — CNA (éditeur ou attributeur)
Hat Hardened Images Versions non précisées — CNA (éditeur ou attributeur)
Hat OpenShift AI 3.0 Versions non précisées — CNA (éditeur ou attributeur)
Hat OpenShift AI 3.4 Versions non précisées — CNA (éditeur ou attributeur)
Hat OpenShift AI 3.5 Versions non précisées — CNA (éditeur ou attributeur)
Hat Update Infrastructure 5 Versions non précisées — CNA (éditeur ou attributeur)

Correctif

Non renseigné par l’éditeur.

Contournement

Contournementsource officielle

The following practices would help for avoiding exposure and mitigate this flaw: - Do not open untrusted or unknown ELF binaries in GDB without first stripping debug sections. Use `objcopy --remove-section=.stab --remove-section=.stabstr <binary>` before debugging. - Use `readelf -S <binary> | grep stab` to check for the presence of STABS sections before opening a binary in GDB. Legitimate modern binaries use DWARF, not STABS. - Consider using LLDB or other debuggers that do not support STABS for analysis of untrusted binaries. - For automated environments (CI, test farms) that invoke GDB on potentially untrusted binaries, run GDB in a sandboxed or containerized environment with restricted filesystem access. - GDB 17+ deprecates STABS support but still parses it. GDB 18 (expected late 2026/2027) will remove STABS support entirely. - GCC removed STABS emitting in GCC 13 (2023), so legitimately compiled binaries from recent GCC versions will not contain STABS data.

Source : CNA (éditeur ou attributeur)

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)
  2. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1472)

Avis CERT-FR

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
CNA (éditeur ou attributeur)
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H (CVSS 3.1, CNA:secalert@redhat.com)
Faiblesse
CWE-787 · Corruption mémoire

Comment sont obtenues et calculées ces données