cveboard RSS feed

CVE-2022-50322

CVE.org · Published

Historical CVEsJSONAI instructions

Record status
Published
Identifier year (not publication year)
2022
Source publication
Source updated
Imported by cveboard
Source snapshot
cve_2026-10-24_midnight_baseline ·

Plain text

CNA source text (English)

rtc: msc313: Fix function prototype mismatch in msc313_rtc_probe()

In the Linux kernel, the following vulnerability has been resolved: rtc: msc313: Fix function prototype mismatch in msc313_rtc_probe() With clang's kernel control flow integrity (kCFI, CONFIG_CFI_CLANG), indirect call targets are validated against the expected function pointer prototype to make sure the call target is valid to help mitigate ROP attacks. If they are not identical, there is a failure at run time, which manifests as either a kernel panic or thread getting killed. msc313_rtc_probe() was passing clk_disable_unprepare() directly, which did not have matching prototypes for devm_add_action_or_reset()'s callback argument. Refactor to use devm_clk_get_enabled() instead. This was found as a result of Clang's new -Wcast-function-type-strict flag, which is more sensitive than the simpler -Wcast-function-type, which only checks for type width mismatches.

Scoped product and version facts

Fix information unknown; no fixed version is derived here. Missing information does not prove that no fix exists.

Exploitation unknown; this catalogue does not assess exploitation.

Linux

Vendor
Linux
Product
Linux
Platforms
Unknown
Default status
unaffected
Linux · Scoped product and version facts
Version (version)Status (status)Version scheme (versionType)Exclusive end (lessThan)Inclusive end (lessThanOrEqual)Status changes (at → status)
be7d9c9161b9c76edeff15e79edc2f256568fe05affectedgit5affaaf3334c9274131dae889ed79ea0553d61b4UnavailableNone listed
be7d9c9161b9c76edeff15e79edc2f256568fe05affectedgitba50fee6b41bcbafaeed3c51f90d37d1480ff9a0UnavailableNone listed
be7d9c9161b9c76edeff15e79edc2f256568fe05affectedgit21b8a1dd56a163825e5749b303858fb902ebf198UnavailableNone listed

Linux

Vendor
Linux
Product
Linux
Platforms
Unknown
Default status
affected
Linux · Scoped product and version facts
Version (version)Status (status)Version scheme (versionType)Exclusive end (lessThan)Inclusive end (lessThanOrEqual)Status changes (at → status)
5.16affectedUnavailableUnavailableUnavailableNone listed
0unaffectedsemver5.16UnavailableNone listed
6.0.17unaffectedsemverUnavailable6.0.*None listed
6.1.3unaffectedsemverUnavailable6.1.*None listed
6.2unaffectedoriginal_commit_for_fixUnavailable*None listed