Bug 2565676 (CVE-2026-121994) - CVE-2026-121994 gdb: gdb: stack buffer overflow in fetch_register_using_p via unchecked p-reply length
Summary: CVE-2026-121994 gdb: gdb: stack buffer overflow in fetch_register_using_p via...
Keywords:
Status: NEW
Alias: CVE-2026-121994
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:30 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:04 UTC
Stack buffer overflow in remote_target::fetch_register_using_p (gdb/remote.c). The function allocates a stack buffer via alloca(register_size) then decodes the stub's p-reply into it with a loop that terminates only on NUL, without bounding writes by register_size. A malicious RSP stub sends an oversized p-reply to overflow the stack buffer and overwrite the saved return address. The same primitive — with a reply shorter than register_size — leaks stack bytes via raw_supply, enabling canary and ASLR disclosure from the same connection.


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