CVE-2022-50322
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-50322 is a denial-of-service vulnerability in the Linux kernel's Real-Time Clock (RTC) driver for the MSC313 device, caused by a function prototype mismatch in msc313_rtc_probe(). When Clang's kernel Control Flow Integrity (kCFI, CONFIG_CFI_CLANG) is enabled, the mismatch between clk_disable_unprepare() and the expected callback prototype for devm_add_action_or_reset() triggers a runtime failure, manifesting as a kernel panic or thread termination. Affected Linux kernel versions include 5.16 through 6.0.16 and 6.1 through 6.1.2. It was publicly disclosed on September 15, 2025, and carries a CVSS v3.1 base score of 5.5 (Medium) (Red Hat Advisory, Red Hat Bugzilla).

Technical details

The root cause is a function pointer type mismatch (CWE-704: Incorrect Type Conversion or Cast) in the msc313_rtc_probe() function within the Linux kernel's drivers/rtc/rtc-msc313.c. Specifically, clk_disable_unprepare() was passed directly as a callback to devm_add_action_or_reset(), but its prototype does not match the expected callback signature. When kCFI is active, the kernel validates indirect call targets against their expected prototypes at runtime; a mismatch causes an immediate kernel panic or thread kill. The fix refactors the code to use devm_clk_get_enabled() instead, which properly manages clock lifecycle without the prototype mismatch. This issue was identified via Clang's -Wcast-function-type-strict flag, which is stricter than the standard -Wcast-function-type (Red Hat Bugzilla).

Impact

Successful triggering of this vulnerability results in a kernel panic or unexpected thread termination on affected systems, constituting a local denial of service. The impact is limited to availability — there is no confidentiality or integrity impact. The vulnerability only manifests on systems compiled with Clang and kCFI enabled (CONFIG_CFI_CLANG), which narrows the affected population to kernels built with that specific configuration (Red Hat Advisory, Red Hat Bugzilla).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation for CVE-2022-50322. The EPSS score is approximately 0.017% (0.000170), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires local access with low privileges and is further constrained to systems using Clang-compiled kernels with kCFI enabled (Red Hat Advisory).

Mitigation and workarounds

The Linux kernel maintainers have released patches addressing this vulnerability in versions 6.0.17 and 6.1.3, as well as the 6.2 mainline release. Administrators should upgrade to Linux kernel 6.0.17, 6.1.3, or any later version. As a temporary workaround, disabling Clang's kCFI feature (CONFIG_CFI_CLANG) will prevent the runtime failure, though this reduces kernel security hardening. Patch commits are available in the stable kernel tree (Red Hat Bugzilla, Kernel Patch 1, Kernel Patch 2, Kernel Patch 3).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74730CRITICAL9.8
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 22, 2026
CVE-2026-74733HIGH7.8
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug-devel-matched
NoYesAug 22, 2026
CVE-2026-74726HIGH7.3
  • Linux Kernel logoLinux Kernel
  • kernel
NoYesAug 22, 2026
CVE-2026-74732MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • kernel-selftests-internal
NoYesAug 22, 2026
CVE-2026-74728NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-modules-core
NoNoAug 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management