{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "a82adfd5c7cb4b8bb37ef439aed954f9972bb618"
            },
            {
              "fixed": "8a4236456a3a402f6bb92aa7b75e7a3b4ef7a72c"
            },
            {
              "fixed": "0b202dfedb5aa2e7d07d849be33fa3a48c026926"
            },
            {
              "fixed": "21ca0bfa11bbb9a9207f5d2104f47d3d71b4616e"
            },
            {
              "fixed": "d6a9fb87e9d18f3394a9845546bbe868efdccfd2"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.15.0"
            },
            {
              "fixed": "5.15.86"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.0.16"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.1.0"
            },
            {
              "fixed": "6.1.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50812.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nsecurity: Restrict CONFIG_ZERO_CALL_USED_REGS to gcc or clang \u003e 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.",
  "id": "CVE-2022-50812",
  "modified": "2026-04-01T23:09:54.403190682Z",
  "published": "2025-12-30T12:08:29.434Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0b202dfedb5aa2e7d07d849be33fa3a48c026926"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/21ca0bfa11bbb9a9207f5d2104f47d3d71b4616e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8a4236456a3a402f6bb92aa7b75e7a3b4ef7a72c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d6a9fb87e9d18f3394a9845546bbe868efdccfd2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50812.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-50812"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.3",
  "summary": "security: Restrict CONFIG_ZERO_CALL_USED_REGS to gcc or clang \u003e 15.0.6"
}