CVE-2025-38607
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-08-19

Last updated on: 2025-11-26

Assigner: kernel.org

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).
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-08-19
Last Modified
2025-11-26
Generated
2026-05-27
AI Q&A
2025-08-19
EPSS Evaluated
2026-05-25
NVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
linux linux_kernel From 5.15.160 (inc) to 5.16 (inc)
linux linux_kernel From 5.15.160 (inc) to 5.16 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-NVD-CWE-noinfo
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is in the Linux kernel's BPF (Berkeley Packet Filter) verifier. The issue is that the verifier does not correctly handle the BPF_JSET instruction, which is a conditional jump based on a bitwise AND operation. Because the verifier's function can_jump() does not recognize BPF_JSET as a jump, it can miss certain jump paths in the control flow graph (CFG). This leads to incorrect computation of live registers and SCC (Strongly Connected Components), potentially causing the verifier to incorrectly analyze the program's behavior.


How can this vulnerability impact me? :

This vulnerability can cause the BPF verifier to incorrectly analyze BPF programs by missing certain jump paths. As a result, it may fail to mark some registers as live when they actually are, which could lead to incorrect program verification. This might allow malformed or malicious BPF programs to be accepted by the kernel, potentially leading to unexpected behavior or security issues within the kernel or applications relying on BPF.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart