{"id":"DEBIAN-CVE-2023-53580","details":"In the Linux kernel, the following vulnerability has been resolved:  USB: Gadget: core: Help prevent panic during UVC unconfigure  Avichal Rakesh reported a kernel panic that occurred when the UVC gadget driver was removed from a gadget's configuration.  The panic involves a somewhat complicated interaction between the kernel driver and a userspace component (as described in the Link tag below), but the analysis did make one thing clear: The Gadget core should accomodate gadget drivers calling usb_gadget_deactivate() as part of their unbind procedure.  Currently this doesn't work.  gadget_unbind_driver() calls driver-\u003eunbind() while holding the udc-\u003econnect_lock mutex, and usb_gadget_deactivate() attempts to acquire that mutex, which will result in a deadlock.  The simple fix is for gadget_unbind_driver() to release the mutex when invoking the -\u003eunbind() callback.  There is no particular reason for it to be holding the mutex at that time, and the mutex isn't held while the -\u003ebind() callback is invoked.  So we'll drop the mutex before performing the unbind callback and reacquire it afterward.  We'll also add a couple of comments to usb_gadget_activate() and usb_gadget_deactivate().  Because they run in process context they must not be called from a gadget driver's -\u003edisconnect() callback, which (according to the kerneldoc for struct usb_gadget_driver in include/linux/usb/gadget.h) may run in interrupt context.  This may help prevent similar bugs from arising in the future.","modified":"2026-09-15T09:03:01.732749302Z","published":"2025-10-04T16:15:53.713Z","upstream":["CVE-2023-53580"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2023-53580"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.52-1"}]}],"versions":["6.1.27-1","6.1.37-1","6.1.38-1","6.1.38-2","6.1.38-2~bpo11+1","6.1.38-3","6.1.38-4","6.1.38-4~bpo11+1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2023-53580.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.4.11-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2023-53580.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.4.11-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2023-53580.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}