i2c: imx: Cancel hrtimer before clearing slave pointer
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel e3da77bdb4015051656bb472c295656bbea03b6f, Kernel 470fe15fb3bb2eba6629be301ca7e991ee3cfb7e, Kernel 6ac7702b6cc2b94aaed9ef2d95bfbefcdc90061f and 10 more.
In the Linux kernel, the following vulnerability has been resolved: i2c: imx: Cancel hrtimer before clearing slave pointer In i2c_imx_unreg_slave(), the slave pointer is set to NULL after disabling interrupts. However, a pending interrupt might already have started the hrtimer (i2c_imx_slave_timeout) before the pointer was cleared. If the hrtimer fires after i2c_imx->slave is set to NULL, the timer callback i2c_imx_slave_finish_op() will call i2c_imx_slave_event() with a NULL slave pointer, which results in a use-after-free / NULL pointer dereference. Fix by canceling the hrtimer and waiting for it to complete after disabling interrupts, before clearing the slave pointer.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=f7414cd6923fd7f78e57086fc964ba2dc25db5c1 <e3da77bdb4015051656bb472c295656bbea03b6f, >=f7414cd6923fd7f78e57086fc964ba2dc25db5c1 <470fe15fb3bb2eba6629be301ca7e991ee3cfb7e, >=f7414cd6923fd7f78e57086fc964ba2dc25db5c1 <6ac7702b6cc2b94aaed9ef2d95bfbefcdc90061f, >=f7414cd6923fd7f78e57086fc964ba2dc25db5c1 <753060f2b77ff2f386addbd3ecadb95b9f90cddd, >=f7414cd6923fd7f78e57086fc964ba2dc25db5c1 <a8a1f9ac3d763e721586f15479ef9140b216ddf3, >=f7414cd6923fd7f78e57086fc964ba2dc25db5c1 <affd62f5719a78135b7441aa49c8cab3c3b5e838, >=f7414cd6923fd7f78e57086fc964ba2dc25db5c1 <dab4762ee7f3fd0a01980d5407ba48d0261d3bff, =5.11 | e3da77bdb4015051656bb472c295656bbea03b6f, 470fe15fb3bb2eba6629be301ca7e991ee3cfb7e, 6ac7702b6cc2b94aaed9ef2d95bfbefcdc90061f, 753060f2b77ff2f386addbd3ecadb95b9f90cddd, a8a1f9ac3d763e721586f15479ef9140b216ddf3, affd62f5719a78135b7441aa49c8cab3c3b5e838, dab4762ee7f3fd0a01980d5407ba48d0261d3bff |
| linux-kernel: Kernel | >=5.16.0 <6.1.183, >=6.13.0 <6.18.44, >=6.19.0 <7.1.8, >=6.2.0 <6.6.151, >=6.7.0 <6.12.103, >=5.11.0 <5.15.216 | 6.1.183, 6.18.44, 7.1.8, 6.6.151, 6.12.103, 5.15.216 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket