powerpc/bpf: Fix detecting BPF atomic instructions
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0d435b6d94b05dcfd836d758a63145aa566618e2, Kernel 419ac821766cbdb9fd85872bb3f1a589df05c94c and Kernel 7284dab07e4d51d453cc42851fae9ec4fac6ef2f.
In the Linux kernel, the following vulnerability has been resolved: powerpc/bpf: Fix detecting BPF atomic instructions Commit 91c960b0056672 ("bpf: Rename BPF_XADD and prepare to encode other atomics in .imm") converted BPF_XADD to BPF_ATOMIC and added a way to distinguish instructions based on the immediate field. Existing JIT implementations were updated to check for the immediate field and to reject programs utilizing anything more than BPF_ADD (such as BPF_FETCH) in the immediate field. However, the check added to powerpc64 JIT did not look at the correct BPF instruction. Due to this, such programs would be accepted and incorrectly JIT'ed resulting in soft lockups, as seen with the atomic bounds test. Fix this by looking at the correct immediate value.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =5.12, >=91c960b0056672e74627776655c926388350fa30 <0d435b6d94b05dcfd836d758a63145aa566618e2, >=91c960b0056672e74627776655c926388350fa30 <419ac821766cbdb9fd85872bb3f1a589df05c94c, >=91c960b0056672e74627776655c926388350fa30 <7284dab07e4d51d453cc42851fae9ec4fac6ef2f | 0d435b6d94b05dcfd836d758a63145aa566618e2, 419ac821766cbdb9fd85872bb3f1a589df05c94c, 7284dab07e4d51d453cc42851fae9ec4fac6ef2f |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket