CVE-2025-38607

bpf: handle jset (if a & b ...) as a jump in CFG computation

MEDIUM
5.5
CVSS Score
Published: August 19, 2025 at 05:03 PM UTC
Updated: August 5, 2026 at 12:44 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: handle jset (if a & b ...) as a jump in CFG computation BPF_JSET is a conditional jump and currently verifier.c:can_jump() does not know about that. This can lead to incorrect live registers and SCC computation. E.g. in the following example: 1: r0 = 1; 2: r2 = 2; 3: if r1 & 0x7 goto +1; 4: exit; 5: r0 = r2; 6: exit; W/o this fix insn_successors(3) will return only (4), a jump to (5) would be missed and r2 won't be marked as alive at (3).

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.15 ≤ v < 6.15.106.15 ≤ v < 6.16.16.15 ≤ v < 6.176.16 ≤ v < 6.16.114c8552db64476ffc27c13dc6652fc0dac31c0ba6.15
Vendor states this is fixed in 261b30ad1516f4b9edd500aa6e8d6315c8fc109a (fixed)
Vendor states this is fixed in 3157f7e2999616ac91f4d559a8566214f74000a5 (fixed)
Vendor states this is fixed in 65eb166b8636365ad3d6e36d50a7c5edfe6cc66e (fixed)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.15.10 (unaffected)
Vendor states this is fixed in 6.16.1 (unaffected)
Vendor states this is fixed in 6.17 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/261b30ad1516f4b9edd500aa6e8d6315c8fc109a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3157f7e2999616ac91f4d559a8566214f74000a5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/65eb166b8636365ad3d6e36d50a7c5edfe6cc66e

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card