Linux Kernel
CVE-2024-36016
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconGain local TTY device access
-
DeliveryAttach n_gsm line discipline via ioctl
-
ExploitControl GSM peer to send crafted basic-mode frame
-
InstallTrigger mode-switch sequence to destabilize state
-
C2Inject extra bytes past declared length
-
ExecuteWrite past gsm->buf in kernel memory
-
ImpactCorrupt kernel heap for privilege escalation or crash
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to hold a local user account with permission to open and configure a TTY device using the n_gsm line discipline - specifically the ability to invoke ioctl(TIOCSETD, N_GSM0710) and subsequent configuration ioctls, which on most distributions requires either CAP_NET_ADMIN or group membership granting write access to the relevant /dev/ttyS* or USB serial device. Beyond local device access, the attacker must also control or simulate the remote GSM 07.10 peer endpoint to deliver the crafted multi-step frame sequence: basic-mode header with length 1, mid-stream mode switch, extra-byte injection, reversion to basic mode, and continued transmission. The n_gsm module is not auto-loaded in default Linux configurations and must be explicitly present, further limiting exposure to systems with active GSM serial multiplexing deployments. These combined prerequisites - local access, specific device permissions, module availability, and control of the GSM peer - substantially constrain realistic exploitation relative to the raw CVSS score. |
| Impact | The NVD-assigned CVSS 7.8 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) with AC:L understates the actual exploitation complexity: triggering the vulnerability requires controlling or simulating the remote GSM 07.10 peer to deliver a precisely timed multi-step frame sequence interleaved with mode reconfigurations, which is a non-trivial coordination requirement more consistent with AC:H. The PR:L assignment is accurate - standard user access to a TTY device is sufficient, not root. The high C/I/A triad reflects the real consequence of kernel memory corruption, which can enable privilege escalation or panic. Against these severity signals, the EPSS of 0.28% at the 19th percentile and absence from CISA KEV strongly suggest this has not been weaponized at scale. Real-world exposure is further narrowed to systems that load the n_gsm module (not the default on most general-purpose Linux deployments) and operate GSM 07.10 serial multiplexing hardware. For industrial, embedded, or telecom Linux environments where n_gsm is in active use, this is a genuine and patchable risk; for standard enterprise Linux servers, the practical threat surface is minimal. No conflict between data sources exists, though the AC:L NVD assignment is debatable given the multi-step peer-coordination requirement. |
| Exploit ScenarioDerived | A local attacker with permission to open a serial TTY device attaches the n_gsm line discipline via ioctl(TIOCSETD, N_GSM0710) and connects to a GSM 07.10 peer under their control. The attacker directs the peer to send a basic-mode frame header declaring a data length of 1, then issues a reconfiguration ioctl to switch to advanced mode and injects 2 or more data bytes, then switches back to basic mode and continues transmitting, causing gsm0_receive() to write beyond the end of gsm->buf and corrupt adjacent kernel memory, potentially enabling kernel panic or privilege escalation. No public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Aug 04, 2026
Out-of-bounds memory corruption in the Linux kernel's n_gsm tty line discipline allows a local attacker with TTY device access to write past the end of gsm->buf by orchestrating a specific mode-switch sequence between basic and advanced GSM 07.10 framing modes. The root cause is that gsm->state and gsm->len are not reset upon reconfiguration, permitting gsm0_receive() to exceed its buffer boundary when the peer continues sending data after a mode transition. Patches are available across multiple stable kernel trees; no public exploit code or CISA KEV listing has been identified, and EPSS sits at 0.28% (19th percentile), indicating low current exploitation activity despite the high-severity CVSS score.
Earlier versions of this analysis (2)
Out-of-bounds memory corruption in the Linux kernel's n_gsm tty line discipline (GSM 0710 MUX) allows a local low-privileged attacker, in coordination with a manipulated remote GSM peer, to corrupt kernel memory and potentially escalate privileges or crash the system. The flaw arises from a state-management defect in gsm0_receive(): when the n_gsm multiplexer is reconfigured between basic and advanced option modes at runtime, neither gsm->state nor gsm->len are reset, enabling a peer to write past the gsm->buf buffer boundary. No public exploit code has been identified at time of analysis, and EPSS sits at 0.28% (19th percentile), consistent with a low-probability but high-impact kernel memory corruption vulnerability.
Out-of-bounds write in the Linux kernel n_gsm tty line discipline's gsm0_receive() function allows a local attacker with low privileges to corrupt kernel memory by exploiting missing state resets during GSM 07.10 multiplexing mode transitions. When the local side switches between basic and advanced option modes without resetting gsm->state or gsm->len, a malicious peer can send oversized data frames that write past the gsm->buf buffer boundary, enabling potential privilege escalation to root. No public exploit code or CISA KEV listing has been identified at time of analysis; EPSS stands at 0.28% (19th percentile), reflecting low observed exploitation probability despite a CVSS score of 7.8.
RemediationAI
The primary remediation is to apply one of the nine upstream stable kernel patches available at git.kernel.org/stable (commits 0fb736c9, 46f52c89, 47388e80, 4c267110, 774d83b0, 9513d414, b229bc6c, b890d45a, f126ce73). Downstream users should update to the patched kernel version shipped by their distribution once vendor advisories confirm inclusion. As a compensating control where immediate patching is not feasible, administrators can blacklist the n_gsm module by adding the line install n_gsm /bin/false to /etc/modprobe.d/blacklist-n_gsm.conf and rebooting; note this completely disables GSM 07.10 serial multiplexing functionality and will break any dependent applications or hardware. On systems where the module is required, access to serial TTY devices should be restricted via udev rules or file permissions to prevent unauthorized users from attaching the n_gsm line discipline. Restricting physical access to serial ports hosting GSM modems further limits the ability of an attacker to control the GSM peer - a prerequisite for exploitation. Exact fixed distribution release version numbers are not independently confirmed from the available data; track your vendor's kernel security channel for specifics.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The n_gsm kernel module implements the 3GPP TS 27.010 / GSM 07.10 serial multiplexing protocol as a TTY line discipline, supporting two framing modes: basic option mode (byte-oriented framing with an explicit length field in gsm->len) and advanced option mode (HDLC-style framing where gsm->len is not used). The gsm0_receive() and gsm1_receive() functions process incoming bytes using gsm->state as a state machine and gsm->count as an accumulation counter. The root cause maps to CWE-125 (out-of-bounds read) per NVD classification, though the described mechanism also involves out-of-bounds writes to gsm->buf. The critical flaw is a state management gap: when the multiplexer is reconfigured between modes at runtime, neither gsm->state nor gsm->len is reset, so a crafted sequence - basic mode frame header declaring length 1, mid-stream switch to advanced mode injecting extra bytes, then reversion to basic mode - causes gsm->count to exceed the gsm->buf allocation without triggering the equality-based boundary check. The fix changes the check from equality (count == len) to less-than (count < len) and adds hard upper-bound guards against MAX_MRU in both receive paths. The CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* with wildcard version confirms broad kernel-version impact across all branches shipping n_gsm.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Exploitation requires coordinating a specific multi-step mode-switch frame sequence with a controlled GSM peer, making AC:H more accurate than the NVD-assigned AC:L.
Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).
CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Lifecycle Timeline
5DescriptionCVE.org
In the Linux kernel, the following vulnerability has been resolved:
tty: n_gsm: fix possible out-of-bounds in gsm0_receive()
Assuming the following:
- side A configures the n_gsm in basic option mode
- side B sends the header of a basic option mode frame with data length 1
- side A switches to advanced option mode
- side B sends 2 data bytes which exceeds gsm->len
Reason: gsm->len is not used in advanced option mode.
- side A switches to basic option mode
- side B keeps sending until gsm0_receive() writes past gsm->buf
Reason: Neither gsm->state nor gsm->len have been reset after reconfiguration.
Fix this by changing gsm->count to gsm->len comparison from equal to less than. Also add upper limit checks against the constant MAX_MRU in gsm0_receive() and gsm1_receive() to harden against memory corruption of gsm->len and gsm->mru.
All other checks remain as we still need to limit the data according to the user configuration and actual payload size.
Executive ViewAI
A critical memory corruption vulnerability in the Linux kernel's GSM line discipline allows local attackers with terminal device access to trigger an out-of-bounds write, potentially enabling privilege escalation on multi-user systems. Organizations operating shared Linux systems or containers with user isolation must prioritize kernel updates to eliminate this local privilege escalation path.
Apply vendor patch. If immediate patching is not feasible, restrict local terminal access (TTY device permissions) to trusted administrative users only, and review container runtime configurations to limit user capabilities and device access.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB