Bug 2389497 (CVE-2025-38607) - CVE-2025-38607 kernel: bpf: handle jset (if a & b ...) as a jump in CFG computation
Summary: CVE-2025-38607 kernel: bpf: handle jset (if a & b ...) as a jump in CFG c...
Keywords:
Status: NEW
Alias: CVE-2025-38607
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-08-19 18:04 UTC by OSIDB Bzimport
Modified: 2026-06-29 20:30 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-08-19 18:04:12 UTC
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).

Comment 1 Jon Moroney 2025-08-19 21:53:15 UTC Comment hidden (spam)

Note You need to log in before you can comment on or make changes to this bug.