CVE-2022-50812 Details
Description
In the Linux kernel, the following vulnerability has been resolved: security: Restrict CONFIG_ZERO_CALL_USED_REGS to gcc or clang > 15.0.6 A bad bug in clang's implementation of -fzero-call-used-regs can result in NULL pointer dereferences (see the links above the check for more information). Restrict CONFIG_CC_HAS_ZERO_CALL_USED_REGS to either a supported GCC version or a clang newer than 15.0.6, which will catch both a theoretical 15.0.7 and the upcoming 16.0.0, which will both have the bug fixed.
A vulnerability in the Linux kernel has been addressed, which was caused by a flaw in Clang's handling of the '-fzero-call-used-regs' option. This flaw could lead to NULL pointer dereferences. The issue arises in the kernel's configuration options related to zeroing registers on function exit. To mitigate this vulnerability, the kernel now restricts the use of this feature to either a supported version of GCC or a version of Clang that is newer than 15.0.6. This change ensures that the problematic behavior in Clang is not present, as versions 15.0.7 and 16.0.0 have the issue fixed.
Users can update to the latest version of the Linux kernel where this vulnerability has been addressed. Instructions for downloading the patched version are available on the official Linux kernel website.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 30, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/0b202dfedb5aa2e7d07d849be33fa3a48c026926 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/21ca0bfa11bbb9a9207f5d2104f47d3d71b4616e | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/8a4236456a3a402f6bb92aa7b75e7a3b4ef7a72c | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/d6a9fb87e9d18f3394a9845546bbe868efdccfd2 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | >= 5.15, < 5.15.0-rc1 |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 30, 2025 | New CVE Received | kernel.org |
Volerion