<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-12-04T19:17:54.143736+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/cve-2026-138844</id>
    <title>CVE-2026-138844 — usb: core: don't set drvdata to NULL in usb_unbind_interface()</title>
    <updated>2026-12-04T19:17:54.144764+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>usb: core: don't set drvdata to NULL in usb_unbind_interface()</p>
<p>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.</p>
<p>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.</p>
<p>In addition, it can create unexpected NULL pointer dereference scenarios
when drivers use managed APIs.</p>
<p>int probe(struct usb_interface *intf,
		  const struct usb_device_id *id)
	{
		struct data *data;
		int ret;</p>
<p>data = devm_kzalloc(&amp;intf-&gt;dev, sizeof(*data), GFP_KERNEL);
		if (!data)
			return -ENOMEM;</p>
<p>ret = devm_device_add_group(&amp;intf-&gt;dev, &amp;foo_attr_group);
		if (ret)
			return ret;</p>
<p>...
	}</p>
<p>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);</p>
<p>/* Potential NULL pointer dereference */
		return sysfs_emit(buf, "%u\n", data-&gt;value);
	}</p>
<p>Nothing prevents usb_unbind_interface() to race with foo_value_show()
and set usb_set_intfdata(intf, NULL).</p>
<p>The same applies to the unwind path of usb_probe_interface(), which also
calls usb_set_intfdata(intf, NULL).</p>
<p>Besides that, the Rust driver core code manages a driver's bus device
private data and destroys it in devi…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-138844"/>
  </entry>
</feed>
