Skip to main content

Linux Kernel CVE-2025-40169

HIGH
2025-11-12 416baaa9-dc9f-4396-8d5f-8c081fb06d67
High
Disputed · 7.8 Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

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

  1. Access
    Obtain local BPF-load capability
  2. Delivery
    Craft ALU BPF_DIV/MOD insn with negative off
  3. Exploit
    Bypass 'off > 1' verifier check
  4. Execution
    Invalid instruction accepted by verifier
  5. Impact
    Corrupt/leak kernel state

Vulnerability Assessment

Exploitation Conditions

Exploitation requires local access and the ability to load eBPF programs into the kernel - i.e. CAP_BPF/CAP_SYS_ADMIN, or a system where unprivileged BPF is enabled (kernel.unprivileged_bpf_disabled=0). The specific trigger is submitting an ALU operation (notably BPF_DIV or BPF_MOD in check_alu_op) whose signed 16-bit 'off' field is negative, which the pre-patch 'insn->off > 1' comparison wrongly accepts. Limiting factors: no remote vector (AV:L), no user interaction, but the attacker must already run code locally and hold BPF-loading privilege; hardened distributions that disable unprivileged BPF materially raise the bar, and systems without accessible BPF loading are not exploitable.

Impact

The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, base 7.8) describes a local, low-complexity attack requiring some privileges but no user interaction, with high confidentiality, integrity and availability impact - consistent with a kernel verifier bypass. Real-world urgency is tempered: EPSS is 0.03% (10th percentile), there is no CISA KEV listing, and no public exploit identified at time of analysis, so this is not evidence of widespread exploitation. The supplied 'Information Disclosure' tag is narrower than the C:H/I:H/A:H vector, and a verifier bounds bypass could plausibly enable more than disclosure - treat the tag as a partial signal, not a ceiling. Practical exploitability further depends on whether unprivileged eBPF loading is permitted; on modern hardened systems kernel.unprivileged_bpf_disabled=1 raises the effective privilege bar, which aligns with the PR:L rating rather than PR:N.

Exploit ScenarioDerived

A local user (or a compromised low-privileged process/container with permission to load BPF programs) crafts a BPF program containing an ALU BPF_DIV or BPF_MOD instruction with a negative 'off' value that the flawed 'off > 1' check fails to reject. The malformed instruction passes verification and reaches execution paths it should never have, which an attacker can chain toward information disclosure or kernel state corruption. No public proof-of-concept has been identified at time of analysis, and exploitation requires local access with BPF-loading capability.

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

AnalysisAIv3 – Jul 30, 2026

Local privilege-relevant memory corruption in the Linux kernel eBPF verifier arises because check_alu_op() validated the signed 16-bit instruction offset with 'insn->off > 1', which silently accepts negative values such as -1 instead of only 0 and 1. A local user able to load BPF programs can submit malformed ALU instructions (BPF_DIV/BPF_MOD) that bypass verifier bounds, undermining the safety guarantees the verifier is meant to enforce. No public exploit identified at time of analysis; EPSS is negligible (0.03%), and Ubuntu has shipped fixes.

Earlier versions of this analysis (2)
v2 Jul 30, 2026 - 08:47 cvss changed CVSS 7.8

Improper offset validation in the Linux kernel's eBPF verifier (check_alu_op) lets a local user with BPF-loading capability submit malformed ALU instructions carrying negative 16-bit offsets that the verifier was supposed to reject, potentially leading to memory corruption and privilege escalation on affected kernels. The signed-comparison bug means the guard 'insn->off > 1' silently accepted values like -1 instead of restricting the field to 0 or 1. There is no public exploit identified at time of analysis and EPSS is very low (0.03%), but the flaw is patched upstream and via Ubuntu USN-8125-1/USN-8126-1.

v1 Mar 28, 2026 - 19:21

In the Linux kernel, the following vulnerability has been resolved: bpf: Reject negative offsets for ALU ops When verifying BPF programs, the check_alu_op() function validates instructions with ALU.

RemediationAI

Upstream fix available as stable-tree commits (21167bf70dbe, 3bce44b344040, 5017c302ca4b, 55c0ced59fe1); a released patched tag is not independently confirmed from the provided data, so apply your distribution's updated kernel rather than a specific mainline version number. Ubuntu users should update to the fixed kernel packages per USN-8126-1 and USN-8125-1 and reboot into the new kernel. As a compensating control until patched, disable unprivileged eBPF by setting kernel.unprivileged_bpf_disabled=1 (sysctl), which removes the low-privilege attack surface at the cost of breaking any workload that relies on unprivileged BPF loading; on systems where all BPF users are already privileged this has minimal impact. Where feasible, also restrict CAP_BPF/CAP_SYS_ADMIN grants to trusted workloads.

Affected ProductsAI

The affected component is the Linux kernel's eBPF verifier (kernel/bpf/verifier.c, check_alu_op). Exact vulnerable version ranges are not enumerated in the provided data; the fix landed via multiple stable-tree commits (git.kernel.org commits 21167bf70dbe, 3bce44b34404, 5017c302ca4b, 55c0ced59fe1) indicating backports across several stable series. Distribution exposure is confirmed for Ubuntu, which addressed it in USN-8126-1 (https://ubuntu.com/security/notices/USN-8126-1) and USN-8125-1 (https://ubuntu.com/security/notices/USN-8125-1); consult those advisories for the precise kernel package versions per release.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

