CVE-2026-138844

Not scored yetLast modified Nov 30, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-138845In the Linux kernel, the following vulnerability has been resolved: cxl/port: Clear cached dport pointers when a dport is removed Switch dCVE-2026-138846In the Linux kernel, the following vulnerability has been resolved: vfio/mlx5: Fix boundary check in set_report_output() Use > instead of CVE-2026-138847In the Linux kernel, the following vulnerability has been resolved: xen-blkfront: Fix IO race during unplug During unplug, blkfront stops CVE-2026-138848In the Linux kernel, the following vulnerability has been resolved: slimbus: messaging: fix leaked PM vote on tid allocation failure In slCVE-2026-1388497.8In the Linux kernel, the following vulnerability has been resolved: misc: fastrpc: Allocate entire reserved memory for Audio PD in probe ACVE-2026-138858.8Use after free in Skia in Google Chrome on Android prior to 150.0.7871.47 allowed a remote attacker to execute arbitrary code inside a sandbCVE-2026-1388507.8In the Linux kernel, the following vulnerability has been resolved: misc: fastrpc: fix double-free in fastrpc_map_attach() error path map-CVE-2026-138851In the Linux kernel, the following vulnerability has been resolved: USB: cdc-acm: fix urb leak on disconnect Make sure to drop the referenCVE-2026-1388528.4In the Linux kernel, the following vulnerability has been resolved: wifi: ath12k: validate MAC/PHY capability count before saving FirmwareCVE-2026-1388537.0In the Linux kernel, the following vulnerability has been resolved: drm/ttm: return an error when kmapping a BO without pages ttm_tt objecCVE-2026-1388547.8In the Linux kernel, the following vulnerability has been resolved: iommu/dma: Catch scatterlist length overflows It is possible, when a vCVE-2026-138855In the Linux kernel, the following vulnerability has been resolved: xen/pcifront: check that an AER callback exists before calling it pcif
CVE-2026-138844: Unscored | Vulnix