{
  "id": "CVE-2026-13732",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-13732",
  "published_at": "2026-08-31T19:23:18.741Z",
  "title": "Gdb: gdb: out-of-bounds write in stabs parser read_member_functions() via crafted elf",
  "vendor": "Red Hat",
  "product": "Red Hat Enterprise Linux 10",
  "cvss": {
    "score": 7,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "A flaw was found in GDB's STABS debug format parser. The\nread_member_functions() function in gdb/stabsread.c contains a linked\nlist removal bug in the code that separates destructor and non-destructor\nmember functions of C++ classes. The bug causes the destructor entries to\nremain in the main function list while the list length counter is\ndecremented, resulting in an out-of-bounds write when the function list\nis copied to its final allocated array. An attacker can craft an ELF\nbinary with malicious .stab and .stabstr sections that triggers this\nout-of-bounds write when a user opens the file in GDB and performs any\nsymbol-inspection operation such as setting a breakpoint. The inferior\nprocess does not need to be executed. Under controlled conditions, this\nwas demonstrated to achieve execution of arbitrary commands within the\nGDB process.",
  "cwe": "CWE-787",
  "cvss_by_source": {
    "cna": 7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10",
        "ranges": null,
        "fixed_in": [
          "0:16.3-3.1.el10_2"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10.0 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "0:14.2-4.3.el10_0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8",
        "ranges": null,
        "fixed_in": [
          "0:8.2-20.1.el8_10"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support",
        "ranges": null,
        "fixed_in": [
          "0:8.2-15.1.el8_4"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On",
        "ranges": null,
        "fixed_in": [
          "0:8.2-15.1.el8_4"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support",
        "ranges": null,
        "fixed_in": [
          "0:8.2-18.1.el8_6"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On",
        "ranges": null,
        "fixed_in": [
          "0:8.2-18.1.el8_6"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.8 Telecommunications Update Service",
        "ranges": null,
        "fixed_in": [
          "0:8.2-19.1.el8_8"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "0:8.2-19.1.el8_8"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "0:16.3-3.1.el9_8"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "0:10.2-10.2.el9_2"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "0:10.2-13.1.el9_4"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.6 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "0:14.2-4.2.el9_6"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Cost Management On-Premise 1",
        "ranges": null,
        "fixed_in": [
          "1791460851"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Hardened Images",
        "ranges": null,
        "fixed_in": [
          "17.2-6.2.hum1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.0",
        "ranges": null,
        "fixed_in": [
          "1794259031"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.0",
        "ranges": null,
        "fixed_in": [
          "1794259119"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.0",
        "ranges": null,
        "fixed_in": [
          "1794259034"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.0",
        "ranges": null,
        "fixed_in": [
          "1794259393"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.0",
        "ranges": null,
        "fixed_in": [
          "1794260794"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.4",
        "ranges": null,
        "fixed_in": [
          "1794260631"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.4",
        "ranges": null,
        "fixed_in": [
          "1794259404"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.4",
        "ranges": null,
        "fixed_in": [
          "1794259570"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.4",
        "ranges": null,
        "fixed_in": [
          "1794259370"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.4",
        "ranges": null,
        "fixed_in": [
          "1794259815"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.4",
        "ranges": null,
        "fixed_in": [
          "1794260191"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.4",
        "ranges": null,
        "fixed_in": [
          "1794259182"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.4",
        "ranges": null,
        "fixed_in": [
          "1794259064"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.4",
        "ranges": null,
        "fixed_in": [
          "1794260782"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.5",
        "ranges": null,
        "fixed_in": [
          "1794259958"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.5",
        "ranges": null,
        "fixed_in": [
          "1794259318"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.5",
        "ranges": null,
        "fixed_in": [
          "1794259380"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.5",
        "ranges": null,
        "fixed_in": [
          "1794259862"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.5",
        "ranges": null,
        "fixed_in": [
          "1794259110"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.5",
        "ranges": null,
        "fixed_in": [
          "1794259559"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.5",
        "ranges": null,
        "fixed_in": [
          "1794259807"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.5",
        "ranges": null,
        "fixed_in": [
          "1794259456"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.5",
        "ranges": null,
        "fixed_in": [
          "1794259162"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Update Infrastructure 5",
        "ranges": null,
        "fixed_in": [
          "1791978534"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Update Infrastructure 5",
        "ranges": null,
        "fixed_in": [
          "1791978528"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Update Infrastructure 5",
        "ranges": null,
        "fixed_in": [
          "1791978528"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Update Infrastructure 5",
        "ranges": null,
        "fixed_in": [
          "1791964013"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Update Infrastructure 5",
        "ranges": null,
        "fixed_in": [
          "1791978693"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Red Hat Enterprise Linux 10 to 0:16.3-3.1.el10_2 or later.",
      "Upgrade Red Hat Enterprise Linux 10.0 Extended Update Support to 0:14.2-4.3.el10_0 or later.",
      "Upgrade Red Hat Enterprise Linux 8 to 0:8.2-20.1.el8_10 or later.",
      "Upgrade Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support to 0:8.2-15.1.el8_4 or later.",
      "Upgrade Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On to 0:8.2-15.1.el8_4 or later.",
      "Upgrade Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support to 0:8.2-18.1.el8_6 or later.",
      "Upgrade Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On to 0:8.2-18.1.el8_6 or later.",
      "Upgrade Red Hat Enterprise Linux 8.8 Telecommunications Update Service to 0:8.2-19.1.el8_8 or later.",
      "Upgrade Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions to 0:8.2-19.1.el8_8 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 0:16.3-3.1.el9_8 or later.",
      "Upgrade Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions to 0:10.2-10.2.el9_2 or later.",
      "Upgrade Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions to 0:10.2-13.1.el9_4 or later.",
      "Upgrade Red Hat Enterprise Linux 9.6 Extended Update Support to 0:14.2-4.2.el9_6 or later.",
      "Upgrade Red Hat Cost Management On-Premise 1 to 1791460851 or later.",
      "Upgrade Red Hat Hardened Images to 17.2-6.2.hum1 or later.",
      "Upgrade Red Hat OpenShift AI 3.0 to 1794259031 or later.",
      "Upgrade Red Hat OpenShift AI 3.0 to 1794259119 or later.",
      "Upgrade Red Hat OpenShift AI 3.0 to 1794259034 or later.",
      "Upgrade Red Hat OpenShift AI 3.0 to 1794259393 or later.",
      "Upgrade Red Hat OpenShift AI 3.0 to 1794260794 or later.",
      "Upgrade Red Hat OpenShift AI 3.4 to 1794260631 or later.",
      "Upgrade Red Hat OpenShift AI 3.4 to 1794259404 or later.",
      "Upgrade Red Hat OpenShift AI 3.4 to 1794259570 or later.",
      "Upgrade Red Hat OpenShift AI 3.4 to 1794259370 or later.",
      "Upgrade Red Hat OpenShift AI 3.4 to 1794259815 or later.",
      "Upgrade Red Hat OpenShift AI 3.4 to 1794260191 or later.",
      "Upgrade Red Hat OpenShift AI 3.4 to 1794259182 or later.",
      "Upgrade Red Hat OpenShift AI 3.4 to 1794259064 or later.",
      "Upgrade Red Hat OpenShift AI 3.4 to 1794260782 or later.",
      "Upgrade Red Hat OpenShift AI 3.5 to 1794259958 or later.",
      "Upgrade Red Hat OpenShift AI 3.5 to 1794259318 or later.",
      "Upgrade Red Hat OpenShift AI 3.5 to 1794259380 or later.",
      "Upgrade Red Hat OpenShift AI 3.5 to 1794259862 or later.",
      "Upgrade Red Hat OpenShift AI 3.5 to 1794259110 or later.",
      "Upgrade Red Hat OpenShift AI 3.5 to 1794259559 or later.",
      "Upgrade Red Hat OpenShift AI 3.5 to 1794259807 or later.",
      "Upgrade Red Hat OpenShift AI 3.5 to 1794259456 or later.",
      "Upgrade Red Hat OpenShift AI 3.5 to 1794259162 or later.",
      "Upgrade Red Hat Update Infrastructure 5 to 1791978534 or later.",
      "Upgrade Red Hat Update Infrastructure 5 to 1791978528 or later.",
      "Upgrade Red Hat Update Infrastructure 5 to 1791978528 or later.",
      "Upgrade Red Hat Update Infrastructure 5 to 1791964013 or later.",
      "Upgrade Red Hat Update Infrastructure 5 to 1791978693 or later."
    ],
    "workarounds": [
      "The following practices would help for avoiding exposure and mitigate this\nflaw:\n- Do not open untrusted or unknown ELF binaries in GDB without first\n  stripping debug sections. Use `objcopy --remove-section=.stab\n  --remove-section=.stabstr \u003cbinary\u003e` before debugging.\n- Use `readelf -S \u003cbinary\u003e | grep stab` to check for the presence of\n  STABS sections before opening a binary in GDB. Legitimate modern\n  binaries use DWARF, not STABS.\n- Consider using LLDB or other debuggers that do not support STABS for\n  analysis of untrusted binaries.\n- For automated environments (CI, test farms) that invoke GDB on\n  potentially untrusted binaries, run GDB in a sandboxed or containerized\n  environment with restricted filesystem access.\n- GDB 17+ deprecates STABS support but still parses it. GDB 18 (expected\n  late 2026/2027) will remove STABS support entirely.\n- GCC removed STABS emitting in GCC 13 (2023), so legitimately compiled\n  binaries from recent GCC versions will not contain STABS data."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:73425"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:73426"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:73427"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:79357"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:82447"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:82939"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:96095"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:96096"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
