CVE-2026-121994
Awaiting Analysis Awaiting Analysis - Queue

Stack Buffer Overflow in GDB Remote Protocol Handler

Vulnerability report for CVE-2026-121994, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-05

Last updated on: 2026-11-06

Assigner: redhat-SADP

Description

A stack buffer overflow in the GDB client's remote protocol handler allows an attacker-controlled debug target to execute arbitrary code in the GDB process. The vulnerability exists in fetch_register_using_p, which decodes a stub's register reply into an alloca-sized buffer without bounding writes by the register width.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-05
Last Modified
2026-11-06
Generated
2026-11-08
AI Q&A
2026-11-05
EPSS Evaluated
2026-11-06
NVD
EUVD

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-121 A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a stack buffer overflow in GDB's remote protocol handler. It occurs in the fetch_register_using_p function which decodes a debug target's register reply into a stack buffer without proper size validation. An attacker controlling the debug target can send oversized replies to overflow the buffer and execute arbitrary code in the GDB process.

Detection Guidance

Detecting this vulnerability requires monitoring for unusual activity in GDB processes or network connections involving remote debugging. Check for unexpected crashes in GDB when connected to remote targets. Inspect network traffic for malformed p-replies or oversized register replies from debug stubs. Enable GDB logging with 'set debug remote 1' to observe protocol handling.

Impact Analysis

If you connect GDB to a malicious debug target, an attacker could execute arbitrary code in your GDB process. This could lead to system compromise, data theft, or further attacks. The vulnerability requires user interaction (connecting to a malicious target) but has high impact once exploited.

Compliance Impact

This vulnerability could impact compliance with GDPR and HIPAA by enabling arbitrary code execution and information disclosure in GDB processes. Unauthorized code execution may lead to unauthorized access to sensitive data, violating confidentiality requirements in both regulations. Information disclosure risks, such as leaking stack canaries or ASLR details, further compromise security controls mandated by these standards.

Mitigation Strategies

Only connect GDB to trusted debug targets. Avoid using GDB's remote debugging feature with untrusted or external systems. If possible, upgrade to a patched version of GDB or Red Hat Enterprise Linux. Monitor for signs of exploitation such as unexpected GDB crashes or code execution.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-121994. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...