CVE-2026-143177
not scored yetmemstick: core: don't clear dev->driver in memstick_device_remove()
In the Linux kernel, the following vulnerability has been resolved:
memstick: core: don't clear dev->driver in memstick_device_remove()
memstick_device_remove() sets card->dev.driver to NULL after calling the
driver's remove() callback. Since commit a995fe1a3aa7 ("rust: driver:
drop device private data post unbind"), device_unbind_cleanup()
dereferences dev->driver after the bus remove() callback has returned,
so this should result in a NULL pointer dereference whenever a
MemoryStick card is removed or its driver is unbound.
The driver core clears dev->driver itself in device_unbind_cleanup(), so
there is no need for the bus code to do it. Remove the assignment.
This was found by code inspection, with the help of an AI coding
assistant, after hitting the same bug in the TI FlashMedia bus code
(drivers/misc/tifm_core.c), which oopsed on SD card removal. It has
only been compile-tested: no MemoryStick hardware was available.
- 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 | >= a995fe1a3aa78b7d06cc1cc7b6b8436c5e93b07f, < 8365c5aca9f43441968e6cd9d64afc6506619176; >= a995fe1a3aa78b7d06cc1cc7b6b8436c5e93b07f, < 6f2b998a52746892968741cbf8fc226985cbf286 | 8365c5aca9f43441968e6cd9d64afc6506619176, 6f2b998a52746892968741cbf8fc226985cbf286 |
| CVE List | Linux | Linux | = 6.19 |
References
- https://git.kernel.org/stable/c/6f2b998a52746892968741cbf8fc226985cbf286
- https://git.kernel.org/stable/c/8365c5aca9f43441968e6cd9d64afc6506619176
History
- 3 Dec 2026 11:07 UTC · NVD: first stored (published 3 Dec 2026)
- 3 Dec 2026 10:08 UTC · CVE List: first stored (published 3 Dec 2026)