The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-36016

CVE-2024-36016: Linux Kernel Buffer Overflow Vulnerability

CVE-2024-36016 is a buffer overflow vulnerability in the Linux Kernel's n_gsm tty driver that may allow out-of-bounds memory writes. This article covers the technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2024-36016 Overview

CVE-2024-36016 is an out-of-bounds write vulnerability in the Linux kernel's n_gsm TTY line discipline implementation, specifically in the gsm0_receive() function. The vulnerability arises from improper handling of frame data during mode switching between basic and advanced option modes in the GSM 0710 multiplexer protocol. An attacker can exploit the lack of proper state and length validation during reconfiguration to write past the allocated buffer boundaries.

Critical Impact

Local attackers can potentially achieve high confidentiality and availability impact through memory corruption, potentially leading to information disclosure or system crashes.

Affected Products

  • Linux Kernel (multiple versions affected)
  • Debian Linux distributions using vulnerable kernel versions
  • Systems utilizing GSM 0710 multiplexer functionality

Discovery Timeline

  • May 29, 2024 - CVE-2024-36016 published to NVD
  • November 4, 2025 - Last updated in NVD database

Technical Details for CVE-2024-36016

Vulnerability Analysis

This vulnerability exists in the n_gsm TTY line discipline driver, which implements the GSM 0710 multiplexer protocol for serial communication multiplexing. The out-of-bounds write condition occurs due to a specific sequence of events involving mode switching between basic and advanced option modes.

The attack sequence works as follows: when side A configures n_gsm in basic option mode, side B can send a basic option mode frame header with a data length of 1. If side A then switches to advanced option mode while side B sends 2 data bytes, the received data exceeds gsm->len because this variable is not used in advanced option mode. When side A switches back to basic option mode and side B continues sending data, gsm0_receive() can write past the gsm->buf buffer boundary. This occurs because neither gsm->state nor gsm->len are properly reset after reconfiguration.

Root Cause

The root cause is a failure to properly reset state variables (gsm->state and gsm->len) during mode reconfiguration in the n_gsm driver. Additionally, the original code used an equality comparison (==) between gsm->count and gsm->len rather than a less-than comparison (<), allowing the buffer write to proceed even when the count exceeded the expected length. The absence of upper limit checks against MAX_MRU in both gsm0_receive() and gsm1_receive() functions further contributed to the vulnerability by not providing defense against potential memory corruption of gsm->len and gsm->mru.

Attack Vector

The vulnerability requires local access to the system to manipulate the n_gsm TTY line discipline. An attacker needs the ability to control both ends of a GSM multiplexer communication or influence the timing of mode switches and data transmission to trigger the out-of-bounds write condition.

The fix changes the gsm->count to gsm->len comparison from equal to less-than and adds upper limit checks against the constant MAX_MRU in both gsm0_receive() and gsm1_receive() to harden against memory corruption scenarios. For detailed patch information, see Linux Kernel Commit 47388e8.

Detection Methods for CVE-2024-36016

Indicators of Compromise

  • Kernel crash logs or OOPS messages related to n_gsm or TTY subsystem
  • Unexpected memory access violations in kernel logs referencing gsm0_receive or gsm1_receive functions
  • System instability when using GSM 0710 multiplexer functionality

Detection Strategies

  • Monitor kernel logs for out-of-bounds access warnings related to the n_gsm driver
  • Implement kernel address sanitizer (KASAN) in development environments to detect buffer overflows
  • Review system logs for anomalous TTY line discipline switching patterns

Monitoring Recommendations

  • Enable kernel auditing to track TTY device access and line discipline changes
  • Deploy endpoint detection solutions that monitor for kernel memory corruption indicators
  • Implement SentinelOne Singularity platform for real-time kernel-level threat detection and behavioral analysis

How to Mitigate CVE-2024-36016

Immediate Actions Required

  • Update Linux kernel to a patched version as soon as available from your distribution
  • If GSM 0710 multiplexer functionality is not required, consider disabling or blacklisting the n_gsm module
  • Monitor systems for signs of exploitation attempts targeting the n_gsm subsystem

Patch Information

The Linux kernel team has released patches across multiple stable branches to address this vulnerability. The fix changes the comparison logic from equality to less-than and adds MAX_MRU upper limit checks in both gsm0_receive() and gsm1_receive() functions. Patches are available from the following commits:

  • Linux Kernel Commit 47388e8
  • Linux Kernel Commit 774d83b
  • Linux Kernel Commit 9513d41
  • Linux Kernel Commit b229bc6

Debian users should refer to the Debian LTS Announcement for distribution-specific patch information.

Workarounds

  • Blacklist the n_gsm kernel module if not needed: add blacklist n_gsm to /etc/modprobe.d/blacklist.conf
  • Restrict access to TTY devices using appropriate file permissions
  • Implement network segmentation to limit exposure of systems using GSM multiplexer functionality
bash
# Disable n_gsm module if not required
echo "blacklist n_gsm" >> /etc/modprobe.d/blacklist-n_gsm.conf
echo "install n_gsm /bin/false" >> /etc/modprobe.d/blacklist-n_gsm.conf
update-initramfs -u

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLinux Kernel

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Technical References
  • Debian LTS Announcement
  • Vendor Resources
  • Linux Kernel Commit 0fb736c

  • Linux Kernel Commit 46f52c8

  • Linux Kernel Commit 47388e8

  • Linux Kernel Commit 4c26711

  • Linux Kernel Commit 774d83b

  • Linux Kernel Commit 9513d41

  • Linux Kernel Commit b229bc6

  • Linux Kernel Commit b890d45

  • Linux Kernel Commit f126ce7
  • Related CVEs
  • CVE-2026-23448: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-23447: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31395: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31402: Linux Kernel Buffer Overflow Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English