{"id":"CVE-2022-50812","aliases":["CVE-2022-50812"],"related":[],"kind":"vulnerability","state":"published","title":"security: Restrict CONFIG_ZERO_CALL_USED_REGS to gcc or clang > 15.0.6","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsecurity: Restrict CONFIG_ZERO_CALL_USED_REGS to gcc or clang > 15.0.6\n\nA bad bug in clang's implementation of -fzero-call-used-regs can result\nin NULL pointer dereferences (see the links above the check for more\ninformation). Restrict CONFIG_CC_HAS_ZERO_CALL_USED_REGS to either a\nsupported GCC version or a clang newer than 15.0.6, which will catch\nboth a theoretical 15.0.7 and the upcoming 16.0.0, which will both have\nthe bug fixed.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsecurity: Restrict CONFIG_ZERO_CALL_USED_REGS to gcc or clang > 15.0.6\n\nA bad bug in clang's implementation of -fzero-call-used-regs can result\nin NULL pointer dereferences (see the links above the check for more\ninformation). Restrict CONFIG_CC_HAS_ZERO_CALL_USED_REGS to either a\nsupported GCC version or a clang newer than 15.0.6, which will catch\nboth a theoretical 15.0.7 and the upcoming 16.0.0, which will both have\nthe bug fixed.","source":"cvelist"}],"published":"2025-12-30T12:08:29.434Z","modified":"2026-06-17T05:24:13.920Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"a82adfd5c7cb4b8bb37ef439aed954f9972bb618","fixed":"8a4236456a3a402f6bb92aa7b75e7a3b4ef7a72c","status":"affected"},{"type":"git","introduced":"a82adfd5c7cb4b8bb37ef439aed954f9972bb618","fixed":"0b202dfedb5aa2e7d07d849be33fa3a48c026926","status":"affected"},{"type":"git","introduced":"a82adfd5c7cb4b8bb37ef439aed954f9972bb618","fixed":"21ca0bfa11bbb9a9207f5d2104f47d3d71b4616e","status":"affected"},{"type":"git","introduced":"a82adfd5c7cb4b8bb37ef439aed954f9972bb618","fixed":"d6a9fb87e9d18f3394a9845546bbe868efdccfd2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/8a4236456a3a402f6bb92aa7b75e7a3b4ef7a72c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0b202dfedb5aa2e7d07d849be33fa3a48c026926","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/21ca0bfa11bbb9a9207f5d2104f47d3d71b4616e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d6a9fb87e9d18f3394a9845546bbe868efdccfd2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50812","url":"https://www.cve.org/CVERecord?id=CVE-2022-50812","licence":"CVE Terms of Use","modified":"2026-05-11T19:25:35.722Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50812","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50812","licence":"Public domain","modified":"2026-06-17T05:24:13.920Z"}],"updatedAt":"2026-11-25T22:58:21.365Z","epss":{"score":0.00255,"percentile":0.18293,"date":"2026-12-01T12:00:22.000Z"}}