iio: buffer: serialize buffer teardown with mode claims
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 261f54966ebf45ced5fe5e1fe5119c6c44e140ab, Kernel 89f3852a28fcf7bab599280cb082baa0675536db, Kernel b466db9e68b4741af85f6c017e2bb0a2f025053f and 10 more.
In the Linux kernel, the following vulnerability has been resolved: iio: buffer: serialize buffer teardown with mode claims Buffer-mode claims hold mlock to guarantee that the device remains in buffer mode until the claim is released. Normal buffer updates take info_exist_lock followed by mlock in iio_update_buffers(). However, iio_device_unregister() disables and deactivates all buffers without taking mlock. This can invalidate buffer state, including active_scan_mask, while a buffer-mode claim is held. Take mlock in iio_disable_all_buffers() so that unregister honors the mode-claim lifetime guarantee. The info_exist_lock -> mlock ordering matches iio_update_buffers().
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=a9c471892d75847671a246619c2148578f22bbc6 <261f54966ebf45ced5fe5e1fe5119c6c44e140ab, >=0a8565425afd8ba0e1a0ea73e21da119ee6dacea <89f3852a28fcf7bab599280cb082baa0675536db, >=0a8565425afd8ba0e1a0ea73e21da119ee6dacea <b466db9e68b4741af85f6c017e2bb0a2f025053f, >=0a8565425afd8ba0e1a0ea73e21da119ee6dacea <e63188d77e10c0951bf67da6c295f768fd1abf4b, >=5.15.137 <5.15.224, >=6.1.60 <6.1.191, >=7bca0af538a49dacb1470f233be0676bdc09605b <cebbecb26d22368440c4779f8275d790cf347177, =6.2, >=0a8565425afd8ba0e1a0ea73e21da119ee6dacea <6a728408ff522b749c2a3c7e68f44e861fa0dbfb, >=0a8565425afd8ba0e1a0ea73e21da119ee6dacea <84bb0fc46ccf6a545b8fdf57cda83770186ed8dd | 261f54966ebf45ced5fe5e1fe5119c6c44e140ab, 89f3852a28fcf7bab599280cb082baa0675536db, b466db9e68b4741af85f6c017e2bb0a2f025053f, e63188d77e10c0951bf67da6c295f768fd1abf4b, 5.15.224, 6.1.191, cebbecb26d22368440c4779f8275d790cf347177, 6a728408ff522b749c2a3c7e68f44e861fa0dbfb, 84bb0fc46ccf6a545b8fdf57cda83770186ed8dd |
| linux-kernel: Kernel | >=6.1.60 <6.1.191, >=6.13.0 <6.18.56, >=6.19.0 <7.2.10, >=6.2.0 <6.6.160, >=6.7.0 <6.12.113, >=5.15.137 <5.15.224 | 6.1.191, 6.18.56, 7.2.10, 6.6.160, 6.12.113, 5.15.224 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket