<?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 13:18:07 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-50568 — usb: gadget: f_hid: fix f_hidg lifetime vs cdev</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2022-50568</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_hid: fix f_hidg lifetime vs cdev&lt;/p&gt;
&lt;p&gt;The embedded struct cdev does not have its lifetime correctly tied to
the enclosing struct f_hidg, so there is a use-after-free if /dev/hidgN
is held open while the gadget is deleted.&lt;/p&gt;
&lt;p&gt;This can readily be replicated with libusbgx&amp;#39;s example programs (for
conciseness - operating directly via configfs is equivalent):&lt;/p&gt;
&lt;p&gt;gadget-hid
	exec 3&amp;lt;&amp;gt; /dev/hidg0
	gadget-vid-pid-remove
	exec 3&amp;lt;&amp;amp;-&lt;/p&gt;
&lt;p&gt;Pull the existing device up in to struct f_hidg and make use of the
cdev_device_{add,del}() helpers.  This changes the lifetime of the
device object to match struct f_hidg, but note that it is still added
and deleted at the same time.&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_hid: fix f_hidg lifetime vs cdev&lt;/p&gt;
&lt;p&gt;The embedded struct cdev does not have its lifetime correctly tied to
the enclosing struct f_hidg, so there is a use-after-free if /dev/hidgN
is held open while the gadget is deleted.&lt;/p&gt;
&lt;p&gt;This can readily be replicated with libusbgx&amp;#39;s example programs (for
conciseness - operating directly via configfs is equivalent):&lt;/p&gt;
&lt;p&gt;gadget-hid
	exec 3&amp;lt;&amp;gt; /dev/hidg0
	gadget-vid-pid-remove
	exec 3&amp;lt;&amp;amp;-&lt;/p&gt;
&lt;p&gt;Pull the existing device up in to struct f_hidg and make use of the
cdev_device_{add,del}() helpers.  This changes the lifetime of the
device object to match struct f_hidg, but note that it is still added
and deleted at the same time.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2022-50568</guid>
    </item>
  </channel>
</rss>
