bpf: Don't predict JMP32 pointer vs zero comparisons
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel e51179a4e09846f8fd0f26a05068520de2b301bf, Kernel 6e1544986536734166176c3add504add23bcbd15, Kernel a4d7f94c1ca914469ced665ec2f98be669aef462 and 6 more.
In the Linux kernel, the following vulnerability has been resolved: bpf: Don't predict JMP32 pointer vs zero comparisons Consider the following program: r1 = map_value; /* low 32 bits are zero at runtime */ r6 = 0xdead000000000000; if w1 != 0 goto l1; l0: r1 += r6; r2 = *(u64 *)(r1 + 0); exit; l1: r6 = 0; goto l0; At the moment is_branch_taken() reports the jump as always taken, because it does not distinguish between BPF_JMP and BPF_JMP32 comparisons when processing 'if w1 != 0 ...'.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=cac616db39c207dc63465a4e05c6ce0e60b2cce4 <e51179a4e09846f8fd0f26a05068520de2b301bf, >=cac616db39c207dc63465a4e05c6ce0e60b2cce4 <6e1544986536734166176c3add504add23bcbd15, >=cac616db39c207dc63465a4e05c6ce0e60b2cce4 <a4d7f94c1ca914469ced665ec2f98be669aef462, >=cac616db39c207dc63465a4e05c6ce0e60b2cce4 <d16f0eafcaa62e677a2b5b0dabc1f8d31dfe3d4d, >=cac616db39c207dc63465a4e05c6ce0e60b2cce4 <e2ae33247e8b2dbe9d116d3e61cadf6d548339c6, =5.8 | e51179a4e09846f8fd0f26a05068520de2b301bf, 6e1544986536734166176c3add504add23bcbd15, a4d7f94c1ca914469ced665ec2f98be669aef462, d16f0eafcaa62e677a2b5b0dabc1f8d31dfe3d4d, e2ae33247e8b2dbe9d116d3e61cadf6d548339c6 |
| linux-kernel: Kernel | >=6.13.0 <6.18.53, >=6.19.0 <7.2.7, >=6.7.0 <6.12.111, >=5.8.0 <6.6.160 | 6.18.53, 7.2.7, 6.12.111, 6.6.160 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket