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-2025-21704

CVE-2025-21704: Linux Kernel Buffer Overflow Vulnerability

CVE-2025-21704 is a buffer overflow vulnerability in the Linux Kernel USB CDC-ACM driver that can lead to memory corruption. This article covers the technical details, affected versions, security impact, and mitigation.

Updated: January 22, 2026

CVE-2025-21704 Overview

A memory corruption vulnerability has been discovered in the Linux kernel's USB CDC-ACM (Communications Device Class - Abstract Control Model) driver. The vulnerability exists in the acm_ctrl_irq() function, which fails to properly validate the control transfer buffer size before accessing the struct usb_cdc_notification data structure. When the first fragment of a USB notification is shorter than the expected notification structure, the driver reads lengths from memory outside the received data buffer, leading to out-of-bounds memory access.

Critical Impact

Local attackers with low privileges can exploit this vulnerability to achieve memory corruption, potentially leading to privilege escalation, information disclosure, or system crashes on systems with USB CDC-ACM devices.

Affected Products

  • Linux Kernel versions 2.6.12 through current releases (prior to patch)
  • Linux Kernel 6.14-rc1 and 6.14-rc2
  • Systems running ModemManager with automatic USB device detection

Discovery Timeline

  • February 22, 2025 - CVE CVE-2025-21704 published to NVD
  • November 03, 2025 - Last updated in NVD database

Technical Details for CVE-2025-21704

Vulnerability Analysis

The vulnerability resides in the CDC-ACM driver's handling of fragmented USB control notifications. The acm_ctrl_irq() function processes incoming USB notifications, which can arrive as multiple fragments that are reassembled. The flaw occurs when calculating the expected_size variable from notification data without first verifying that the received buffer contains sufficient data.

When a maliciously crafted or malformed first fragment is smaller than struct usb_cdc_notification, the driver reads length values from memory beyond the actual received data. This becomes particularly dangerous during fragment reassembly, where if the expected_size value decreases between fragments, the calculation expected_size - acm->nb_index wraps due to integer underflow, causing out-of-bounds memory writes.

While this issue has existed since the early Linux kernel versions (2.6.12), it only became exploitable for memory corruption after commit ea2583529cd1 ("cdc-acm: reassemble fragmented notifications") introduced fragment reassembly functionality.

Root Cause

The root cause is improper input validation in the USB CDC-ACM notification handler. The driver assumes that incoming USB control transfer buffers will always contain at least sizeof(struct usb_cdc_notification) bytes before attempting to access the notification structure fields. This assumption fails when dealing with:

  • Maliciously crafted USB devices sending undersized notifications
  • Hardware malfunctions causing truncated transfers
  • Protocol violations from non-compliant USB devices

The fix adds proper bounds checking to verify the buffer size before accessing notification data and logs an error message when discarding invalid notifications.

Attack Vector

The vulnerability requires local access to the system and is triggered through USB device interaction. The attack surface includes:

The acm_ctrl_irq() function only executes after userspace has opened a /dev/ttyACM* device. However, systems running ModemManager will automatically probe and open these devices based on USB vendor/product IDs, significantly expanding the attack surface without user interaction. An attacker could potentially craft a malicious USB device that sends undersized notification fragments to trigger the memory corruption.

Detection Methods for CVE-2025-21704

Indicators of Compromise

  • Kernel error messages related to CDC-ACM buffer size validation failures in system logs
  • Unexpected kernel panics or system crashes when connecting USB modem or serial devices
  • Memory corruption symptoms such as kernel oops messages referencing the cdc-acm module
  • Suspicious USB device connections with non-standard notification packet sizes

Detection Strategies

  • Monitor kernel logs (dmesg, /var/log/kern.log) for CDC-ACM related errors or warnings
  • Deploy kernel tracing (ftrace, perf) to monitor acm_ctrl_irq() function behavior
  • Use USB traffic analysis tools to detect malformed CDC-ACM notification packets
  • Implement endpoint detection rules for systems with USB CDC-ACM devices connected

Monitoring Recommendations

  • Enable kernel audit logging for USB device attach/detach events
  • Monitor for ModemManager service activity on systems where it should not be running
  • Track /dev/ttyACM* device access patterns for anomalous behavior
  • Deploy SentinelOne agents configured to detect kernel-level exploitation attempts

How to Mitigate CVE-2025-21704

Immediate Actions Required

  • Update the Linux kernel to a patched version from your distribution's repositories
  • Disable or unload the cdc-acm kernel module if USB modem functionality is not required: modprobe -r cdc_acm
  • Stop and disable ModemManager service on systems that don't require cellular modem functionality
  • Restrict physical USB access on sensitive systems to prevent malicious device connections

Patch Information

Multiple patches have been released to address this vulnerability across various kernel versions. The fix adds proper buffer size validation before accessing the notification structure and safely discards undersized notifications with an appropriate error log.

Available patches from the kernel stable tree:

  • Kernel commit 383d516a0ebc
  • Kernel commit 6abb510251e7
  • Kernel commit 7828e9363ac4
  • Kernel commit 871619c2b78f

Additional security advisories are available from Debian LTS and Google Project Zero.

Workarounds

  • Blacklist the cdc_acm module by adding blacklist cdc_acm to /etc/modprobe.d/blacklist.conf
  • Disable USB hotplug for ACM class devices via udev rules to prevent automatic device enumeration
  • Restrict access to /dev/ttyACM* devices using appropriate file permissions or SELinux/AppArmor policies
bash
# Disable the cdc_acm module
echo "blacklist cdc_acm" >> /etc/modprobe.d/blacklist-cdc-acm.conf
echo "install cdc_acm /bin/false" >> /etc/modprobe.d/blacklist-cdc-acm.conf

# Stop ModemManager if not needed
systemctl stop ModemManager
systemctl disable ModemManager

# Unload the module if currently loaded
modprobe -r cdc_acm

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.8

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-787
  • Technical References
  • Chromium Project-Zero Issue

  • Debian LTS Announcement March

  • Debian LTS Announcement May
  • Vendor Resources
  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update
  • 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