<?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 06:43:39 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-48838 — usb: gadget: Fix use-after-free bug by not setting udc-&gt;dev.driver</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2022-48838</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: Fix use-after-free bug by not setting udc-&amp;gt;dev.driver&lt;/p&gt;
&lt;p&gt;The syzbot fuzzer found a use-after-free bug:&lt;/p&gt;
&lt;p&gt;BUG: KASAN: use-after-free in dev_uevent+0x712/0x780 drivers/base/core.c:2320
Read of size 8 at addr ffff88802b934098 by task udevd/3689&lt;/p&gt;
&lt;p&gt;CPU: 2 PID: 3689 Comm: udevd Not tainted 5.17.0-rc4-syzkaller-00229-g4f12b742eb2b #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
Call Trace:
 &amp;lt;TASK&amp;gt;
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 print_address_description.constprop.0.cold+0x8d/0x303 mm/kasan/report.c:255
 __kasan_report mm/kasan/report.c:442 [inline]
 kasan_report.cold+0x83/0xdf mm/kasan/report.c:459
 dev_uevent+0x712/0x780 drivers/base/core.c:2320
 uevent_show+0x1b8/0x380 drivers/base/core.c:2391
 dev_attr_show+0x4b/0x90 drivers/base/core.c:2094&lt;/p&gt;
&lt;p&gt;Although the bug manifested in the driver core, the real cause was a
race with the gadget core.  dev_uevent() does:&lt;/p&gt;
&lt;p&gt;if (dev-&amp;gt;driver)
		add_uevent_var(env, &amp;#34;DRIVER=%s&amp;#34;, dev-&amp;gt;driver-&amp;gt;name);&lt;/p&gt;
&lt;p&gt;and between the test and the dereference of dev-&amp;gt;driver, the gadget
core sets dev-&amp;gt;driver to NULL.&lt;/p&gt;
&lt;p&gt;The race wouldn&amp;#39;t occur if the gadget core registered its devices on
a real bus, using the standard synchronization techniques of the
driver core.  However, it&amp;#39;s not necessary to make such a large change
in order to fix this bug; all we need to do is make sure that
udc-&amp;gt;dev.driver is alw…&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: Fix use-after-free bug by not setting udc-&amp;gt;dev.driver&lt;/p&gt;
&lt;p&gt;The syzbot fuzzer found a use-after-free bug:&lt;/p&gt;
&lt;p&gt;BUG: KASAN: use-after-free in dev_uevent+0x712/0x780 drivers/base/core.c:2320
Read of size 8 at addr ffff88802b934098 by task udevd/3689&lt;/p&gt;
&lt;p&gt;CPU: 2 PID: 3689 Comm: udevd Not tainted 5.17.0-rc4-syzkaller-00229-g4f12b742eb2b #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
Call Trace:
 &amp;lt;TASK&amp;gt;
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 print_address_description.constprop.0.cold+0x8d/0x303 mm/kasan/report.c:255
 __kasan_report mm/kasan/report.c:442 [inline]
 kasan_report.cold+0x83/0xdf mm/kasan/report.c:459
 dev_uevent+0x712/0x780 drivers/base/core.c:2320
 uevent_show+0x1b8/0x380 drivers/base/core.c:2391
 dev_attr_show+0x4b/0x90 drivers/base/core.c:2094&lt;/p&gt;
&lt;p&gt;Although the bug manifested in the driver core, the real cause was a
race with the gadget core.  dev_uevent() does:&lt;/p&gt;
&lt;p&gt;if (dev-&amp;gt;driver)
		add_uevent_var(env, &amp;#34;DRIVER=%s&amp;#34;, dev-&amp;gt;driver-&amp;gt;name);&lt;/p&gt;
&lt;p&gt;and between the test and the dereference of dev-&amp;gt;driver, the gadget
core sets dev-&amp;gt;driver to NULL.&lt;/p&gt;
&lt;p&gt;The race wouldn&amp;#39;t occur if the gadget core registered its devices on
a real bus, using the standard synchronization techniques of the
driver core.  However, it&amp;#39;s not necessary to make such a large change
in order to fix this bug; all we need to do is make sure that
udc-&amp;gt;dev.driver is alw…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2022-48838</guid>
    </item>
  </channel>
</rss>
