Skip to main content

Linux Kernel EUVDEUVD-2026-21717

| CVE-2026-31413 HIGH
Out-of-bounds Read (CWE-125)
2026-04-12 Linux GHSA-q7pg-xjgf-wr6f
7.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain local shell access
  2. Delivery
    Craft BPF program with OR operation triggering verifier fork
  3. Exploit
    Submit program via BPF syscall
  4. Install
    Verifier approves with incorrect bounds
  5. C2
    Runtime executes with out-of-bounds access
  6. Execute
    Corrupt kernel memory structures
  7. Impact
    Escalate to root privileges

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires local code execution with sufficient privileges to invoke the BPF syscall (typically requires CAP_BPF or CAP_SYS_ADMIN capability, or unprivileged BPF must be enabled via kernel.unprivileged_bpf_disabled=0 sysctl). Attacker must be able to load BPF programs into the kernel, which is the default capability for root users and may be available to unprivileged users on systems with unprivileged BPF enabled. No specific non-default configuration of the BPF subsystem is required beyond the ability to load programs. The vulnerability exists in the verifier logic itself, so any BPF program type (tracing, networking, cgroup, etc.) that passes through maybe_fork_scalars() during verification is potentially exploitable. Does not require specific hardware, file system configuration, or network conditions. User interaction is not required (CVSS UI:N). Attack complexity is low (CVSS AC:L) once local access is achieved, though successfully crafting the precise BPF bytecode sequence to trigger exploitable verifier/runtime divergence requires technical sophistication.

Impact

Real-world risk is moderate despite the high CVSS score of 7.8. The CVSS vector (AV:L/AC:L/PR:L/UI:N) correctly indicates local access with low attack complexity and low privileges required, meaning any local user can potentially exploit this without special conditions. The technical impact is severe: arbitrary kernel memory access leading to privilege escalation to root, which justifies the High ratings for Confidentiality, Integrity, and Availability. However, the EPSS score of 0.01% (1st percentile) suggests security researchers assess widespread exploitation as highly unlikely. This is NOT listed in CISA KEV, indicating no confirmed active exploitation in the wild. The vulnerability requires an attacker to already have local code execution (PR:L), which significantly limits attack surface compared to remote vulnerabilities. The exploit is non-trivial: attackers must craft specific BPF programs that trigger the verifier fork condition with carefully chosen scalar ranges and then leverage the verifier/runtime divergence to achieve useful out-of-bounds access. Patches are available across multiple stable kernel branches (6.12.80, 6.18.21, 6.19.11, 7.0-rc5), reducing exposure window for maintained systems. Priority should be HIGH for systems running unprivileged user namespaces or eBPF (which may allow unprivileged BPF program loading), MEDIUM for standard server deployments where local access is already privileged, and LOW for systems with disabled BPF or strict user access controls.

Exploit ScenarioDerived

A malicious local user with shell access crafts a BPF program containing a bitwise OR instruction where the destination register has been constrained to signed range [-1, 0] through prior operations, then performs BPF_OR with a carefully chosen constant. The verifier incorrectly forks state, believing one execution path results in register value 0 when runtime actually produces the constant value K. The attacker then uses this register in a bounds check for a BPF map access. The verifier approves the program based on the incorrect belief that the register is 0 (within bounds), but at runtime the register holds K (out of bounds), allowing the attacker to read or write arbitrary kernel memory. This memory corruption is leveraged to modify kernel data structures, disable security mechanisms, or hijack control flow to escalate to root privileges.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 27, 2026

A logic error in the Linux kernel's BPF (Berkeley Packet Filter) verifier allows local attackers with low privileges to exploit verifier/runtime divergence and achieve out-of-bounds map access, enabling arbitrary memory read/write and privilege escalation. The flaw affects the maybe_fork_scalars() function which incorrectly handles BPF_OR operations during state forking, tracking destination register as 0 when the runtime value is K (the constant operand). Patches are available from kernel.org for versions 6.12.80, 6.18.21, 6.19.11, and 7.0-rc5. EPSS score is extremely low (0.01%) and no public exploit or active exploitation has been identified at time of analysis.