The issue lives in the Linux kernel's eBPF (extended Berkeley Packet Filter) in-kernel verifier, specifically check_alu_op() in kernel/bpf/verifier.c, which statically validates every BPF instruction before JIT/interpretation. BPF instructions carry a signed 16-bit 'off' field; for arithmetic ALU ops the offset is only meaningful as 0 (default) or 1 (the signed division/modulo variants BPF_DIV/BPF_MOD). The flawed guard compared a signed value with '> 1', so negative offsets slipped past validation, letting semantically invalid instructions reach later processing stages. This is a signed-comparison / improper-input-validation class defect (conceptually CWE-20/CWE-697), the kind of verifier weakness that erodes the trust boundary eBPF relies on to run unprivileged bytecode safely.

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

Sources disagree (Low–High)
Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Local BPF loading requires some privilege (PR:L) and no interaction; a verifier bounds bypass plausibly yields high confidentiality, integrity and availability impact within the kernel.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 5.8 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
Red Hat 5.5 LOW

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

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

Lifecycle Timeline

5
Analysis Updated
Jul 30, 2026 - 08:47 vuln.today
v3 - CVSS changed
Analysis Updated
Jul 30, 2026 - 08:47 vuln.today
v2 - CVSS changed
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
Patch released
Mar 28, 2026 - 19:30 nvd
Patch available
CVE Published
Nov 12, 2025 - 11:15 nvd
N/A

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

bpf: Reject negative offsets for ALU ops

When verifying BPF programs, the check_alu_op() function validates instructions with ALU operations. The 'offset' field in these instructions is a signed 16-bit integer.

The existing check 'insn->off > 1' was intended to ensure the offset is either 0, or 1 for BPF_MOD/BPF_DIV. However, because 'insn->off' is signed, this check incorrectly accepts all negative values (e.g., -1).

This commit tightens the validation by changing the condition to '(insn->off != 0 && insn->off != 1)'. This ensures that any value other than the explicitly permitted 0 and 1 is rejected, hardening the verifier against malformed BPF programs.

Executive ViewAI

Why It Matters

A local privilege escalation vulnerability in the Linux kernel eBPF subsystem (CVE-2025-40169) allows unprivileged users to load malformed BPF programs that bypass safety verification, potentially leading to code execution with elevated privileges. Organizations operating Linux systems with user-local access to BPF capability face risk of unauthorized privilege escalation and system compromise. Ubuntu has released patches addressing this flaw.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Prevalence
Ubiquitous
Linux kernel with eBPF underpins the vast majority of server and cloud deployments
Data Quality
4 sources
Confidence: Medium

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

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

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/hpc/warewulf4-x86_64/sle-hpc-node:latest Image SLES15-SP6 Image SLES15-SP6-BYOS Image SLES15-SP6-BYOS-Azure Image SLES15-SP6-BYOS-EC2 Image SLES15-SP6-BYOS-GCE Image SLES15-SP6-CHOST-BYOS Image SLES15-SP6-CHOST-BYOS-Aliyun Image SLES15-SP6-CHOST-BYOS-Azure Image SLES15-SP6-CHOST-BYOS-EC2 Image SLES15-SP6-CHOST-BYOS-GCE Image SLES15-SP6-CHOST-BYOS-GDC Image SLES15-SP6-CHOST-BYOS-SAP-CCloud Image SLES15-SP6-EC2 Image SLES15-SP6-EC2-ECS-HVM Image SLES15-SP6-GCE Image SLES15-SP6-HPC-BYOS Image SLES15-SP6-HPC-BYOS-Azure Image SLES15-SP6-HPC-BYOS-EC2 Image SLES15-SP6-HPC-BYOS-GCE Image SLES15-SP6-HPC-EC2 Image SLES15-SP6-HPC-GCE Image SLES15-SP6-Hardened-BYOS Image SLES15-SP6-Hardened-BYOS-Azure Image SLES15-SP6-Hardened-BYOS-EC2 Image SLES15-SP6-Hardened-BYOS-GCE Image SLES15-SP6-SAP Image SLES15-SP6-SAP-Azure Image SLES15-SP6-SAP-EC2 Image SLES15-SP6-SAP-GCE Image SLES15-SP6-SAPCAL Image SLES15-SP6-SAPCAL-Azure Image SLES15-SP6-SAPCAL-EC2 Image SLES15-SP6-SAPCAL-GCE Affected
Container suse/sl-micro/6.0/baremetal-os-container:latest Container suse/sl-micro/6.1/baremetal-os-container:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.95 Container suse/sl-micro/6.1/base-os-container:2.2.1-5.80 Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.114 Container suse/sl-micro/6.1/kvm-os-container:2.2.1-5.82 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.116 Container suse/sl-micro/6.1/rt-os-container:2.2.1-5.55 Affected

References

Advisories & patches
ADVISORY https://ubuntu.com/security/notices/USN-8125-1 ADVISORY https://ubuntu.com/security/notices/USN-8126-1 ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4393/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4422/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4505/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4516/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4517/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4521/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20012/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20015/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20021/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20039/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20059/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20334/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20473/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20478/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20496/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20519/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20562/ REF https://git.kernel.org/stable/c/21167bf70dbe400563e189ac632258d35eda38b5 REF https://git.kernel.org/stable/c/3bce44b344040e5eef3d64d38b157c15304c0aab REF https://git.kernel.org/stable/c/5017c302ca4b2a45149ad64e058fa2d5623c068f REF https://git.kernel.org/stable/c/55c0ced59fe17dee34e9dfd5f7be63cbab207758

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