CVE-2026-31413
published high CVSS 3.1 · 7.8bpf: Fix unsound scalar forking in maybe_fork_scalars() for BPF_OR
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxdea9989a3f3961faede93752cd81eb5a9514d911 to < 342aa1ee995ef5bbf876096dc3a5e51218d76fa4 · 4c122e8ae14950cf6b59d208fc5160f7c601e746 to < 58bd87d0e69204dbd739e4387a1edb0c4b1644e7 · e52567173ba86dbffb990595fbe60e2e83899372 to < d13281ae7ea8902b21d99d10a2c8caf0bdec0455 · bffacdb80b93b7b5e96b26fad64cc490a6c7d6c7 to < c845894ebd6fb43226b3118d6b017942550910c5 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.12.75 to < 6.12.80 · 6.18.16 to < 6.18.21 · 6.19.6 to < 6.19.11 · Other versions: unaffected | Affected | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1646 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1746 | Fixed | Not stated | Amazon Linux assessment |
| Oracle Linux | 10 | kernel-uekaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uekaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
Show 98 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 10 | kernel-uekx86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uekx86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-docaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-docaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-modules-usbaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-modules-usbaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-modules-usbx86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-modules-usbx86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessx86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessx86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-toolsaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-toolsaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek-toolsx86_64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek-toolsx86_64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek64kaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek64kaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
| Oracle Linux | 10 | kernel-uek64k-coreaarch64 | Advisory build | 0:6.12.0-202.76.4.1.el10uek | ELSA-2026-50260 |
| Oracle Linux | 10 | kernel-uek64k-coreaarch64 | Advisory build | 0:6.12.0-204.92.4.2.el10uek | ELSA-2026-50372 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix unsound scalar forking in maybe_fork_scalars() for BPF_OR maybe_fork_scalars() is called for both BPF_AND and BPF_OR when the source operand is a constant. When dst has signed range [-1, 0], it forks the verifier state: the pushed path gets dst = 0, the current path gets dst = -1. For BPF_AND this is correct: 0 & K == 0. For BPF_OR this is wrong: 0 | K == K, not 0. The pushed path therefore tracks dst as 0 when the runtime value is K, producing an exploitable verifier/runtime divergence that allows out-of-bounds map access. Fix this by passing env->insn_idx (instead of env->insn_idx + 1) to push_stack(), so the pushed path re-executes the ALU instruction with dst = 0 and naturally computes the correct result for any opcode.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable verifier path is reached through the local bpf() syscall during BPF_PROG_LOAD, not through a remote protocol. A plausible path is an attacker-supplied socket-filter BPF program using attacker-created maps. AC:L - The attacker controls the BPF bytecode, map layout, and scalar values needed to trigger the verifier/runtime divergence. There is no race or external condition beyond attacker control. PR:L - Exploitation requires a local user able to load BPF programs, which can be a basic unprivileged user where unprivileged BPF is enabled or a delegated BPF capability path exists. It does not inherently require real init-namespace root for the vulnerable verifier logic. UI:N - No victim action is required after the attacker loads and runs the crafted BPF program. The trigger is fully under the local attacker's control. S:U - This is a standard kernel privilege-escalation style BPF verifier flaw within the same host kernel security authority. It does not cross a VM, hypervisor, or IOMMU boundary. C:H - The verifier/runtime divergence allows out-of-bounds map-value reads, which can expose adjacent kernel heap data and be developed into broader kernel memory disclosure. BPF verifier OOB map-access bugs are commonly exploitable as kernel read primitives. I:H - The same incorrect bounds reasoning can be applied to writes through map-value pointers, enabling out-of-bounds kernel heap corruption. That is sufficient for arbitrary kernel memory modification or code execution in a defensible worst case. A:H - Out-of-bounds BPF memory access can corrupt kernel memory or fault the kernel, causing an oops, panic, or hang. Even failed exploitation can be repeatedly triggered by the local attacker.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | dea9989a3f3961faede93752cd81eb5a9514d911 to < 342aa1ee995ef5bbf876096dc3a5e51218d76fa4 (affected · git)4c122e8ae14950cf6b59d208fc5160f7c601e746 to < 58bd87d0e69204dbd739e4387a1edb0c4b1644e7 (affected · git)e52567173ba86dbffb990595fbe60e2e83899372 to < d13281ae7ea8902b21d99d10a2c8caf0bdec0455 (affected · git)bffacdb80b93b7b5e96b26fad64cc490a6c7d6c7 to < c845894ebd6fb43226b3118d6b017942550910c5 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.12.75 to < 6.12.80 (affected · semver)6.18.16 to < 6.18.21 (affected · semver)6.19.6 to < 6.19.11 (affected · semver)Default: unaffected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
bpf: Fix unsound scalar forking in maybe_fork_scalars() for BPF_OR
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8d2e229e8e5d9ca2cc0563d28b10eda0a72919c0ee580186cc3f3ab3fee3fe0d
- Ingested
- 23 Sep 2026, 09:09:24 UTC
- Source record
- Official CVE record