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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2026-31616

CVE-2026-31616: Linux Kernel Buffer Overflow Vulnerability

CVE-2026-31616 is a buffer overflow flaw in the Linux Kernel's USB gadget f_phonet driver that allows malicious USB hosts to overflow memory. This article covers the technical details, affected versions, and mitigations.

Published: April 30, 2026

CVE-2026-31616 Overview

CVE-2026-31616 is a memory corruption vulnerability in the Linux kernel's USB gadget subsystem, specifically affecting the Phonet function driver (f_phonet). A malicious or compromised USB host can trigger a heap-based out-of-bounds write by sending an unbounded sequence of full-page OUT transfers to a Linux gadget device exposing the Phonet function. This overflow occurs in the skb_shared_info->frags[] array within the pn_rx_complete() function, potentially corrupting adjacent heap memory.

Critical Impact

A local attacker with physical access to a USB gadget device can cause a denial of service (system crash) by overwriting heap memory adjacent to the socket buffer's shared info structure. This could potentially be leveraged for more severe attacks depending on heap layout.

Affected Products

  • Linux Kernel (multiple versions with USB gadget Phonet function support)
  • Linux-based embedded devices exposing USB gadget functionality
  • Systems configured with CONFIG_USB_GADGET and Phonet function enabled

Discovery Timeline

  • 2026-04-24 - CVE CVE-2026-31616 published to NVD
  • 2026-04-28 - Last updated in NVD database

Technical Details for CVE-2026-31616

Vulnerability Analysis

The vulnerability exists in the pn_rx_complete() function within the Linux kernel's USB gadget Phonet driver (drivers/usb/gadget/function/f_phonet.c). The function processes incoming USB OUT transfers and constructs socket buffers (skbs) by adding page fragments to the skb_shared_info->frags[] array using skb_add_rx_frag().

The core issue is that the function only finalizes and resets the skb when req->actual < req->length, where req->length is set to PAGE_SIZE. When a malicious USB host consistently sends exactly PAGE_SIZE bytes per transfer, the condition to finalize the skb is never met. This causes the fp->rx.skb to accumulate fragments indefinitely without being reset.

Once the nr_frags counter exceeds MAX_SKB_FRAGS (typically 17 on most systems), subsequent fragment additions will write beyond the bounds of the frags[] array, corrupting heap memory adjacent to the skb_shared_info structure.

Root Cause

The root cause is missing bounds checking on the number of fragments (nr_frags) before adding new fragments to the skb. The driver assumed that the USB protocol would naturally terminate transfers before reaching the fragment limit, but this assumption fails when a malicious host crafts transfers to exploit this behavior.

The fix implements a check to drop the skb and account for a length error when the fragment limit is reached, matching the approach used in commit f0813bcd2d9d for the t7xx WWAN driver which had a similar vulnerability in its RX path.

Attack Vector

The attack requires local access to the USB gadget device, typically through physical connection to the USB port. The attacker must act as a USB host connecting to a Linux device configured as a USB gadget with the Phonet function enabled.

The exploitation scenario involves a controlled USB host device sending a continuous stream of OUT transfers, each exactly PAGE_SIZE bytes in length. This prevents the normal skb finalization path from triggering, causing unbounded fragment accumulation until heap corruption occurs.

Since no verified exploit code is available, here is a prose description of the attack mechanism:

  1. Attacker connects a malicious USB host to a Linux gadget device exposing the Phonet function
  2. The host initiates OUT transfers to the Phonet endpoint
  3. Each transfer sends exactly PAGE_SIZE bytes (typically 4096 bytes)
  4. The gadget's pn_rx_complete() adds a fragment for each transfer but never finalizes the skb
  5. After 17+ consecutive full-page transfers, the frags[] array overflows
  6. Heap memory adjacent to skb_shared_info is corrupted, causing a crash or undefined behavior

Detection Methods for CVE-2026-31616

Indicators of Compromise

  • Kernel panic or oops messages referencing pn_rx_complete or f_phonet module
  • Unexpected system crashes on devices with USB gadget functionality enabled
  • Heap corruption warnings or memory errors in kernel logs related to skb operations
  • Unusual USB activity patterns showing repeated full-page transfers to Phonet endpoints

Detection Strategies

  • Monitor kernel logs for crashes or memory corruption errors in USB gadget subsystem
  • Deploy kernel auditing to track USB gadget function activity and anomalous transfer patterns
  • Use SentinelOne's Singularity platform to detect exploitation attempts through behavioral analysis
  • Implement USB device monitoring to identify potentially malicious host connections

Monitoring Recommendations

  • Enable kernel logging for USB gadget events and monitor for abnormal transfer volumes
  • Configure alerts for kernel memory corruption events or unexpected crashes on gadget-enabled systems
  • Audit systems for unnecessary USB gadget configurations that could expose this attack surface
  • Review connected USB devices periodically on embedded Linux systems with gadget support

How to Mitigate CVE-2026-31616

Immediate Actions Required

  • Update the Linux kernel to a patched version containing the fix for this vulnerability
  • Disable the USB Phonet gadget function if not required for system operation
  • Restrict physical access to USB ports on vulnerable embedded devices
  • Monitor systems for signs of exploitation while patching is in progress

Patch Information

The Linux kernel team has released patches across multiple stable branches to address this vulnerability. The fix adds a bounds check to drop the skb and account for a length error when the fragment limit (MAX_SKB_FRAGS) is reached.

Patches are available at the following commits:

  • Linux Kernel Commit 4e476c2
  • Linux Kernel Commit 66f7471
  • Linux Kernel Commit 9ceff12
  • Linux Kernel Commit bd44ce0
  • Linux Kernel Commit c088d5d
  • Linux Kernel Commit c9315ce

Workarounds

  • Disable the Phonet USB gadget function by unloading the g_phonet or f_phonet kernel module
  • Remove USB gadget controller driver modules if gadget functionality is not required
  • Implement physical security controls to prevent unauthorized USB host connections
  • Use USB port blockers or disable USB ports at the hardware level on sensitive systems
bash
# Configuration example
# Disable Phonet USB gadget function
sudo modprobe -r usb_f_phonet
sudo modprobe -r g_phonet

# Blacklist the module to prevent automatic loading
echo "blacklist usb_f_phonet" | sudo tee /etc/modprobe.d/disable-phonet-gadget.conf
echo "blacklist g_phonet" | sudo tee -a /etc/modprobe.d/disable-phonet-gadget.conf

# Update initramfs to apply blacklist
sudo 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

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-401
  • Vendor Resources
  • Linux Kernel Commit 4e476c2

  • Linux Kernel Commit 66f7471

  • Linux Kernel Commit 9ceff12

  • Linux Kernel Commit bd44ce0

  • Linux Kernel Commit c088d5d

  • Linux Kernel Commit c9315ce
  • Related CVEs
  • CVE-2026-43490: Linux Kernel ksmbd Buffer Overflow Flaw

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

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

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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