Skip to main content

Linux kernel EUVDEUVD-2026-48798

| CVE-2026-64454 MEDIUM
Improper Locking (CWE-667)
2026-07-25 Linux GHSA-c564-jfpf-wjrh
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Local access to dwc3 USB gadget device
  2. Exploit
    Trigger controller suspend with sleepable disconnect callback
  3. Impact
    Sleep-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.

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

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

Alert me

AnalysisAIv1 – 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

Linux patch: 6.12.96
Linux patch: 6.18.39
Linux patch: 0
Linux 6.4
Linux 5.15.128 <5.15.212
Linux ad43004fd5326bec4466ecc8a07fe0e570b553ca <48958478cb8dbc429a5b19f36e866b63d6297d1d
Linux c8540870af4ce6ddeb27a7bb5498b75fb29b643c <010382937fb69892b3469ac4d30af072262f59e8
Linux c8540870af4ce6ddeb27a7bb5498b75fb29b643c <e0e4f15d4225fb7156cc0e3c21eb8953114f9b89
Linux patch: 7.2-rc3
Linux 06684c72b6b153dc434bb6ccebbb49f4cd812b5e
Linux c8540870af4ce6ddeb27a7bb5498b75fb29b643c <c4e232bd07fe2b69a6e5c380db41dd36b95e0524
Linux 20351ddb1f41cfb3ae20e105425ef43a28393d76 <b399be2958456efe1b64b19c55a54a24e9035769
Linux patch: 6.1.178
Linux c8540870af4ce6ddeb27a7bb5498b75fb29b643c <5e5798880eb1533a7de6fb68eb14b2d8202ebf76
Linux patch: 5.15.212
Linux 6.3.4 <6.4
Linux patch: 7.1.4
Linux c8540870af4ce6ddeb27a7bb5498b75fb29b643c <642e04f5c292d04070ae6e4374fbf14cc40a2465
Linux 6.1.30 <6.1.178
Linux patch: 6.6.145

Affected Packages

euvd linux fix: 5.15.212, 6.1.178, 6.4

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

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 4.7 MEDIUM

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.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
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

4
CVSS changed
Nov 12, 2026 - 17:52 NVD
5.5 (MEDIUM)
Patch available
Jul 25, 2026 - 11:18 EUVD
CVE Published
Jul 25, 2026 - 08:51 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 25, 2026 - 08:51 nvd
MEDIUM 5.5

DescriptionNVD

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

EPSS Score
0.2%
Top 88% exploitable
Prevalence
High
dwc3 USB controller is common in ARM SoCs, not all Linux systems
Data Quality
4 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.2%
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

Vendor StatusVendor

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