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
Share

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
qualitative

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

7
Analysis Updated
Jul 30, 2026 - 08:47 vuln.today
v3 (cvss_changed)
Analysis Updated
Jul 30, 2026 - 08:47 vuln.today
v2 (cvss_changed)
Re-analysis Queued
Jul 30, 2026 - 06:37 vuln.today
cvss_changed
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
Patch released
Mar 28, 2026 - 19:30 nvd
Patch available
Analysis Generated
Mar 28, 2026 - 19:21 vuln.today
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.

AnalysisAI

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.

Technical ContextAI

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.

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.

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.

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

Share

CVE-2025-40169 vulnerability details – vuln.today

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