Files
vuln-cve/data/2026/98xxx/CVE-2026-98040.json
T

122 lines
5.8 KiB
JSON

{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2026-98040",
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"state": "PUBLISHED",
"assignerShortName": "Linux",
"dateReserved": "2026-09-25T10:19:56.071Z",
"datePublished": "2026-09-25T10:23:53.001Z",
"dateUpdated": "2026-10-19T09:12:46.084Z"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux",
"dateUpdated": "2026-10-19T09:12:46.084Z"
},
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Mark the zero register precise for a register-form NULL check\n\ncheck_cond_jmp_op() accepts \"if rA <op> rB\" as a NULL check for a\nnullable pointer rA when rB is a scalar known to be zero,\nlifts PTR_MAYBE_NULL from rA in the corresponding branch and does not\nmark rB precise. Consider the following program:\n\n r0 = bpf_get_prandom_u32();\n r6 = 1; /* the r6 == 0 path is explored first */\n if (r0 == 0) goto 1f;\n r6 = 0;\n1:\n r0 = bpf_map_lookup_elem(map, &0); /* absent, NULL at runtime */\n if (r0 == r6) goto 2f; /* taken as a NULL check for r0 */\n *(u8 *)(r0 + 0); /* verifier: map value; runtime: zero */\n2:\n return 0;\n\nThe r6 == 0 path is explored first and the dereference is accepted.\nThe r6 == 1 path is pruned at the checkpoint recorded for (1),\nso the comparison is never verified with a non-zero r6. At runtime a\nfailed lookup returns NULL, NULL != 1 takes the non-NULL edge and the\nprogram dereferences a pointer that is zero."
}
],
"affected": [
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"kernel/bpf/verifier.c"
],
"versions": [
{
"version": "2f4cb53eed448c1aeb6f4b40cf9c810716d8218c",
"lessThan": "ddca9a3b8833168dda3e62676648a636fb3f221c",
"status": "affected",
"versionType": "git"
},
{
"version": "2f4cb53eed448c1aeb6f4b40cf9c810716d8218c",
"lessThan": "6aed0134d3cda6382385a734ae0158eb7df6b142",
"status": "affected",
"versionType": "git"
}
]
},
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "affected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"kernel/bpf/verifier.c"
],
"versions": [
{
"version": "7.1",
"status": "affected"
},
{
"version": "0",
"lessThan": "7.1",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "7.2.7",
"lessThanOrEqual": "7.2.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "7.3",
"lessThanOrEqual": "*",
"status": "unaffected",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "7.1",
"versionEndExcluding": "7.2.7"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "7.1",
"versionEndExcluding": "7.3"
}
]
}
]
}
],
"references": [
{
"url": "https://git.kernel.org/stable/c/ddca9a3b8833168dda3e62676648a636fb3f221c"
},
{
"url": "https://git.kernel.org/stable/c/6aed0134d3cda6382385a734ae0158eb7df6b142"
}
],
"title": "bpf: Mark the zero register precise for a register-form NULL check",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
}
}