security: Restrict CONFIG_ZERO_CALL_USED_REGS to gcc or clang > 15.0.6
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.86, 6.0.16, 6.1.2
- CVEs
- CVE-2022-50812
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 08:34 UTC · Revision 1
Source evidence
security: Restrict CONFIG_ZERO_CALL_USED_REGS to gcc or clang > 15.0.6
core-osv · Original sourcePublished 30 Dec 2025, 12:08 UTC
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.
osv:CVE-2022-50812
Kernel
Fixed versions: 5.15.86, 6.0.16, 6.1.2
Complete source record
{
"id": "e767a63749b6ed974332717583f884f18468bf1bdfbf0e38775c4e163781e9d1",
"url": "https://osv.dev/vulnerability/CVE-2022-50812",
"method": "structured",
"payload": {
"kind": "advisory",
"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: 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.",
"evidence": "osv:CVE-2022-50812",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.86",
"evidence": "/affected/1/ranges"
},
{
"value": "6.0.16",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-50812",
"aliases": [
"CVE-2022-50812"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "a82adfd5c7cb4b8bb37ef439aed954f9972bb618"
},
{
"fixed": "8a4236456a3a402f6bb92aa7b75e7a3b4ef7a72c"
},
{
"fixed": "0b202dfedb5aa2e7d07d849be33fa3a48c026926"
},
{
"fixed": "21ca0bfa11bbb9a9207f5d2104f47d3d71b4616e"
},
{
"fixed": "d6a9fb87e9d18f3394a9845546bbe868efdccfd2"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50812.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"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"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50812.json"
}
}
],
"modified": "2026-10-28T02:30:33.887606720Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0b202dfedb5aa2e7d07d849be33fa3a48c026926",
"https://git.kernel.org/stable/c/21ca0bfa11bbb9a9207f5d2104f47d3d71b4616e",
"https://git.kernel.org/stable/c/8a4236456a3a402f6bb92aa7b75e7a3b4ef7a72c",
"https://git.kernel.org/stable/c/d6a9fb87e9d18f3394a9845546bbe868efdccfd2",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50812.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-50812",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50812.json"
}
},
"related_cves": [
{
"value": "CVE-2022-50812",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 501156,
"published_at": "2025-12-30T12:08:29.434+00:00"
}