CVE-2022-50322
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
15/09/2025
Last modified:
04/12/2025
Description
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.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.16 (including) | 6.0.17 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.1 (including) | 6.1.3 (excluding) |
To consult the complete list of CPE names with products and versions, see this page



