firmware: arm_scmi: Avoid IDR updates while cleaning channels
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f50698c617350a6e2064dffd6cff3f391e142f55, Kernel 54e5a4f7d83db4552d963d0785be32d9df680dcd, Kernel aed24a3c63920539e9de7fbfe7929a2e7c888cd2 and 7 more.
In the Linux kernel, the following vulnerability has been resolved: firmware: arm_scmi: Avoid IDR updates while cleaning channels scmi_cleanup_channels() walks the TX/RX channel IDRs with idr_for_each() to free transport resources and destroy the dedicated transport devices before calling idr_destroy(). The destroy callback removed each entry from the same IDR being walked. That is not needed for this cleanup path, and it is unsafe because idr_for_each() has not advanced its radix-tree iterator while the callback is running. Removing the current entry from the callback can invalidate the iterator state. The callback also cannot be protected by rcu_read_lock(), because scmi_device_destroy() may sleep. Leave IDR teardown to the following idr_destroy() call and keep the callback limited to device destruction.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=22f7f35fd71b597a5d916e41d7646be6ee530c86 <f50698c617350a6e2064dffd6cff3f391e142f55, >=05a2801d8b90c1b5159618d4bd3a3c65d60f3ff1 <54e5a4f7d83db4552d963d0785be32d9df680dcd, >=05a2801d8b90c1b5159618d4bd3a3c65d60f3ff1 <aed24a3c63920539e9de7fbfe7929a2e7c888cd2, >=05a2801d8b90c1b5159618d4bd3a3c65d60f3ff1 <bab26acebe55e8ad3ab545abda72faa7ca28c477, >=05a2801d8b90c1b5159618d4bd3a3c65d60f3ff1 <c38b1e19485aaa820e52cfe162525a8af67563da, =6.3, >=05a2801d8b90c1b5159618d4bd3a3c65d60f3ff1 <431c6b872ba7fedcc5a3afb0ec3517db4d95d088 | f50698c617350a6e2064dffd6cff3f391e142f55, 54e5a4f7d83db4552d963d0785be32d9df680dcd, aed24a3c63920539e9de7fbfe7929a2e7c888cd2, bab26acebe55e8ad3ab545abda72faa7ca28c477, c38b1e19485aaa820e52cfe162525a8af67563da, 431c6b872ba7fedcc5a3afb0ec3517db4d95d088 |
| 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