# CVE-2022-50812: security: Restrict CONFIG_ZERO_CALL_USED_REGS to gcc or clang > 15.0.6

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-12-30T12:08:29.434Z
- Modified: 2026-06-17T05:24:13.920Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from a82adfd5c7cb4b8bb37ef439aed954f9972bb618 before 8a4236456a3a402f6bb92aa7b75e7a3b4ef7a72c; from a82adfd5c7cb4b8bb37ef439aed954f9972bb618 before 0b202dfedb5aa2e7d07d849be33fa3a48c026926; from a82adfd5c7cb4b8bb37ef439aed954f9972bb618 before 21ca0bfa11bbb9a9207f5d2104f47d3d71b4616e; from a82adfd5c7cb4b8bb37ef439aed954f9972bb618 before d6a9fb87e9d18f3394a9845546bbe868efdccfd2; 5.15 (not affected: before 5.15; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)

## References

- <https://git.kernel.org/stable/c/8a4236456a3a402f6bb92aa7b75e7a3b4ef7a72c>
- <https://git.kernel.org/stable/c/0b202dfedb5aa2e7d07d849be33fa3a48c026926>
- <https://git.kernel.org/stable/c/21ca0bfa11bbb9a9207f5d2104f47d3d71b4616e>
- <https://git.kernel.org/stable/c/d6a9fb87e9d18f3394a9845546bbe868efdccfd2>

## Sources

- CVE List: [CVE-2022-50812](https://www.cve.org/CVERecord?id=CVE-2022-50812), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50812](https://nvd.nist.gov/vuln/detail/CVE-2022-50812), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50812 · Whole record: https://cve.day/CVE-2022-50812.json · Rebuilt by cve.day 2026-11-25T22:58:21.365Z
