Skip to main content

Linux Kernel EUVDEUVD-2026-26569

| CVE-2026-31756 MEDIUM
Improper Locking (CWE-667)
2026-05-01 Linux
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Local user access
  2. Delivery
    Load/verify dwc2 gadget driver active
  3. Exploit
    Trigger gadget driver stop via sysfs or modprobe
  4. Install
    dwc2_hsotg_udc_stop() executes
  5. C2
    call_gadget() macro invoked without lock held
  6. Execute
    spin_unlock() on unheld lock and deadlock occurs
  7. Impact
    System hang/DoS

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Proper locking
Exploitation Conditions

The vulnerability requires dwc2 gadget (not host) mode to be active and the gadget driver subsystem to be loaded in the kernel. Exploitation specifically occurs when dwc2_hsotg_udc_stop() is called, which happens during gadget driver unbind/removal or when the USB device controller is disabled. This is not a default configuration on desktop/server Linux - only devices explicitly using USB gadget functionality (embedded systems, mobile devices, USB peripheral mode devices) are vulnerable. Local authentication is required (PR:L), meaning the attacker must be an authenticated local user or have local system access. The vulnerability is not exploitable from remote network access. Systems without CONFIG_USB_DWC2_GADGET=y kernel option or without any dwc2 gadget driver instantiated are not affected.

Impact

CVSS 5.5 (AV:L/AC:L/PR:L) indicates local, low-complexity exploitation by authenticated users with denial of service impact. The EPSS score of 0.02% (7th percentile) is extremely low, suggesting minimal real-world exploitation likelihood despite the moderate CVSS rating. This significant disconnect between CVSS and EPSS is typical for kernel synchronization bugs: while CVSS correctly flags the DoS impact and local attack vector, EPSS reflects that triggering gadget driver unload (dwc2_hsotg_udc_stop) in practice requires specific hardware (USB gadget controller) and deliberate administrator action. The vulnerability requires privilege level L (local user, not root) and necessitates the dwc2 gadget driver to be actively in use, which is not default on most Linux deployments. This is a real issue for devices relying on dwc2 (embedded systems, USB OTG devices) but not a widespread risk for typical server/desktop Linux systems. The low EPSS accurately reflects limited real-world exploitability despite the locking defect being genuine.

Exploit ScenarioDerived

A local authenticated user with standard privileges on a system with dwc2 gadget controller active (e.g., embedded Linux device, Android, or USB OTG-capable system) triggers USB gadget mode disabling or unloading via sysfs interface or driver removal, causing dwc2_hsotg_udc_stop() to execute. The missing spinlock causes a deadlock, hanging the dwc2 gadget controller and potentially freezing the entire system if USB gadget is critical to device function. No public proof-of-concept exploit code exists; manual invocation of gadget driver stop sequence (e.g., 'echo 0 > /sys/devices/.../UDC' or module unload) is the practical trigger.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 08, 2026

Denial of service in Linux kernel USB dwc2 gadget driver allows local authenticated users to trigger a deadlock via improper spin lock handling in dwc2_hsotg_udc_stop(). The vulnerability stems from a locking protocol violation where dwc2_gadget_exit_clock_gating() expects a held lock but is called without one, causing spin_unlock on an unheld lock followed by a lock held indefinitely, resulting in system hang. No public exploit code identified at time of analysis.

RemediationAI

Vendor-released patches are available across all supported stable kernel series: upgrade to Linux 5.15.203 or later (5.15.x), 6.1.168 or later (6.1.x), 6.6.134 or later (6.6.x), 6.12.81 or later (6.12.x), 6.18.22 or later (6.18.x), 6.19.12 or later (6.19.x), or 7.0 or later. The fix acquires hsotg->lock before calling dwc2_gadget_exit_clock_gating() and releases it afterward, ensuring the locking invariant of call_gadget() is maintained. For systems unable to immediately upgrade, disable USB gadget functionality if not required by the device (this prevents dwc2_hsotg_udc_stop() from being called), or restrict local access to USB device management interfaces if supported by your distribution. Verify that your system uses the dwc2 gadget driver (typically on embedded systems or devices with USB OTG support) before treating as critical priority; standard desktop and server distributions without USB gadget mode enabled face minimal practical risk.

Affected VersionsENISA

Linux ba78c2b3254c4a458c01776612e8a573e12f8d26 <4ed9d2dd9f29828c311db6ec4b8e0d34bfd6d6a4
Linux 5cb3cb3db317c58d50b68f3ca3bb8343ea9d1acd <e9fcca3e87463013d595c65c2189ffaa32ad3b50
Linux patch: 6.19.12
Linux af076a41f8a28faf9ceb9dd2d88aef2c202ef39a <51b62286fc668c6eb74dee7624ec0beec3c5a0ed
Linux 41732f9febdccb4f9b87c13cb915d717d68ccafd <beab10429439e20708036a66fb0d97ffb79da6a1
Linux patch: 6.12.81
Linux 1ac826cebc2776f91569f2aa9c9c3da2375d2096 <8ffe31acb3b77a30ae34d01719a269881569fb7f
Linux af076a41f8a28faf9ceb9dd2d88aef2c202ef39a <61937f686290494998236c680ce0836b8dd63a3f
Linux af076a41f8a28faf9ceb9dd2d88aef2c202ef39a <9bb4b5ed7f8c4f95cc556bdf042b0ba2fa13557a
Linux 6.16
Linux patch: 0
Linux patch: 5.15.203
Linux b39c203690fa1678daecc60f347e43c8b593b969
Linux patch: 6.6.134
Linux patch: 7.0
Linux patch: 6.18.22
Linux patch: 6.1.168

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The Linux kernel USB Synopsys DesignWare Core High-Speed (dwc2) gadget controller driver implements USB peripheral device functionality. The vulnerability exists in the gadget mode stop sequence (dwc2_hsotg_udc_stop() function) where proper spinlock synchronization is not maintained. The call_gadget() macro internally performs spin_unlock/spin_lock pairs around gadget driver callbacks, expecting the caller to already hold hsotg->lock. When dwc2_gadget_exit_clock_gating() - which uses call_gadget() - is invoked without the lock being held, it violates this contract, causing undefined behavior in the synchronization primitive and subsequent deadlock. The root cause is classified under CWE-667 (Improper Locking), a synchronization primitive misuse pattern.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
SUSE MEDIUM
Red Hat 5.5 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

5
CVSS changed
May 08, 2026 - 18:37 NVD
5.5 (MEDIUM)
Patch available
May 01, 2026 - 16:33 EUVD
Patch released
May 01, 2026 - 15:24 nvd
Patch available
CVE Published
May 01, 2026 - 14:14 nvd
MEDIUM 5.5
CVE Published
May 01, 2026 - 14:14 nvd
N/A

DescriptionNVD

In the Linux kernel, the following vulnerability has been resolved:

usb: dwc2: gadget: Fix spin_lock/unlock mismatch in dwc2_hsotg_udc_stop()

dwc2_gadget_exit_clock_gating() internally calls call_gadget() macro, which expects hsotg->lock to be held since it does spin_unlock/spin_lock around the gadget driver callback invocation.

However, dwc2_hsotg_udc_stop() calls dwc2_gadget_exit_clock_gating() without holding the lock. This leads to:

  • spin_unlock on a lock that is not held (undefined behavior)
  • The lock remaining held after dwc2_gadget_exit_clock_gating() returns,

causing a deadlock when spin_lock_irqsave() is called later in the same function.

Fix this by acquiring hsotg->lock before calling dwc2_gadget_exit_clock_gating() and releasing it afterwards, which satisfies the locking requirement of the call_gadget() macro.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy