CVE-2022-50322
Gravedad:
Pendiente de análisis
Tipo:
No Disponible / Otro tipo
Fecha de publicación:
15/09/2025
Última modificación:
15/09/2025
Descripción
*** Pendiente de traducción *** In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
rtc: msc313: Fix function prototype mismatch in msc313_rtc_probe()<br />
<br />
With clang&#39;s kernel control flow integrity (kCFI, CONFIG_CFI_CLANG),<br />
indirect call targets are validated against the expected function<br />
pointer prototype to make sure the call target is valid to help mitigate<br />
ROP attacks. If they are not identical, there is a failure at run time,<br />
which manifests as either a kernel panic or thread getting killed.<br />
<br />
msc313_rtc_probe() was passing clk_disable_unprepare() directly, which<br />
did not have matching prototypes for devm_add_action_or_reset()&#39;s<br />
callback argument. Refactor to use devm_clk_get_enabled() instead.<br />
<br />
This was found as a result of Clang&#39;s new -Wcast-function-type-strict<br />
flag, which is more sensitive than the simpler -Wcast-function-type,<br />
which only checks for type width mismatches.



