<?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://db.gcve.eu</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>Fri, 04 Dec 2026 18:58:00 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-138844 — usb: core: don't set drvdata to NULL in usb_unbind_interface()</title>
      <link>https://db.gcve.eu/vuln/cve-2026-138844</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: core: don&amp;#39;t set drvdata to NULL in usb_unbind_interface()&lt;/p&gt;
&lt;p&gt;usb_unbind_interface() serves as the remove() callback of struct
usb_driver and calls usb_set_intfdata(intf, NULL) to clear the bus
device private data pointer.&lt;/p&gt;
&lt;p&gt;However, the driver core code already sets the bus device private data
pointer to NULL in device_unbind_cleanup() *after* devres_release_all(),
which makes the call redundant.&lt;/p&gt;
&lt;p&gt;In addition, it can create unexpected NULL pointer dereference scenarios
when drivers use managed APIs.&lt;/p&gt;
&lt;p&gt;int probe(struct usb_interface *intf,
		  const struct usb_device_id *id)
	{
		struct data *data;
		int ret;&lt;/p&gt;
&lt;p&gt;data = devm_kzalloc(&amp;amp;intf-&amp;gt;dev, sizeof(*data), GFP_KERNEL);
		if (!data)
			return -ENOMEM;&lt;/p&gt;
&lt;p&gt;ret = devm_device_add_group(&amp;amp;intf-&amp;gt;dev, &amp;amp;foo_attr_group);
		if (ret)
			return ret;&lt;/p&gt;
&lt;p&gt;...
	}&lt;/p&gt;
&lt;p&gt;ssize_t foo_value_show(struct device *dev, struct device_attribute *attr,
			       char *buf)
	{
		struct usb_interface *intf = to_usb_interface(dev);
		struct data *data = usb_get_intfdata(intf);&lt;/p&gt;
&lt;p&gt;/* Potential NULL pointer dereference */
		return sysfs_emit(buf, &amp;#34;%u\n&amp;#34;, data-&amp;gt;value);
	}&lt;/p&gt;
&lt;p&gt;Nothing prevents usb_unbind_interface() to race with foo_value_show()
and set usb_set_intfdata(intf, NULL).&lt;/p&gt;
&lt;p&gt;The same applies to the unwind path of usb_probe_interface(), which also
calls usb_set_intfdata(intf, NULL).&lt;/p&gt;
&lt;p&gt;Besides that, the Rust driver core code manages a driver&amp;#39;s bus device
private data and destroys it in devi…&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: core: don&amp;#39;t set drvdata to NULL in usb_unbind_interface()&lt;/p&gt;
&lt;p&gt;usb_unbind_interface() serves as the remove() callback of struct
usb_driver and calls usb_set_intfdata(intf, NULL) to clear the bus
device private data pointer.&lt;/p&gt;
&lt;p&gt;However, the driver core code already sets the bus device private data
pointer to NULL in device_unbind_cleanup() *after* devres_release_all(),
which makes the call redundant.&lt;/p&gt;
&lt;p&gt;In addition, it can create unexpected NULL pointer dereference scenarios
when drivers use managed APIs.&lt;/p&gt;
&lt;p&gt;int probe(struct usb_interface *intf,
		  const struct usb_device_id *id)
	{
		struct data *data;
		int ret;&lt;/p&gt;
&lt;p&gt;data = devm_kzalloc(&amp;amp;intf-&amp;gt;dev, sizeof(*data), GFP_KERNEL);
		if (!data)
			return -ENOMEM;&lt;/p&gt;
&lt;p&gt;ret = devm_device_add_group(&amp;amp;intf-&amp;gt;dev, &amp;amp;foo_attr_group);
		if (ret)
			return ret;&lt;/p&gt;
&lt;p&gt;...
	}&lt;/p&gt;
&lt;p&gt;ssize_t foo_value_show(struct device *dev, struct device_attribute *attr,
			       char *buf)
	{
		struct usb_interface *intf = to_usb_interface(dev);
		struct data *data = usb_get_intfdata(intf);&lt;/p&gt;
&lt;p&gt;/* Potential NULL pointer dereference */
		return sysfs_emit(buf, &amp;#34;%u\n&amp;#34;, data-&amp;gt;value);
	}&lt;/p&gt;
&lt;p&gt;Nothing prevents usb_unbind_interface() to race with foo_value_show()
and set usb_set_intfdata(intf, NULL).&lt;/p&gt;
&lt;p&gt;The same applies to the unwind path of usb_probe_interface(), which also
calls usb_set_intfdata(intf, NULL).&lt;/p&gt;
&lt;p&gt;Besides that, the Rust driver core code manages a driver&amp;#39;s bus device
private data and destroys it in devi…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-138844</guid>
    </item>
  </channel>
</rss>
