CVE-2025-38607
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.28% (higher than 12% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 14c8552db64476ffc27c13dc6652fc0dac31c0ba before 65eb166b8636365ad3d6e36d50a7c5edfe6cc66e, from 14c8552db64476ffc27c13dc6652fc0dac31c0ba before 261b30ad1516f4b9edd500aa6e8d6315c8fc109a, from 14c8552db64476ffc27c13dc6652fc0dac31c0ba before 3157f7e2999616ac91f4d559a8566214f74000a5, 6.15
Not affected: before 6.15, from 6.15.10 up to 6.15.*, from 6.16.1 up to 6.16.*, from 6.17 up to *
CVE List
linux linux_kernelfrom 6.15 before 6.15.10, from 6.16 before 6.16.1NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

What each source says

CVE List

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).

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bpf: manejar jset (si a & b ...) como un salto en el cálculo CFG. BPF_JSET es un salto condicional y actualmente verifier.c:can_jump() no lo detecta. Esto puede provocar registros activos y cálculos SCC incorrectos. Por ejemplo, en el siguiente ejemplo: 1: r0 = 1; 2: r2 = 2; 3: si r1 & 0x7 goto +1; 4: salir; 5: r0 = r2; 6: salir; Sin esta corrección, insn_successors(3) solo devolverá (4), se omitiría un salto a (5) y r2 no se marcaría como activo en (3).

References

Sources

SourceRecordLicence
CVE ListCVE-2025-38607 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-38607 changed 2026-07-30Public domain