{"id":"CVE-2022-50322","published":"2025-09-15T14:48:55Z","modified":"2026-11-05T20:10:35Z","title":"rtc: msc313: Fix function prototype mismatch in msc313_rtc_probe()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nrtc: msc313: Fix function prototype mismatch in msc313_rtc_probe()\n\nWith clang's kernel control flow integrity (kCFI, CONFIG_CFI_CLANG),\nindirect call targets are validated against the expected function\npointer prototype to make sure the call target is valid to help mitigate\nROP attacks. If they are not identical, there is a failure at run time,\nwhich manifests as either a kernel panic or thread getting killed.\n\nmsc313_rtc_probe() was passing clk_disable_unprepare() directly, which\ndid not have matching prototypes for devm_add_action_or_reset()'s\ncallback argument. Refactor to use devm_clk_get_enabled() instead.\n\nThis was found as a result of Clang's new -Wcast-function-type-strict\nflag, which is more sensitive than the simpler -Wcast-function-type,\nwhich only checks for type width mismatches.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00164,"percentile":0.05669,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/5affaaf3334c9274131dae889ed79ea0553d61b4","tags":[]},{"url":"https://git.kernel.org/stable/c/ba50fee6b41bcbafaeed3c51f90d37d1480ff9a0","tags":[]},{"url":"https://git.kernel.org/stable/c/21b8a1dd56a163825e5749b303858fb902ebf198","tags":[]}],"priority":{"score":1.1,"factors":[{"name":"EPSS percentile","points":1.13}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= be7d9c9161b9c76edeff15e79edc2f256568fe05, < 5affaaf3334c9274131dae889ed79ea0553d61b4",">= be7d9c9161b9c76edeff15e79edc2f256568fe05, < ba50fee6b41bcbafaeed3c51f90d37d1480ff9a0",">= be7d9c9161b9c76edeff15e79edc2f256568fe05, < 21b8a1dd56a163825e5749b303858fb902ebf198"]},{"vendor":"Linux","product":"Linux","versions":["5.16"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-05T20:09:53.214185Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-55533","exploited":false,"provenance":"source"}}