RemediationAI

Upgrade to patched Linux kernel versions: 6.12.80 or later for 6.12.x series, 6.18.21 or later for 6.18.x series, 6.19.11 or later for 6.19.x series, or 7.0-rc5 and later for development branch. The upstream fix is implemented in commits d13281ae7ea8902b21d99d10a2c8caf0bdec0455 (mainline), 342aa1ee995ef5bbf876096dc3a5e51218d76fa4, 58bd87d0e69204dbd739e4387a1edb0c4b1644e7, and c845894ebd6fb43226b3118d6b017942550910c5 (stable branches), available at https://git.kernel.org/stable/. The fix modifies maybe_fork_scalars() to pass env->insn_idx instead of env->insn_idx + 1 to push_stack(), forcing the pushed verifier path to re-execute the ALU instruction with the forked register state and naturally compute the correct result. For systems unable to immediately patch, disable unprivileged BPF program loading via sysctl kernel.unprivileged_bpf_disabled=1 (prevents non-root users from loading BPF programs, eliminating local attack vector but breaks legitimate unprivileged BPF use cases like unprivileged container monitoring). Alternatively, disable BPF entirely if not required via kernel boot parameter bpf.jit_enable=0 or CONFIG_BPF_SYSCALL=n at compile time (breaks all BPF-dependent functionality including networking filters, tracing, and security monitoring tools). Restrict local user access and monitor for suspicious BPF syscall activity via audit rules.

Affected VersionsENISA

Linux patch: 6.19.11
Linux e52567173ba86dbffb990595fbe60e2e83899372 <d13281ae7ea8902b21d99d10a2c8caf0bdec0455
Linux patch: 0
Linux dea9989a3f3961faede93752cd81eb5a9514d911 <342aa1ee995ef5bbf876096dc3a5e51218d76fa4
Linux 4c122e8ae14950cf6b59d208fc5160f7c601e746 <58bd87d0e69204dbd739e4387a1edb0c4b1644e7
Linux patch: 6.18.21
Linux patch: 6.12.80
Linux bffacdb80b93b7b5e96b26fad64cc490a6c7d6c7 <c845894ebd6fb43226b3118d6b017942550910c5
Linux 7.0-rc1
Linux patch: 7.0-rc5

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability resides in the Linux kernel's extended Berkeley Packet Filter (eBPF) verifier subsystem, specifically in the maybe_fork_scalars() function responsible for scalar value tracking during static program analysis. The verifier performs abstract interpretation to prove BPF programs are safe before execution. When analyzing bitwise operations (BPF_AND, BPF_OR) with constant operands, the verifier forks execution paths to track different register values. The bug occurs when a destination register has signed range [-1, 0]: the verifier pushes a new path with dst=0 and continues the current path with dst=-1. For BPF_AND this is mathematically sound (0 & K = 0), but for BPF_OR it creates incorrect state (0 | K = K, not 0). This verifier/runtime mismatch violates the fundamental safety guarantee of eBPF: the verifier believes a register contains 0 when runtime holds K, allowing bounds checks to pass in the verifier while runtime accesses out-of-bounds memory regions. This is a classic example of abstract interpretation soundness failure, where imprecise modeling of concrete semantics creates exploitable divergence. The CPE strings indicate broad applicability across Linux kernel versions that include the eBPF verifier.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SUSE 5.2 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Apr 27, 2026 - 14:22 NVD
7.8 (HIGH)
Patch released
Apr 12, 2026 - 14:30 nvd
Patch available
CVE Published
Apr 12, 2026 - 05:36 nvd
HIGH 7.8

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2026-31413 is a Linux kernel privilege escalation vulnerability affecting the BPF verifier that allows low-privileged local users to gain root access through memory manipulation. This directly threatens any organization running vulnerable Linux kernels in multi-tenant, containerized, or shared-access environments where local account compromise is a realistic attack path. Patching is straightforward and should be prioritized for systems with untrusted local users.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is infeasible, restrict BPF access via sysctl (kernel.unprivileged_bpf_disabled=1) to limit exploitation surface until patching is completed.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
Social Media
5
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy