<?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>Tue, 06 Oct 2026 11:18:15 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-50220 — usbnet: Fix linkwatch use-after-free on disconnect</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2022-50220</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;usbnet: Fix linkwatch use-after-free on disconnect&lt;/p&gt;
&lt;p&gt;usbnet uses the work usbnet_deferred_kevent() to perform tasks which may
sleep.  On disconnect, completion of the work was originally awaited in
-&amp;gt;ndo_stop().  But in 2003, that was moved to -&amp;gt;disconnect() by historic
commit &amp;#34;[PATCH] USB: usbnet, prevent exotic rtnl deadlock&amp;#34;:&lt;/p&gt;
&lt;p&gt;https://git.kernel.org/tglx/history/c/0f138bbfd83c&lt;/p&gt;
&lt;p&gt;The change was made because back then, the kernel&amp;#39;s workqueue
implementation did not allow waiting for a single work.  One had to wait
for completion of *all* work by calling flush_scheduled_work(), and that
could deadlock when waiting for usbnet_deferred_kevent() with rtnl_mutex
held in -&amp;gt;ndo_stop().&lt;/p&gt;
&lt;p&gt;The commit solved one problem but created another:  It causes a
use-after-free in USB Ethernet drivers aqc111.c, asix_devices.c,
ax88179_178a.c, ch9200.c and smsc75xx.c:&lt;/p&gt;
&lt;p&gt;* If the drivers receive a link change interrupt immediately before
  disconnect, they raise EVENT_LINK_RESET in their (non-sleepable)
  -&amp;gt;status() callback and schedule usbnet_deferred_kevent().
* usbnet_deferred_kevent() invokes the driver&amp;#39;s -&amp;gt;link_reset() callback,
  which calls netif_carrier_{on,off}().
* That in turn schedules the work linkwatch_event().&lt;/p&gt;
&lt;p&gt;Because usbnet_deferred_kevent() is awaited after unregister_netdev(),
netif_carrier_{on,off}() may operate on an unregistered netdev and
linkwatch_event() may run after free_netdev(), causing a use-after-fr…&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;usbnet: Fix linkwatch use-after-free on disconnect&lt;/p&gt;
&lt;p&gt;usbnet uses the work usbnet_deferred_kevent() to perform tasks which may
sleep.  On disconnect, completion of the work was originally awaited in
-&amp;gt;ndo_stop().  But in 2003, that was moved to -&amp;gt;disconnect() by historic
commit &amp;#34;[PATCH] USB: usbnet, prevent exotic rtnl deadlock&amp;#34;:&lt;/p&gt;
&lt;p&gt;https://git.kernel.org/tglx/history/c/0f138bbfd83c&lt;/p&gt;
&lt;p&gt;The change was made because back then, the kernel&amp;#39;s workqueue
implementation did not allow waiting for a single work.  One had to wait
for completion of *all* work by calling flush_scheduled_work(), and that
could deadlock when waiting for usbnet_deferred_kevent() with rtnl_mutex
held in -&amp;gt;ndo_stop().&lt;/p&gt;
&lt;p&gt;The commit solved one problem but created another:  It causes a
use-after-free in USB Ethernet drivers aqc111.c, asix_devices.c,
ax88179_178a.c, ch9200.c and smsc75xx.c:&lt;/p&gt;
&lt;p&gt;* If the drivers receive a link change interrupt immediately before
  disconnect, they raise EVENT_LINK_RESET in their (non-sleepable)
  -&amp;gt;status() callback and schedule usbnet_deferred_kevent().
* usbnet_deferred_kevent() invokes the driver&amp;#39;s -&amp;gt;link_reset() callback,
  which calls netif_carrier_{on,off}().
* That in turn schedules the work linkwatch_event().&lt;/p&gt;
&lt;p&gt;Because usbnet_deferred_kevent() is awaited after unregister_netdev(),
netif_carrier_{on,off}() may operate on an unregistered netdev and
linkwatch_event() may run after free_netdev(), causing a use-after-fr…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2022-50220</guid>
    </item>
  </channel>
</rss>
