Linux
bpf: handle jset (if a & b ...) as a jump in CFG computation
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 14c8552db64476ffc27c13dc6652fc0dac31c0ba, < 65eb166b8636365ad3d6e36d50a7c5edfe6cc66e
- >= 14c8552db64476ffc27c13dc6652fc0dac31c0ba, < 261b30ad1516f4b9edd500aa6e8d6315c8fc109a
- >= 14c8552db64476ffc27c13dc6652fc0dac31c0ba, < 3157f7e2999616ac91f4d559a8566214f74000a5
Fixed in 65eb166b8636365ad3d6e36d50a7c5edfe6cc66e, 261b30ad1516f4b9edd500aa6e8d6315c8fc109a, 3157f7e2999616ac91f4d559a8566214f74000a5
- 6.15
Fixed in 0, 6.15.10, 6.16.1, 6.17
Mitigation
Upgrade Linux to 65eb166b8636365ad3d6e36d50a7c5edfe6cc66e or 261b30ad1516f4b9edd500aa6e8d6315c8fc109a or 3157f7e2999616ac91f4d559a8566214f74000a5 or later.
Upgrade Linux to 0 or 6.15.10 or 6.16.1 or 6.17 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.