bpf: fix overflow check in adjust_jmp_off()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.10.36.11In the Linux kernel, the following vulnerability has been resolved:
bpf: fix overflow check in adjust_jmp_off()
adjust_jmp_off() incorrectly used the insn->imm field for all overflow check, which is incorrect as that should only be done or the BPF_JMP32 | BPF_JA case, not the general jump instruction case. Fix it by using insn->off for overflow check in the general case.
From the CVE record · Linux
The Linux kernel’s BPF adjust_jmp_off() function uses the wrong instruction field when checking for overflow in general jump instructions. This can cause incorrect overflow validation; the input does not specify an attacker outcome or the access conditions needed to trigger it.
Teams running the Linux kernel should check their deployments; affected versions are not specified.