Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLocal access to dwc3 USB gadget device
-
ExploitTrigger controller suspend with sleepable disconnect callback
-
ImpactSleep-in-atomic context causes kernel hang/crash (DoS)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Proper locking
|
| Exploitation Conditions | Requires a system using the Synopsys dwc3 USB controller operating in gadget/device mode with a loaded gadget driver whose ->disconnect() callback can sleep, and a system suspend event that drives dwc3_gadget_suspend() -> dwc3_disconnect_gadget() with dwc->lock held and IRQs disabled. Exploitation is limited by: requiring local access and the PR:L privilege level to trigger the suspend/disconnect path, the presence of the specific dwc3 hardware, and a gadget driver that actually sleeps in its disconnect callback; the fault is most readily observed on kernels built with CONFIG_DEBUG_ATOMIC_SLEEP/Lockdep. There is no remote or network-reachable path and no confidentiality or integrity impact. |
| Impact | This is a low-urgency, low-real-risk issue despite a MEDIUM 5.5 CVSS. The CVSS vector (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) is availability-only: no confidentiality or integrity impact, and it requires local, authenticated access - there is no remote/network attack surface. EPSS is 0.21% (12th percentile), consistent with a hard-to-reach, hardware- and config-dependent locking bug rather than a mass-exploitation target. Status is 'no public exploit identified at time of analysis': not in CISA KEV and no confirmed public weaponized exploit, though the commit message itself describes a tool-produced Lockdep-triggering PoC (a debug assertion reproducer, not verified working exploit code). The vuln.today decision label is 'this_month', which aligns with a routine-patch posture rather than emergency. One signal conflict: the input Tags say 'Information Disclosure', but the CVSS vector is C:N/I:N/A:H (availability only, no disclosure) and the mechanism is a 'sleeping function called from invalid context' locking defect (CWE-667) that at worst crashes/hangs - the Information Disclosure tag is not supported by the vector or the description. Real-world priority is low: realistic impact is a local denial of service on systems using the dwc3 USB gadget controller with a sleepable ->disconnect() callback. |
| Exploit ScenarioDerived | On a device using the dwc3 USB gadget (device-mode) controller, a suspend event drives dwc3_gadget_suspend() -> dwc3_disconnect_gadget() with IRQs disabled, invoking a gadget driver's ->disconnect() callback that may sleep; calling a sleepable function from atomic context triggers scheduling-while-atomic (and a Lockdep splat on debug kernels), hanging or crashing the kernel. The commit describes a grounded PoC that reproduces the Lockdep 'sleeping function called from invalid context' report, but this is a static-analysis/debug reproducer, not verified public weaponized exploit code. Local access and the specific dwc3 hardware plus a sleepable gadget driver are required, limiting practical exploitation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
The Linux kernel's Synopsys dwc3 USB gadget driver invokes the gadget driver's ->disconnect() callback from dwc3_gadget_suspend() while dwc->lock is held with IRQs disabled, so any disconnect handler that sleeps trips Lockdep with a 'sleeping function called from invalid context' report. Systems are exposed only when they run a dwc3 controller in gadget/device mode with a gadget driver whose disconnect callback can block, and a suspend event drives the suspend/disconnect path; the assessed vector is local, authenticated (PR:L), high attack complexity, with availability as the only impacted property and no confidentiality or integrity effect. The bug was found by static analysis and confirmed with a reporter-supplied PoC that reproduces the splat; EPSS is low at 0.21% (12th percentile), there is no CISA KEV listing, and upstream fixes are already merged in the stable trees.
RemediationAI
Vendor-released patches are available: update to Linux 5.15.212, 6.1.178, 6.6.145, 6.12.96, 6.18.39, 7.1.4 or 7.2-rc3 (or the corresponding stable commit listed in the git.kernel.org references), or apply the distribution kernel update from Ubuntu advisory USN-8726-1 / USN-8727-1. As a compensating measure on systems that cannot be updated immediately, avoid entering system suspend while a dwc3 gadget driver whose ->disconnect() callback can sleep is bound (unbind the gadget driver or keep the device in host role before suspending), accepting that this removes gadget functionality across suspend and is only a way to dodge the reported path rather than a correctness fix; kernels built without CONFIG_DEBUG_ATOMIC_SLEEP/Lockdep still execute the sleep-in-atomic call, so disabling lock debugging suppresses the symptom without fixing the root cause. There is no remote or network-facing vector to block, so interface-level filtering is not a meaningful mitigation.
Affected VersionsENISA
Affected Packages
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 bug lives in drivers/usb/dwc3/gadget.c, CWE-667 (improper locking). dwc3_gadget_suspend() acquires dwc->lock with IRQs disabled (spin_lock_irqsave) and then calls dwc3_disconnect_gadget(), a helper shared with the normal event path so that disconnect-callback selection stays in one place. For asynchronous callbacks that helper only releases and re-acquires the lock with plain spin_unlock()/spin_lock(), which does not re-enable interrupts, so the selected ->disconnect() callback executes while IRQs remain disabled. Any gadget driver whose disconnect handler performs a sleepable operation therefore violates atomic context; the fault is surfaced by CONFIG_DEBUG_ATOMIC_SLEEP/Lockdep as 'BUG: sleeping function called from invalid context' in the call chain dwc3_gadget_suspend() -> dwc3_disconnect_gadget() -> gadget_driver->disconnect(). The upstream fix keeps the shared selection helper but adds a suspend-side wrapper that snapshots the callback under dwc->lock and invokes it after spin_unlock_irqrestore(), restoring sleepable context for the suspend path while the regular event path keeps the existing spin_unlock()/spin_lock() window. This is purely a locking/context correctness issue in a specific driver path, not a memory-safety or privilege-escalation flaw.
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
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Local-only trigger via suspend path (AV:L, PR:L); requires specific dwc3 hardware plus a sleepable gadget disconnect callback (AC:H); crash/hang only, so A:H with C:N/I:N.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
In the Linux kernel, the following vulnerability has been resolved:
usb: dwc3: run gadget disconnect from sleepable suspend context
dwc3_gadget_suspend() takes dwc->lock with IRQs disabled and then calls dwc3_disconnect_gadget(). For async callbacks that helper only uses plain spin_unlock()/spin_lock(), so the gadget ->disconnect() callback still runs with IRQs disabled and any sleepable callback trips Lockdep.
This issue was found by our static analysis tool and then manually reviewed against the current tree.
The grounded PoC kept the dwc3_gadget_suspend() -> dwc3_disconnect_gadget() -> gadget_driver->disconnect() chain, and Lockdep reported:
BUG: sleeping function called from invalid context gadget_disconnect+0x21/0x39 [vuln_msv] dwc3_gadget_suspend.constprop.0+0x2b/0x42 [vuln_msv]
Keep the disconnect callback selection in one common helper, but add a sleepable suspend-side wrapper which snapshots the callback under dwc->lock and then runs it after spin_unlock_irqrestore(). The regular event path still uses the existing spin_unlock()/spin_lock() window.
Threat Intelligence Overview
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.
EUVD-2026-48798
GHSA-c564-jfpf-wjrh
NVD
CVE.org
EPSS
VulDB
Exploit-DB