CVE-2026-64454 PUBLISHED

usb: dwc3: run gadget disconnect from sleepable suspend context

Assigner: Linux
Reserved: 19.07.2026 Published: 25.07.2026 Updated: 25.07.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 20351ddb1f41cfb3ae20e105425ef43a28393d76 to b399be2958456efe1b64b19c55a54a24e9035769 (excl.)
  • affected from ad43004fd5326bec4466ecc8a07fe0e570b553ca to 48958478cb8dbc429a5b19f36e866b63d6297d1d (excl.)
  • affected from c8540870af4ce6ddeb27a7bb5498b75fb29b643c to 5e5798880eb1533a7de6fb68eb14b2d8202ebf76 (excl.)
  • affected from c8540870af4ce6ddeb27a7bb5498b75fb29b643c to e0e4f15d4225fb7156cc0e3c21eb8953114f9b89 (excl.)
  • affected from c8540870af4ce6ddeb27a7bb5498b75fb29b643c to c4e232bd07fe2b69a6e5c380db41dd36b95e0524 (excl.)
  • affected from c8540870af4ce6ddeb27a7bb5498b75fb29b643c to 642e04f5c292d04070ae6e4374fbf14cc40a2465 (excl.)
  • affected from c8540870af4ce6ddeb27a7bb5498b75fb29b643c to 010382937fb69892b3469ac4d30af072262f59e8 (excl.)
  • Version 06684c72b6b153dc434bb6ccebbb49f4cd812b5e is affected
  • affected from 5.15.128 to 5.15.212 (excl.)
  • affected from 6.1.30 to 6.1.178 (excl.)
  • affected from 6.3.4 to 6.4 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.4 is affected
  • unaffected from 0 to 6.4 (excl.)
  • unaffected from 5.15.212 to 5.15.* (incl.)
  • unaffected from 6.1.178 to 6.1.* (incl.)
  • unaffected from 6.6.145 to 6.6.* (incl.)
  • unaffected from 6.12.96 to 6.12.* (incl.)
  • unaffected from 6.18.39 to 6.18.* (incl.)
  • unaffected from 7.1.4 to 7.1.* (incl.)
  • unaffected from 7.2-rc3 to * (incl.)

References