rtc: msc313: fix NULL deref in shared IRQ handler at probe
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ece7b9ffde23e2ccd7567761ac27463ded43932c, Kernel 1f6a4aec0d36647eb2f67cd69db22bd28cabe2cb, Kernel 52c73b6992b46ed476590ed526faa033d4fbfc5d and 8 more.
In the Linux kernel, the following vulnerability has been resolved: rtc: msc313: fix NULL deref in shared IRQ handler at probe msc313_rtc_probe() calls devm_request_irq() with IRQF_SHARED and &pdev->dev as the cookie, but platform_set_drvdata() is only called later after the clock setup. With a shared IRQ line, another device on the same line can trigger the handler in that window. The handler does dev_get_drvdata() on the cookie, gets NULL, and dereferences priv->rtc_base in interrupt context. Pass priv as the cookie directly so the handler reads it from dev_id without the lookup, removing the dependency on probe order.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=be7d9c9161b9c76edeff15e79edc2f256568fe05 <ece7b9ffde23e2ccd7567761ac27463ded43932c, >=be7d9c9161b9c76edeff15e79edc2f256568fe05 <1f6a4aec0d36647eb2f67cd69db22bd28cabe2cb, >=be7d9c9161b9c76edeff15e79edc2f256568fe05 <52c73b6992b46ed476590ed526faa033d4fbfc5d, >=be7d9c9161b9c76edeff15e79edc2f256568fe05 <a369f48be8de426a7d2bca18dbd46c2ad1138803, >=be7d9c9161b9c76edeff15e79edc2f256568fe05 <bb3e624808c981fe881cb79037be63e680ed7d38, >=be7d9c9161b9c76edeff15e79edc2f256568fe05 <bc1f61a9b97d65de21c2681bcf0b5b1392c58486, =5.16 | ece7b9ffde23e2ccd7567761ac27463ded43932c, 1f6a4aec0d36647eb2f67cd69db22bd28cabe2cb, 52c73b6992b46ed476590ed526faa033d4fbfc5d, a369f48be8de426a7d2bca18dbd46c2ad1138803, bb3e624808c981fe881cb79037be63e680ed7d38, bc1f61a9b97d65de21c2681bcf0b5b1392c58486 |
| linux-kernel: Kernel | >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.2.0 <6.6.145, >=6.7.0 <6.12.97, >=5.16.0 <6.1.178 | 6.18.40, 7.1.5, 6.6.145, 6.12.97, 6.1.178 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket