В ядре Linux устранена следующая уязвимость:
rtc: msc313: исправлено разыменование NULL в общем обработчике IRQ при проверке.
msc313_rtc_probe() вызывает devm_request_irq() с IRQF_SHARED и
&pdev->dev в качестве файла cookie, но вызывается только Platform_set_drvdata()
позже после настройки часов. При наличии общей линии IRQ другое устройство
в той же строке может вызвать обработчик в этом окне.
обработчик выполняет dev_get_drvdata() для файла cookie, получает NULL и
разыменовывает priv->rtc_base в контексте прерывания.
Передайте priv как файл cookie напрямую, чтобы обработчик прочитал его из
dev_id без поиска, удаляя зависимость от порядка проверки.
Показать оригинальное описание (EN)
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.