<?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>Mon, 28 Sep 2026 18:32:07 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-40314 — usb: cdns3: gadget: Use-after-free during failed initialization and exit of cdnsp gadget</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-40314</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: cdns3: gadget: Use-after-free during failed initialization and exit of cdnsp gadget&lt;/p&gt;
&lt;p&gt;In the __cdnsp_gadget_init() and cdnsp_gadget_exit() functions, the gadget
structure (pdev-&amp;gt;gadget) was freed before its endpoints.
The endpoints are linked via the ep_list in the gadget structure.
Freeing the gadget first leaves dangling pointers in the endpoint list.
When the endpoints are subsequently freed, this results in a use-after-free.&lt;/p&gt;
&lt;p&gt;Fix:
By separating the usb_del_gadget_udc() operation into distinct &amp;#34;del&amp;#34; and
&amp;#34;put&amp;#34; steps, cdnsp_gadget_free_endpoints() can be executed prior to the
final release of the gadget structure with usb_put_gadget().&lt;/p&gt;
&lt;p&gt;A patch similar to bb9c74a5bd14(&amp;#34;usb: dwc3: gadget: Free gadget structure
 only after freeing endpoints&amp;#34;).&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: cdns3: gadget: Use-after-free during failed initialization and exit of cdnsp gadget&lt;/p&gt;
&lt;p&gt;In the __cdnsp_gadget_init() and cdnsp_gadget_exit() functions, the gadget
structure (pdev-&amp;gt;gadget) was freed before its endpoints.
The endpoints are linked via the ep_list in the gadget structure.
Freeing the gadget first leaves dangling pointers in the endpoint list.
When the endpoints are subsequently freed, this results in a use-after-free.&lt;/p&gt;
&lt;p&gt;Fix:
By separating the usb_del_gadget_udc() operation into distinct &amp;#34;del&amp;#34; and
&amp;#34;put&amp;#34; steps, cdnsp_gadget_free_endpoints() can be executed prior to the
final release of the gadget structure with usb_put_gadget().&lt;/p&gt;
&lt;p&gt;A patch similar to bb9c74a5bd14(&amp;#34;usb: dwc3: gadget: Free gadget structure
 only after freeing endpoints&amp;#34;).&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-40314</guid>
    </item>
  </channel>
</rss>
