CVE-2026-142929
Description
In the Linux kernel, the following vulnerability has been resolved:
USB: usbmon: fix null-ptr-deref in mon_bus_remove() when mon_bus_init() fails
When mon_bus_init() fails to allocate the mon_bus struct, it returns without setting ubus->mon_bus, so mbus->mon_bus remains NULL. mon_bus_add() intentionally ignores this failure because the USB core does not require monitoring to be established for normal operation. However, when the HCD is later removed, usb_remove_hcd() fires the USB_BUS_REMOVE notifier which calls mon_bus_remove(), it dereferences ubus->mon_bus without checking for NULL, causing a null-ptr deference.
Fix this by adding a NULL check for mbus at the top of mon_bus_remove(). If mon_bus_init() failed, ubus->mon_bus is NULL, meaning the bus was never tracked by the monitor, so there is nothing to clean up and returning early is correct.
Affected products
1Patches
Vulnerability mechanics
References
8- git.kernel.org/stable/c/0c6cae0f56239e3274b30dbe5b362cd297ccacc7nvd
- git.kernel.org/stable/c/29e530803b34759a97d86d1be5243abdfdde3c1cnvd
- git.kernel.org/stable/c/389b1a6cfe558fe8d6fd1a7821121cca1457b101nvd
- git.kernel.org/stable/c/4287c687efc94b6165a651cac023e828474fba38nvd
- git.kernel.org/stable/c/5bd2b60e279c3d0652da836f62a68218a58478dbnvd
- git.kernel.org/stable/c/6d6c598a50f120833311e9af177c40ea2991d1c1nvd
- git.kernel.org/stable/c/8286e4bb78bf302ba741c2a7ae95b4c1d6fb8a2fnvd
- git.kernel.org/stable/c/998e1cf4d0f0dff6a9732d622c9b4f75ba155e6fnvd
News mentions
0No linked articles in our index yet.