<?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://cve.radiocsirt.org</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>Wed, 07 Oct 2026 19:20:25 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-26996 — usb: gadget: f_ncm: Fix UAF ncm object at re-bind after usb ep transport error</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2024-26996</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: f_ncm: Fix UAF ncm object at re-bind after usb ep transport error&lt;/p&gt;
&lt;p&gt;When ncm function is working and then stop usb0 interface for link down,
eth_stop() is called. At this piont, accidentally if usb transport error
should happen in usb_ep_enable(), &amp;#39;in_ep&amp;#39; and/or &amp;#39;out_ep&amp;#39; may not be enabled.&lt;/p&gt;
&lt;p&gt;After that, ncm_disable() is called to disable for ncm unbind
but gether_disconnect() is never called since &amp;#39;in_ep&amp;#39; is not enabled.&lt;/p&gt;
&lt;p&gt;As the result, ncm object is released in ncm unbind
but &amp;#39;dev-&amp;gt;port_usb&amp;#39; associated to &amp;#39;ncm-&amp;gt;port&amp;#39; is not NULL.&lt;/p&gt;
&lt;p&gt;And when ncm bind again to recover netdev, ncm object is reallocated
but usb0 interface is already associated to previous released ncm object.&lt;/p&gt;
&lt;p&gt;Therefore, once usb0 interface is up and eth_start_xmit() is called,
released ncm object is dereferrenced and it might cause use-after-free memory.&lt;/p&gt;
&lt;p&gt;[function unlink via configfs]
  usb0: eth_stop dev-&amp;gt;port_usb=ffffff9b179c3200
  --&amp;gt; error happens in usb_ep_enable().
  NCM: ncm_disable: ncm=ffffff9b179c3200
  --&amp;gt; no gether_disconnect() since ncm-&amp;gt;port.in_ep-&amp;gt;enabled is false.
  NCM: ncm_unbind: ncm unbind ncm=ffffff9b179c3200
  NCM: ncm_free: ncm free ncm=ffffff9b179c3200   &amp;lt;-- released ncm&lt;/p&gt;
&lt;p&gt;[function link via configfs]
  NCM: ncm_alloc: ncm alloc ncm=ffffff9ac4f8a000
  NCM: ncm_bind: ncm bind ncm=ffffff9ac4f8a000
  NCM: ncm_set_alt: ncm=ffffff9ac4f8a000 alt=0
  usb0: eth_open dev-&amp;gt;port_usb=ffffff9b179c3200  &amp;lt;-- previous relea…&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: f_ncm: Fix UAF ncm object at re-bind after usb ep transport error&lt;/p&gt;
&lt;p&gt;When ncm function is working and then stop usb0 interface for link down,
eth_stop() is called. At this piont, accidentally if usb transport error
should happen in usb_ep_enable(), &amp;#39;in_ep&amp;#39; and/or &amp;#39;out_ep&amp;#39; may not be enabled.&lt;/p&gt;
&lt;p&gt;After that, ncm_disable() is called to disable for ncm unbind
but gether_disconnect() is never called since &amp;#39;in_ep&amp;#39; is not enabled.&lt;/p&gt;
&lt;p&gt;As the result, ncm object is released in ncm unbind
but &amp;#39;dev-&amp;gt;port_usb&amp;#39; associated to &amp;#39;ncm-&amp;gt;port&amp;#39; is not NULL.&lt;/p&gt;
&lt;p&gt;And when ncm bind again to recover netdev, ncm object is reallocated
but usb0 interface is already associated to previous released ncm object.&lt;/p&gt;
&lt;p&gt;Therefore, once usb0 interface is up and eth_start_xmit() is called,
released ncm object is dereferrenced and it might cause use-after-free memory.&lt;/p&gt;
&lt;p&gt;[function unlink via configfs]
  usb0: eth_stop dev-&amp;gt;port_usb=ffffff9b179c3200
  --&amp;gt; error happens in usb_ep_enable().
  NCM: ncm_disable: ncm=ffffff9b179c3200
  --&amp;gt; no gether_disconnect() since ncm-&amp;gt;port.in_ep-&amp;gt;enabled is false.
  NCM: ncm_unbind: ncm unbind ncm=ffffff9b179c3200
  NCM: ncm_free: ncm free ncm=ffffff9b179c3200   &amp;lt;-- released ncm&lt;/p&gt;
&lt;p&gt;[function link via configfs]
  NCM: ncm_alloc: ncm alloc ncm=ffffff9ac4f8a000
  NCM: ncm_bind: ncm bind ncm=ffffff9ac4f8a000
  NCM: ncm_set_alt: ncm=ffffff9ac4f8a000 alt=0
  usb0: eth_open dev-&amp;gt;port_usb=ffffff9b179c3200  &amp;lt;-- previous relea…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2024-26996</guid>
    </item>
  </channel>
</rss>
