7.8 HIGH
- CVSS version (CVSS): 3.1
- Attack Vector (AV): Local (L)
- Attack Complexity (AC): Low (L)
- Privileges Required (PR): None (N)
- User Interaction (UI): Required (R)
- Scope (S): Unchanged (U)
- Confidentiality (C): High (H)
- Integrity (I): High (H)
- Availability (A): High (H)
- Modified Attack Vector (MAV): Local (L)
- Modified Attack Complexity (MAC): Low (L)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): Required (R)
- Modified Confidentiality (MC): High (H)
- Modified Scope (MS): Unchanged (U)
- Modified Integrity (MI): High (H)
- Modified Availability (MA): High (H)
Activity log
- Created suggestion
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_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.
References
Affected products
Matching in nixpkgs
pkgs.gdb
GNU Project debugger
pkgs.cgdb
Curses interface to gdb
pkgs.gdbm
GNU dbm key/value database library
pkgs.ugdb
Alternative TUI for gdb
pkgs.gdbgui
Browser-based frontend for GDB
pkgs.eggdbus
D-Bus bindings for GObject
pkgs.gdbuspp
GDBus++ - a glib2 D-Bus wrapper for C++
pkgs.sgdboop
Applying custom artwork to Steam, using SteamGridDB
pkgs.turingdb
High performance in-memory column-oriented graph database engine
pkgs.ladybugdb
Embeddable property graph database management system (fork of Kuzu)
pkgs.gdb-dashboard
Modular visual interface for GDB in Python
pkgs.gdbHostCpuOnly
GNU Project debugger
pkgs.wireless-regdb
Wireless regulatory database for CRDA
-
nixos-unstable -
- nixos-unstable-small 2026.09.03
-
nixos-26.05 -
- nixos-26.05-small 2026.05.30
pkgs.rizinPlugins.sigdb
Rizin FLIRT Signature Database
-
nixos-unstable -
- nixos-unstable-small 0-unstable-2023-08-23
-
nixos-26.05 -
- nixos-26.05-small 2023-08-23
pkgs.cutterPlugins.sigdb
Rizin FLIRT Signature Database
-
nixos-unstable -
- nixos-unstable-small 0-unstable-2023-08-23
-
nixos-26.05 -
- nixos-26.05-small 2023-08-23
pkgs.rocmPackages.rocgdb
ROCm source-level debugger for Linux, based on GDB
pkgs.cudaPackages.cuda_gdb
NVIDIA tool for debugging CUDA applications on Linux and QNX systems
pkgs.python313Packages.pygdbmi
Parse gdb machine interface output with Python
pkgs.python314Packages.pygdbmi
Parse gdb machine interface output with Python
pkgs.python313Packages.gdb-pt-dump
GDB script to enhance debugging of a QEMU-based virtual machine
-
nixos-unstable -
- nixos-unstable-small 0-unstable-2024-04-01
-
nixos-26.05 -
- nixos-26.05-small 0-unstable-2024-04-01
pkgs.python314Packages.gdb-pt-dump
GDB script to enhance debugging of a QEMU-based virtual machine
-
nixos-unstable -
- nixos-unstable-small 0-unstable-2024-04-01
-
nixos-26.05 -
- nixos-26.05-small 0-unstable-2024-04-01
pkgs.python313Packages.freertos-gdb
User-friendly view of FreeRTOS kernel objects in GDB
pkgs.python314Packages.freertos-gdb
User-friendly view of FreeRTOS kernel objects in GDB
pkgs.python313Packages.aliyun-python-sdk-gdb
Module of Aliyun Python SDK (gdb)
-
nixos-unstable -
- nixos-unstable-small 1.0.0
pkgs.python314Packages.aliyun-python-sdk-gdb
Module of Aliyun Python SDK (gdb)
-
nixos-unstable -
- nixos-unstable-small 1.0.0
Package maintainers
-
@ethancedwards8 Ethan Carter Edwards <ethan@ethancedwards.com>
-
@ConnorBaker Connor Baker <ConnorBaker01@gmail.com>
-
@YorikSar Yuriy Taraday <yorik.sar@gmail.com>
-
@samuela Samuel Ainsworth <skainsworth@gmail.com>
-
@prusnak Pavol Rusnak <pavol@rusnak.io>
-
@GaetanLepage Gaetan Lepage <gaetan@glepage.com>
-
@SomeoneSerge Else Someone <else+nixpkgs@someonex.net>
-
@chayleaf Anna Pavlyuk <chayleaf-nix@pavluk.org>
-
@nbp Nicolas B. Pierron <nixos@nbp.name>
-
@globin Robin Gloster <mail@glob.in>
-
@jollheef Mikhail Klementev <root@dumpstack.io>
-
@yrashk Yurii Rashkovskii <yrashk@gmail.com>
-
@JarvisCraft Petr Portnov <mrjarviscraft+nix@gmail.com>
-
@hamidr Hamid Davoodi <hamidr.dev@gmail.com>
-
@danc86 Dan Callaghan <djc@djc.id.au>
-
@msanft Moritz Sanft <moritz.sanft@outlook.de>
-
@Mic92 Jörg Thalheim <joerg@thalheim.io>
-
@mschwaig Martin Schwaighofer <mschwaig+nixpkgs@eml.cc>
-
@Flakebi Sebastian Neubauer <flakebi@t-online.de>
-
@GZGavinZhao Gavin Zhao
-
@LunNova Luna Nova <nixpkgs-maintainer@lunnova.dev>
-
@fxzzi Faaris Ansari <faaris.ansari@proton.me>
-
@saturn745 Saturn745 <git-commits.rk7uq@aleeas.com>
-
@cyrusknopf Cyrus Knopf <cyrus.knopf@gmail.com>
-
@drupol Pol Dellaiera <pol.dellaiera@protonmail.com>
-
@roquess Steve Roques <steve.roques@gmail.com>
-
@justdeeevin Devin Droddy <devin.droddy@gmail.com>
-
@fpletz Franz Pletz <fpletz@fnordicwalking.de>
-
@fabaff Fabian Affolter <mail@fabian-affolter.ch>