Shellfeed logo Shellfeed

CVE-2026-72424 · UNKNOWN

Summary: rtc: msc313: fix NULL deref in shared IRQ handler at probe

Details

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 packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [be7d9c9161b9c76edeff15e79edc2f256568fe05 – ece7b9ffde23e2ccd7567761ac27463ded43932c]
  • Linux Kernel [5.16.0 – 6.1.178] [6.2.0 – 6.6.145] [6.7.0 – 6.12.97] [6.13.0 – 6.18.40] [6.19.0 – 7.1.5]

References