{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-31413","published":"2026-04-12T06:16:20.050000Z","last_modified":"2026-06-17T10:33:40.053000Z","status":"Analyzed","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","primary":false},"auth":true,"cwes":["CWE-125"],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.12.75","version_end_excluding":"6.12.80"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.18.16","version_end_excluding":"6.18.21"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.19.6","version_end_excluding":"6.19.11"}],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux_kernel"],"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2026-31413/","html_en":"/en/cve/CVE-2026-31413/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-31413","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-31413"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix unsound scalar forking in maybe_fork_scalars() for BPF_OR\n\nmaybe_fork_scalars() is called for both BPF_AND and BPF_OR when the\nsource operand is a constant.  When dst has signed range [-1, 0], it\nforks the verifier state: the pushed path gets dst = 0, the current\npath gets dst = -1.\n\nFor BPF_AND this is correct: 0 & K == 0.\nFor BPF_OR this is wrong:    0 | K == K, not 0.\n\nThe pushed path therefore tracks dst as 0 when the runtime value is K,\nproducing an exploitable verifier/runtime divergence that allows\nout-of-bounds map access.\n\nFix this by passing env->insn_idx (instead of env->insn_idx + 1) to\npush_stack(), so the pushed path re-executes the ALU instruction with\ndst = 0 and naturally computes the correct result for any opcode.","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/342aa1ee995ef5bbf876096dc3a5e51218d76fa4","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/58bd87d0e69204dbd739e4387a1edb0c4b1644e7","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/c845894ebd6fb43226b3118d6b017942550910c5","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/d13281ae7ea8902b21d99d10a2c8caf0bdec0455","tags":["Patch"]}]}}