firmware: arm_scmi: Fix requested device removal race
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel c3d4ef1c0ca6917aad6f1093b49f3932944a8c19, Kernel 1c35915eaaa81a12340c838c5c2ccb02be2194c3, Kernel 21d35c5f46e99e9047bb9ded3ecb5ab440dd75b3 and 7 more.
In the Linux kernel, the following vulnerability has been resolved: firmware: arm_scmi: Fix requested device removal race scmi_protocol_device_unrequest() drops scmi_requested_devices_mtx while notifying listeners but continues to retain the per-protocol list head. When two SCMI drivers for the same protocol unregister concurrently, one thread can remove the final request and free the list head while the other is running its notifier. The latter then dereferences the freed list head after reacquiring the mutex and can free it a second time. Complete the list and IDR updates, including freeing an empty list head, before dropping the mutex. Keep the blocking notifier outside the critical section and retain only the detached request across the callback.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=d3cd7c525fd2ecce3a6c963f314969a54783d211 <c3d4ef1c0ca6917aad6f1093b49f3932944a8c19, >=d3cd7c525fd2ecce3a6c963f314969a54783d211 <1c35915eaaa81a12340c838c5c2ccb02be2194c3, >=d3cd7c525fd2ecce3a6c963f314969a54783d211 <21d35c5f46e99e9047bb9ded3ecb5ab440dd75b3, >=d3cd7c525fd2ecce3a6c963f314969a54783d211 <2c4097e6c4aed276c5e9ec2ab331ab397ea780bf, >=d3cd7c525fd2ecce3a6c963f314969a54783d211 <2ff7713b7308cd6bea3328f7cd750b5eaab42af3, =6.3, >=a6fe96b2e371d5fd300cca24459cdcf471c2c741 <803e50af43ab1c3f76cbc744e496532ec151f305 | c3d4ef1c0ca6917aad6f1093b49f3932944a8c19, 1c35915eaaa81a12340c838c5c2ccb02be2194c3, 21d35c5f46e99e9047bb9ded3ecb5ab440dd75b3, 2c4097e6c4aed276c5e9ec2ab331ab397ea780bf, 2ff7713b7308cd6bea3328f7cd750b5eaab42af3, 803e50af43ab1c3f76cbc744e496532ec151f305 |
| linux-kernel: Kernel | >=6.19.0 <7.2.6, >=6.3.0 <6.6.157, >=6.7.0 <6.12.110, >=6.13.0 <6.18.52 | 7.2.6, 6.6.157, 6.12.110, 6.18.52 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket