usb: dwc3: run gadget disconnect from sleepable suspend context
Summary
| CVE | CVE-2026-64454 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-07-25 10:17:30 UTC |
| Updated | 2026-07-25 10:17:30 UTC |
| Description | 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. |
Risk And Classification
EPSS: 0.001800000 probability, percentile 0.079200000 (date 2026-07-28)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 20351ddb1f41cfb3ae20e105425ef43a28393d76 b399be2958456efe1b64b19c55a54a24e9035769 git | Not specified |
| CNA | Linux | Linux | affected ad43004fd5326bec4466ecc8a07fe0e570b553ca 48958478cb8dbc429a5b19f36e866b63d6297d1d git | Not specified |
| CNA | Linux | Linux | affected c8540870af4ce6ddeb27a7bb5498b75fb29b643c 5e5798880eb1533a7de6fb68eb14b2d8202ebf76 git | Not specified |
| CNA | Linux | Linux | affected c8540870af4ce6ddeb27a7bb5498b75fb29b643c e0e4f15d4225fb7156cc0e3c21eb8953114f9b89 git | Not specified |
| CNA | Linux | Linux | affected c8540870af4ce6ddeb27a7bb5498b75fb29b643c c4e232bd07fe2b69a6e5c380db41dd36b95e0524 git | Not specified |
| CNA | Linux | Linux | affected c8540870af4ce6ddeb27a7bb5498b75fb29b643c 642e04f5c292d04070ae6e4374fbf14cc40a2465 git | Not specified |
| CNA | Linux | Linux | affected c8540870af4ce6ddeb27a7bb5498b75fb29b643c 010382937fb69892b3469ac4d30af072262f59e8 git | Not specified |
| CNA | Linux | Linux | affected 06684c72b6b153dc434bb6ccebbb49f4cd812b5e git | Not specified |
| CNA | Linux | Linux | affected 5.15.128 5.15.212 semver | Not specified |
| CNA | Linux | Linux | affected 6.1.30 6.1.178 semver | Not specified |
| CNA | Linux | Linux | affected 6.3.4 6.4 semver | Not specified |
| CNA | Linux | Linux | affected 6.4 | Not specified |
| CNA | Linux | Linux | unaffected 6.4 semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15.212 5.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.1.178 6.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.145 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.96 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.39 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.1.4 7.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.2-rc3 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/642e04f5c292d04070ae6e4374fbf14cc40a2465 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/e0e4f15d4225fb7156cc0e3c21eb8953114f9b89 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/48958478cb8dbc429a5b19f36e866b63d6297d1d | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/b399be2958456efe1b64b19c55a54a24e9035769 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/010382937fb69892b3469ac4d30af072262f59e8 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/c4e232bd07fe2b69a6e5c380db41dd36b95e0524 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/5e5798880eb1533a7de6fb68eb14b2d8202ebf76 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.