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

CVE-2026-31726: Linux Kernel Race Condition Vulnerability

CVE-2026-31726 is a race condition flaw in the Linux Kernel's USB gadget UVC driver that causes NULL pointer dereference during PM transitions. This article covers technical details, affected versions, and mitigation.

Published: May 7, 2026

CVE-2026-31726 Overview

CVE-2026-31726 is a NULL pointer dereference vulnerability in the Linux kernel's USB gadget UVC (USB Video Class) function driver. The flaw exists in uvc_function_unbind() and is triggered by a race condition during power management (PM) suspend transitions. When the PM subsystem freezes user space processes, wait_event_interruptible_timeout() is aborted early, allowing the unbind thread to nullify cdev->gadget. Subsequent V4L2 release operations then access the nullified pointer through usb_gadget_deactivate(), triggering a kernel panic. The vulnerability is classified under [CWE-476] (NULL Pointer Dereference) and affects multiple Linux kernel branches, including 7.0 release candidates.

Critical Impact

A local user with the ability to trigger USB gadget unbind during PM suspend can cause a kernel panic, resulting in a denial-of-service condition on affected Linux systems.

Affected Products

  • Linux Kernel (multiple stable branches)
  • Linux Kernel 7.0-rc1 through 7.0-rc6
  • Systems using configfs-gadget with the UVC function driver

Discovery Timeline

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

Technical Details for CVE-2026-31726

Vulnerability Analysis

The vulnerability stems from a race condition between USB gadget unbind operations and V4L2 release callbacks during power management transitions. Commit b81ac4395bbe previously introduced a 1500ms two-stage synchronization wait in uvc_function_unbind() to prevent kernel panics during clean shutdown sequences. This timing-based approach proved insufficient when the PM subsystem initiates a suspend cycle.

When PM begins freezing user space processes, the wait_event_interruptible_timeout() call in the unbind path is interrupted early. The unbind thread then proceeds to set cdev->gadget = NULL. When tasks resume after suspend completes or aborts, the V4L2 release path executes uvc_v4l2_release(), which calls uvc_function_disconnect() and ultimately usb_gadget_deactivate() against the nullified gadget pointer.

Root Cause

The root cause is improper state synchronization between the unbind thread and the V4L2 release callback. The original timeout-based design assumed user space would complete cleanup before unbind nullified the gadget pointer. PM-initiated freezing breaks that assumption by aborting the timeout wait. There is no mutex or completion guarding access to cdev->gadget after it is nullified, allowing a use-after-nullification access pattern.

Attack Vector

Exploitation requires local access with privileges to trigger USB gadget unbind operations and influence PM suspend cycles. An attacker with these capabilities can race the unbind operation against a suspend transition to deterministically reach the nullified pointer access in usb_gadget_deactivate+0x14/0xf4. The result is a kernel NULL pointer dereference at virtual address 0x30, producing a kernel panic and denial of service. The fix introduces a func_unbound flag in struct uvc_device protected by a new uvc->lock mutex, plus a completion to synchronize uvc_function_unbind() with uvc_vdev_release() to prevent both NULL dereference and use-after-free conditions.

Detection Methods for CVE-2026-31726

Indicators of Compromise

  • Kernel panic logs referencing usb_gadget_deactivate, usb_function_deactivate, uvc_function_disconnect, or uvc_v4l2_release in the call trace.
  • Dmesg entries showing uvc_function_unbind no clean disconnect, wait for release immediately followed by PM suspend entry messages.
  • Unexpected system crashes correlating with USB gadget configuration changes during sleep or hibernate cycles.

Detection Strategies

  • Monitor /var/log/kern.log and journald output for NULL pointer dereference traces involving the UVC gadget call chain.
  • Audit kernel versions across Linux fleets to identify hosts running affected stable branches or 7.0 release candidates.
  • Correlate PM suspend/resume events with USB gadget configfs activity to identify systems at elevated risk.

Monitoring Recommendations

  • Forward kernel ring buffer logs to a centralized SIEM for crash signature analysis.
  • Track frequency of UVC gadget bind/unbind operations on edge devices, embedded systems, and Android-derived platforms.
  • Alert on repeated kernel oops events on devices that expose USB gadget functionality, particularly camera or video streaming gadgets.

How to Mitigate CVE-2026-31726

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced in the stable tree commits as soon as they are available for your distribution.
  • Inventory all systems using the g_webcam or custom UVC gadget configurations, including embedded devices and SBCs.
  • Restrict local access and USB gadget configfs permissions to trusted administrative users only.

Patch Information

The fix is distributed across multiple stable kernel commits, including Linux Kernel Commit 0587de7, Linux Kernel Commit 1aa9356, Linux Kernel Commit c038ba5, and Linux Kernel Commit eba2936. The patch introduces a func_unbound flag protected by a new uvc->lock mutex and uses a completion primitive to synchronize unbind with uvc_vdev_release(). Distribution maintainers should pull the corresponding stable backports for supported branches.

Workarounds

  • Avoid unbinding the UVC gadget while the system is entering or exiting suspend; serialize gadget configuration changes outside PM transitions.
  • Disable the UVC gadget function via configfs on systems that do not require USB video class functionality.
  • Where feasible, disable system suspend on devices acting as USB video gadgets until patched kernels are deployed.
bash
# Configuration example: disable the UVC gadget function via configfs
sudo sh -c 'echo "" > /sys/kernel/config/usb_gadget/g1/UDC'
sudo rm /sys/kernel/config/usb_gadget/g1/configs/c.1/uvc.0
sudo rmdir /sys/kernel/config/usb_gadget/g1/functions/uvc.0

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

  • Vulnerability Details
  • TypeRace Condition

  • Vendor/TechLinux Kernel

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.03%

  • 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
  • Linux Kernel Commit 0587de7

  • Linux Kernel Commit 0c00ec4

  • Linux Kernel Commit 1aa9356

  • Linux Kernel Commit 8a1128d

  • Linux Kernel Commit c038ba5

  • Linux Kernel Commit c78e463

  • Linux Kernel Commit d92d153

  • Linux Kernel Commit eba2936
  • Related CVEs
  • CVE-2026-31740: Linux Kernel Race Condition Vulnerability

  • CVE-2026-31751: Linux Kernel Race Condition Vulnerability

  • CVE-2026-31700: Linux Kernel Race Condition Vulnerability

  • CVE-2026-43091: Linux Kernel Race Condition 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