iio: adc: xilinx-xadc: free IRQ before cancelling the unmask worker on unbind
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.11, Kernel 012451d72c12293918617ff98cc737bedad21910, Kernel 0f3f427076240e75ff265e61645627a71ca4918c and 9 more.
In the Linux kernel, the following vulnerability has been resolved: iio: adc: xilinx-xadc: free IRQ before cancelling the unmask worker on unbind The ZYNQ XADC alarm IRQ handler queues zynq_unmask_work via schedule_delayed_work(); that work is cleared by a devm callback. Register the devm callback before devm_request_irq() so the devres LIFO teardown frees the IRQ first, ensuring the handler can no longer queue work by the time the workqueue is cleared. Otherwise the handler could re-arm the work and run it after the xadc structure has been freed. This issue was found by an in-house static analysis tool.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.10.200 <5.11, >=2a9685d1a3b7644ca08d8355fc238b43faef7c3e <012451d72c12293918617ff98cc737bedad21910, >=2a9685d1a3b7644ca08d8355fc238b43faef7c3e <0f3f427076240e75ff265e61645627a71ca4918c, >=2a9685d1a3b7644ca08d8355fc238b43faef7c3e <49ea8a359e362bfbb32a647c8eb7962fbb37234e, >=2a9685d1a3b7644ca08d8355fc238b43faef7c3e <7958959ab2a906c04f783a3ffb979c45472ad647, >=2a9685d1a3b7644ca08d8355fc238b43faef7c3e <a29d385ad7b340c952a3935af2b33488db1eb3a6, >=2a9685d1a3b7644ca08d8355fc238b43faef7c3e <a5fe2d1b55faba6d00fd87ad491b6cb603046304, =5.12, =e96eb8853f334f96312968e4f01c5a452db54c00 | 5.11, 012451d72c12293918617ff98cc737bedad21910, 0f3f427076240e75ff265e61645627a71ca4918c, 49ea8a359e362bfbb32a647c8eb7962fbb37234e, 7958959ab2a906c04f783a3ffb979c45472ad647, a29d385ad7b340c952a3935af2b33488db1eb3a6, a5fe2d1b55faba6d00fd87ad491b6cb603046304 |
| linux-kernel: Kernel | >=5.12.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.10.200 <5.11 | 6.1.191, 6.18.56, 7.2.10, 6.6.160, 6.12.113, 5.11 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket