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-31727

CVE-2026-31727: Linux Kernel USB Gadget DoS Vulnerability

CVE-2026-31727 is a denial of service flaw in Linux Kernel's USB gadget u_ether that causes NULL pointer dereference during device unbind. This article covers the technical details, affected versions, and mitigation.

Published: May 7, 2026

CVE-2026-31727 Overview

CVE-2026-31727 is a NULL pointer dereference vulnerability in the Linux kernel's USB gadget Ethernet driver (u_ether). The flaw resides in the eth_get_drvinfo() function within the USB gadget subsystem. A prior commit (ec35c1969650) reparents the gadget device to /sys/devices/virtual during unbind, which clears the gadget pointer. If a userspace tool queries the surviving network interface during this detached window, the kernel dereferences a NULL pointer and crashes. The vulnerability is tracked under [CWE-476] (NULL Pointer Dereference) and affects local users with low privileges on systems using USB gadget networking modules such as f_ncm.

Critical Impact

A local user can trigger a kernel NULL pointer dereference by issuing an ethtool query against a USB gadget network interface during unbind, resulting in a kernel crash and denial of service.

Affected Products

  • Linux Kernel 7.0-rc1 through 7.0-rc6
  • Linux Kernel stable branches containing commit ec35c1969650 ("usb: gadget: f_ncm: Fix net_device lifecycle with device_move")
  • Systems using the u_ether USB gadget driver with NCM or related function drivers

Discovery Timeline

  • 2026-05-01 - CVE-2026-31727 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-31727

Vulnerability Analysis

The vulnerability resides in drivers/usb/gadget/function/u_ether.c, specifically in the eth_get_drvinfo() callback exposed to the ethtool subsystem. The function reads dev->gadget and dereferences it to populate the fw_version and bus_info fields returned to userspace ethtool consumers.

When a USB gadget function such as f_ncm is unbound, commit ec35c1969650 reparents the underlying gadget device to /sys/devices/virtual and clears the gadget pointer on the network device. The network interface itself remains visible to userspace during this transitional window. A concurrent ethtool ioctl on the surviving interface reaches eth_get_drvinfo(), which dereferences the now-NULL dev->gadget, producing the kernel oops shown in the call trace: eth_get_drvinfo+0x50/0x90 → ethtool_get_drvinfo+0x5c/0x1f0 → __dev_ethtool+0xaec/0x1fe0 → dev_ioctl+0x338/0x560.

Root Cause

The root cause is a missing NULL check on dev->gadget inside eth_get_drvinfo(). The original code assumed the gadget pointer remains valid for the lifetime of the network device. The lifecycle change introduced by device_move broke that assumption by clearing the pointer while the netdev is still reachable from userspace.

Attack Vector

Exploitation requires local access with permission to invoke ethtool ioctls. An attacker triggers an unbind of a USB gadget configuration (or waits for one to occur) and races an ethtool -i <iface> query against the surviving interface. The race window opens once the gadget pointer is cleared but before the netdev is fully unregistered, leading to a kernel panic and denial of service on the affected host.

No verified public proof-of-concept code is available. See the upstream commits referenced in the Kernel Git Commit a36e5e8 for the technical fix details.

Detection Methods for CVE-2026-31727

Indicators of Compromise

  • Kernel oops messages referencing eth_get_drvinfo+0x50/0x90 in dmesg or /var/log/kern.log
  • Call trace entries showing ethtool_get_drvinfo followed by __dev_ethtool and dev_ioctl
  • Unexpected system crashes or hangs correlated with USB gadget unbind events or configfs operations on /sys/kernel/config/usb_gadget/

Detection Strategies

  • Monitor kernel ring buffer for Unable to handle kernel NULL pointer dereference messages tied to USB gadget interfaces
  • Audit ethtool invocations against gadget-backed network interfaces during configuration changes using auditd rules on the ioctl syscall
  • Track loading and unbinding of u_ether, f_ncm, f_ecm, and related gadget modules through kernel_module audit events

Monitoring Recommendations

  • Collect kernel crash dumps with kdump and forward stack traces to a centralized logging platform for triage
  • Alert on repeated USB gadget bind/unbind sequences originating from non-administrative user contexts
  • Correlate netdev lifecycle events with concurrent ethtool queries to identify race attempts

How to Mitigate CVE-2026-31727

Immediate Actions Required

  • Apply the upstream kernel patches referenced in the vendor advisories to all affected hosts running Linux 7.0-rc1 through 7.0-rc6
  • Restrict local access to systems exposing USB gadget networking, particularly embedded and developer devices
  • Limit CAP_NET_ADMIN and direct ioctl access on gadget-backed interfaces to trusted administrative accounts

Patch Information

The fix adds a NULL check for dev->gadget in eth_get_drvinfo(). When the gadget is detached, the function skips copying the fw_version and bus_info strings, relying on ethtool_get_drvinfo to handle empty strings natively. The patches are available in the following stable kernel commits: Kernel Git Commit 0326429, Kernel Git Commit 7de4d46, Kernel Git Commit a36e5e8, and Kernel Git Commit e002e92.

Workarounds

  • Unload the u_ether and dependent gadget function modules (f_ncm, f_ecm) on systems that do not require USB gadget networking
  • Disable USB gadget configfs mounts on production hosts that do not act as USB device endpoints
  • Block unprivileged users from issuing ethtool ioctls against gadget-backed interfaces using namespace and capability restrictions
bash
# Configuration example: blacklist USB gadget Ethernet modules where not required
echo "blacklist u_ether" | sudo tee /etc/modprobe.d/blacklist-u_ether.conf
echo "blacklist usb_f_ncm" | sudo tee -a /etc/modprobe.d/blacklist-u_ether.conf
echo "blacklist usb_f_ecm" | sudo tee -a /etc/modprobe.d/blacklist-u_ether.conf
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
  • TypeDOS

  • Vendor/TechLinux Kernel

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.02%

  • 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-476
  • Vendor Resources
  • Kernel Git Commit 0326429

  • Kernel Git Commit 7de4d46

  • Kernel Git Commit a36e5e8

  • Kernel Git Commit e002e92
  • Related CVEs
  • CVE-2026-31739: Linux Kernel Tegra Crypto DoS Vulnerability

  • CVE-2026-43054: Linux Kernel tcm_loop DOS Vulnerability

  • CVE-2026-31736: Linux Kernel MTK PPE DoS Vulnerability

  • CVE-2026-31775: Linux Kernel ALSA ctxfi DoS 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