Bug 2565677 (CVE-2026-121995) - CVE-2026-121995 gdb: gdb: stack buffer overflow in parse_tracepoint_definition via stale rs->buf tail
Summary: CVE-2026-121995 gdb: gdb: stack buffer overflow in parse_tracepoint_definitio...
Keywords:
Status: NEW
Alias: CVE-2026-121995
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:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-03 10:03 UTC by OSIDB Bzimport
Modified: 2026-11-05 14:34 UTC (History)
3 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-03 10:03:08 UTC
Stack buffer overflow in parse_tracepoint_definition (gdb/tracepoint.c), Z branch. The packet buffer rs->buf is reused between requests without clearing. When a short qTsP reply follows a longer qTfP reply, the parser's p pointer — advanced through strchr/unpack_varlen_hex calls — walks past the short reply's NUL terminator into stale data from the prior longer reply. hex2bin then copies strlen(p)/2 pairs into an alloca buffer sized only for the short reply, overflowing it. Fires automatically during target remote connection setup with no additional user commands.


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