CVE-2026-142929
not scored yetUSB: usbmon: fix null-ptr-deref in mon_bus_remove() when mon_bus_init() fails
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.
- Published
- 3 Dec 2026
- Last modified
- 3 Dec 2026
- Assigned by
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- NVD status
- Received
- Sources
- NVDJSONCVE ListJSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | Linux | Linux | >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 4287c687efc94b6165a651cac023e828474fba38; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 998e1cf4d0f0dff6a9732d622c9b4f75ba155e6f; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5bd2b60e279c3d0652da836f62a68218a58478db; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 29e530803b34759a97d86d1be5243abdfdde3c1c; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 6d6c598a50f120833311e9af177c40ea2991d1c1; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 389b1a6cfe558fe8d6fd1a7821121cca1457b101; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 8286e4bb78bf302ba741c2a7ae95b4c1d6fb8a2f; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 0c6cae0f56239e3274b30dbe5b362cd297ccacc7 | 4287c687efc94b6165a651cac023e828474fba38, 998e1cf4d0f0dff6a9732d622c9b4f75ba155e6f, 5bd2b60e279c3d0652da836f62a68218a58478db, 29e530803b34759a97d86d1be5243abdfdde3c1c, 6d6c598a50f120833311e9af177c40ea2991d1c1, 389b1a6cfe558fe8d6fd1a7821121cca1457b101, 8286e4bb78bf302ba741c2a7ae95b4c1d6fb8a2f, 0c6cae0f56239e3274b30dbe5b362cd297ccacc7 |
| CVE List | Linux | Linux | = 2.6.12 |
References
- https://git.kernel.org/stable/c/0c6cae0f56239e3274b30dbe5b362cd297ccacc7
- https://git.kernel.org/stable/c/29e530803b34759a97d86d1be5243abdfdde3c1c
- https://git.kernel.org/stable/c/389b1a6cfe558fe8d6fd1a7821121cca1457b101
- https://git.kernel.org/stable/c/4287c687efc94b6165a651cac023e828474fba38
- https://git.kernel.org/stable/c/5bd2b60e279c3d0652da836f62a68218a58478db
- https://git.kernel.org/stable/c/6d6c598a50f120833311e9af177c40ea2991d1c1
- https://git.kernel.org/stable/c/8286e4bb78bf302ba741c2a7ae95b4c1d6fb8a2f
- https://git.kernel.org/stable/c/998e1cf4d0f0dff6a9732d622c9b4f75ba155e6f
History
- 3 Dec 2026 05:06 UTC · NVD: first stored (published 3 Dec 2026)
- 3 Dec 2026 04:06 UTC · CVE List: first stored (published 3 Dec 2026)