patchminder
Proof of concept · GitHub CVE-2026-31413

Vulnerabilityin Linux.

Published 12 Apr 2026 · Updated 5 Aug 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
High 7.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.2% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 6.12.80, 6.18.21, 6.19.11
In plain words

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.

What to do now
  • Upgrade Linux to 6.12.80, 6.18.21, 6.19.11 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Linux
6.12.75 to before 6.12.80
6.12.80
CVE record
Linux
6.18.16 to before 6.18.21
6.18.21
CVE record
Linux
6.19.6 to before 6.19.11
6.19.11
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 9 Mar 2026
    CVE ID reserved by Linux.
  2. 12 Apr 2026
    Published in the CVE List.
  3. 12 Apr 2026
    First public proof of concept on GitHub.
  4. 5 Aug 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub).

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
1 repository
GitHubno warning signs foundRat5ak/CVE-2026-31413-BPF-Container-Escape1 stars · created 12 Apr 2026CVE-2026-31413: BPF verifier soundness bug · container escape

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Linux vulnerabilities

References
Cite this page

Patchminder. CVE-2026-31413: Vulnerability in Linux. https://patchminder.com/cve/cve-2026-31413/ (accessed 5 December 2026).