memstick: ms_block: destroy io_queue workqueue on removal
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f222bb8c30cf5699c560b29179ff2bddcac1f950, Kernel 0ff795163f37109a134b5a421558530f8d091544, Kernel 19c3da6621a253f1f8b937ed91bc22330a930d9c and 8 more.
In the Linux kernel, the following vulnerability has been resolved: memstick: ms_block: destroy io_queue workqueue on removal msb_init_disk() creates the per-card ordered workqueue msb->io_queue with alloc_ordered_workqueue(). It is torn down with destroy_workqueue() only on the init error path; msb_remove() never destroys it. msb_stop() merely flushes the queue, and neither msb_data_clear() nor put_disk() free it. As a result every card insert/remove cycle leaks the workqueue and its kworker, exhausting kernel memory over repeated cycles. Destroy the workqueue in msb_remove() after the disk has been removed and the queue drained.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 <f222bb8c30cf5699c560b29179ff2bddcac1f950, >=0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 <0ff795163f37109a134b5a421558530f8d091544, >=0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 <19c3da6621a253f1f8b937ed91bc22330a930d9c, >=0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 <6611f78ec3fd4b33a00bfda20725b254a22979f6, >=0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 <90af7fde083e1b22c349c3a8b1626728e44e474c, >=0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 <9a2e7cdc0880e735aff0968ee402f2c92a992b9b, =3.12 | f222bb8c30cf5699c560b29179ff2bddcac1f950, 0ff795163f37109a134b5a421558530f8d091544, 19c3da6621a253f1f8b937ed91bc22330a930d9c, 6611f78ec3fd4b33a00bfda20725b254a22979f6, 90af7fde083e1b22c349c3a8b1626728e44e474c, 9a2e7cdc0880e735aff0968ee402f2c92a992b9b |
| linux-kernel: Kernel | >=6.13.0 <6.18.54, >=6.19.0 <7.2.8, >=6.2.0 <6.6.158, >=6.7.0 <6.12.112, >=3.12.0 <6.1.189 | 6.18.54, 7.2.8, 6.6.158, 6.12.112, 6.1.189 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket