<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Fri, 02 Oct 2026 16:13:29 +0000</lastBuildDate>
    <item>
      <title>CVE-2023-53580 — USB: Gadget: core: Help prevent panic during UVC unconfigure</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2023-53580</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;USB: Gadget: core: Help prevent panic during UVC unconfigure&lt;/p&gt;
&lt;p&gt;Avichal Rakesh reported a kernel panic that occurred when the UVC
gadget driver was removed from a gadget&amp;#39;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.&lt;/p&gt;
&lt;p&gt;Currently this doesn&amp;#39;t work.  gadget_unbind_driver() calls
driver-&amp;gt;unbind() while holding the udc-&amp;gt;connect_lock mutex, and
usb_gadget_deactivate() attempts to acquire that mutex, which will
result in a deadlock.&lt;/p&gt;
&lt;p&gt;The simple fix is for gadget_unbind_driver() to release the mutex when
invoking the -&amp;gt;unbind() callback.  There is no particular reason for
it to be holding the mutex at that time, and the mutex isn&amp;#39;t held
while the -&amp;gt;bind() callback is invoked.  So we&amp;#39;ll drop the mutex
before performing the unbind callback and reacquire it afterward.&lt;/p&gt;
&lt;p&gt;We&amp;#39;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&amp;#39;s -&amp;gt;disconnect() 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.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;USB: Gadget: core: Help prevent panic during UVC unconfigure&lt;/p&gt;
&lt;p&gt;Avichal Rakesh reported a kernel panic that occurred when the UVC
gadget driver was removed from a gadget&amp;#39;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.&lt;/p&gt;
&lt;p&gt;Currently this doesn&amp;#39;t work.  gadget_unbind_driver() calls
driver-&amp;gt;unbind() while holding the udc-&amp;gt;connect_lock mutex, and
usb_gadget_deactivate() attempts to acquire that mutex, which will
result in a deadlock.&lt;/p&gt;
&lt;p&gt;The simple fix is for gadget_unbind_driver() to release the mutex when
invoking the -&amp;gt;unbind() callback.  There is no particular reason for
it to be holding the mutex at that time, and the mutex isn&amp;#39;t held
while the -&amp;gt;bind() callback is invoked.  So we&amp;#39;ll drop the mutex
before performing the unbind callback and reacquire it afterward.&lt;/p&gt;
&lt;p&gt;We&amp;#39;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&amp;#39;s -&amp;gt;disconnect() 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.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2023-53580</guid>
    </item>
  </channel>
</rss>
