HID: mcp2221: always initialize and cancel init_work
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 19711bd64d60378137353ac3e6b774bd3a660f89, Kernel 6a006ff898b459e0bd10375d7fbe0ea7f7a132b9 and Kernel 7.3.2.
In the Linux kernel, the following vulnerability has been resolved: HID: mcp2221: always initialize and cancel init_work The writable gpio_mode_enforce parameter can change between probe and remove. If it changes from false to true after probe, remove skips cancellation of init_work. Pending or running work can then access devm-managed driver state after teardown. Changing it from true to false can make remove cancel an uninitialized delayed work item. Initialize init_work whenever IIO is reachable and cancel it unconditionally on remove. Keep the parameter check only for scheduling the initialization. The false-to-true cancellation gap was previously reported by Sashiko. We also encountered this issue during our static-analysis research.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =7.1, >=200e6c6e94fa786e36e4fe33eebf16b822181b99 <19711bd64d60378137353ac3e6b774bd3a660f89, >=200e6c6e94fa786e36e4fe33eebf16b822181b99 <6a006ff898b459e0bd10375d7fbe0ea7f7a132b9 | 19711bd64d60378137353ac3e6b774bd3a660f89, 6a006ff898b459e0bd10375d7fbe0ea7f7a132b9 |
| linux-kernel: Kernel | >=7.1.0 <7.3.2 | 7.3.2 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket