power: supply: lp8727: fix use-after-free in lp8727_release_irq()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel dc1dc2837f8e53bde2f16d52a63f4142e21757f1, Kernel 035cc6bc4d412dd4302862e8f859b784fcd4653b, Kernel 1321a4e6247164312eabc6d07f88572da2ee308c and 12 more.
In the Linux kernel, the following vulnerability has been resolved: power: supply: lp8727: fix use-after-free in lp8727_release_irq() lp8727_isr_func(), the threaded IRQ handler, is the only caller that arms pchg->work via schedule_delayed_work(). lp8727_release_irq() currently cancels the work before freeing the IRQ, so an IRQ delivered in between can re-arm the work through the threaded handler. After .remove returns the devm layer frees pchg while lp8727_delayed_func() may still run and dereference it. Free the IRQ first so the threaded handler is quiesced and can no longer queue work, then cancel the delayed work to drain the final generation. 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 | >=d71fda01610269e3aaedd451f8d3e34cdf550036 <dc1dc2837f8e53bde2f16d52a63f4142e21757f1, >=d71fda01610269e3aaedd451f8d3e34cdf550036 <035cc6bc4d412dd4302862e8f859b784fcd4653b, >=d71fda01610269e3aaedd451f8d3e34cdf550036 <1321a4e6247164312eabc6d07f88572da2ee308c, >=d71fda01610269e3aaedd451f8d3e34cdf550036 <6ab3128292df67295de1b2a86f21d89cf6612a7e, >=d71fda01610269e3aaedd451f8d3e34cdf550036 <6f0ce09d60a0e4fab6f9ebe8294750481f0c19dd, >=d71fda01610269e3aaedd451f8d3e34cdf550036 <80d4e40a85ba524e66c8c748aa7bb19eaf2f69df, >=d71fda01610269e3aaedd451f8d3e34cdf550036 <ab6b1ad710bed7931540733ce145493fece8ceef, >=d71fda01610269e3aaedd451f8d3e34cdf550036 <ceb6ac43b0f591722401922ceb958ce2616935e0, =3.7 | dc1dc2837f8e53bde2f16d52a63f4142e21757f1, 035cc6bc4d412dd4302862e8f859b784fcd4653b, 1321a4e6247164312eabc6d07f88572da2ee308c, 6ab3128292df67295de1b2a86f21d89cf6612a7e, 6f0ce09d60a0e4fab6f9ebe8294750481f0c19dd, 80d4e40a85ba524e66c8c748aa7bb19eaf2f69df, ab6b1ad710bed7931540733ce145493fece8ceef, ceb6ac43b0f591722401922ceb958ce2616935e0 |
| linux-kernel: Kernel | >=5.11.0 <5.15.221, >=5.16.0 <6.1.188, >=6.13.0 <6.18.50, >=6.19.0 <7.2.4, >=6.2.0 <6.6.157, >=6.7.0 <6.12.109, >=3.7.0 <5.10.270 | 5.15.221, 6.1.188, 6.18.50, 7.2.4, 6.6.157, 6.12.109, 5.10.270 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket