iio: trigger: cancel reenable_work before freeing trigger
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel beec4c9e23b8293c41d3448f9807c28fc9a599d4, Kernel 5.17, Kernel 2a57b9246cecd5dd797a42eb310d6c8816f26d9e and 11 more.
In the Linux kernel, the following vulnerability has been resolved: iio: trigger: cancel reenable_work before freeing trigger iio_trigger_notify_done_atomic() defers ->reenable() into trig->reenable_work on the system workqueue, and the worker dereferences the owning trigger through container_of(). Nothing cancels this work before iio_trig_release() frees the trigger, so a worker armed by the last in-flight IRQ can outlive the free and touch freed memory. Cancel it at the top of iio_trig_release(), which every free path reaches through the device core's final put_device(). Found by an in-house static analysis tool.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=a18aeac73c0f692ba40964f5f56e182312ae843b <beec4c9e23b8293c41d3448f9807c28fc9a599d4, >=5.16.3 <5.17, >=9020ef659885f2622cfb386cc229b6d618362895 <2a57b9246cecd5dd797a42eb310d6c8816f26d9e, >=9020ef659885f2622cfb386cc229b6d618362895 <4e790a5bd4249877bcf0c94db12ac490965f9296, >=9020ef659885f2622cfb386cc229b6d618362895 <882d0011c59ff8ac15188ec9ce071399ecfa10ad, >=9020ef659885f2622cfb386cc229b6d618362895 <ac5d26a46c90ff61fd574eff4e8f0d71c905828a, >=9020ef659885f2622cfb386cc229b6d618362895 <cf513df1a2c75566cdc802d9da47f62e8d6cfd18, >=9020ef659885f2622cfb386cc229b6d618362895 <e64703280ce7a23a43c27efebeb7da457c88bf5c, =2c5c948451d57596640b20887b06b523d376eb24, =5.17, >=5.15.17 <5.15.224 | beec4c9e23b8293c41d3448f9807c28fc9a599d4, 5.17, 2a57b9246cecd5dd797a42eb310d6c8816f26d9e, 4e790a5bd4249877bcf0c94db12ac490965f9296, 882d0011c59ff8ac15188ec9ce071399ecfa10ad, ac5d26a46c90ff61fd574eff4e8f0d71c905828a, cf513df1a2c75566cdc802d9da47f62e8d6cfd18, e64703280ce7a23a43c27efebeb7da457c88bf5c, 5.15.224 |
| linux-kernel: Kernel | >=5.16.3 <5.17, >=5.17.0 <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.17 <5.15.224 | 5.17, 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