Skip to main content
VulnerabilityPublished

CVE-2026-138844: Linux kernel · usb: core: don't set drvdata to NULL in usb_unbind_interface()

Affects Linux kernelSource CVE Database V5

0
Compare

Not known to be exploited : upgrade to c460161d08103ee44c670e94da8c3c70ae82f4be or 8f0d16174102863936d583c90258ea02bf06205c when convenient.

Data as of 30 Nov 2026, 13:46 UTC

Severity
Unrated

Rated by Threat Radar · CVSS not yet scored by NVD

Thin evidence

One scorer or none
Patch
Available – fixed in c460161d08103ee44c670e94da8c3c70ae82f4be, 8f0d16174102863936d583c90258ea02bf06205c

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 30 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.

What to do

Upgrade Linux kernel to c460161d08103ee44c670e94da8c3c70ae82f4be or 8f0d16174102863936d583c90258ea02bf06205c.

Affected software

ProductAffectedFixed in
LinuxLinuxAffected
  • ≥ a995fe1a3aa78b7d06cc1cc7b6b8436c5e93b07f, < c460161d08103ee44c670e94da8c3c70ae82f4be
Fixed in
  • c460161d08103ee44c670e94da8c3c70ae82f4be
LinuxLinuxAffected
  • ≥ a995fe1a3aa78b7d06cc1cc7b6b8436c5e93b07f, < 8f0d16174102863936d583c90258ea02bf06205c
Fixed in
  • 8f0d16174102863936d583c90258ea02bf06205c
LinuxLinuxAffected
  • =6.19
Fixed in–

Description

In the Linux kernel, the following vulnerability has been resolved: usb: core: don't set drvdata to NULL in usb_unbind_interface() 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. 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. In addition, it can create unexpected NULL pointer dereference scenarios when drivers use managed APIs. int probe(struct usb_interface *intf, const struct usb_device_id *id) { struct data *data; int ret; data = devm_kzalloc(&intf->dev, sizeof(*data), GFP_KERNEL); if (!data) return -ENOMEM; ret = devm_device_add_group(&intf->dev, &foo_attr_group); if (ret) return ret; ... } 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); /* Potential NULL pointer dereference */ return sysfs_emit(buf, "%u\n", data->value); } Nothing prevents usb_unbind_interface() to race with foo_value_show() and set usb_set_intfdata(intf, NULL). The same applies to the unwind path of usb_probe_interface(), which also calls usb_set_intfdata(intf, NULL). Besides that, the Rust driver core code manages a driver's bus device private data and destroys it in device_unbind_cleanup(). If usb_unbind_interface() sets the pointer to NULL prematurely, the Rust driver core code sees NULL, and hence skips the destructor of the bus device private data, which leaks all its resources. Thus, drop usb_set_intfdata(intf, NULL) from usb_probe_interface() and usb_unbind_interface(), and move it to usb_driver_release_interface(), which manually calls the remove() callback of struct usb_driver and hence can't rely on the driver core.

References

Community reviews

Loading reviews…