CVE-2021-47317powerpc/bpf: Fix detecting BPF atomic instructions
- 7.8HighCVSS base score
- 0.19%Exploitation in 30 daysEPSS · top 92% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
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.
Timeline
ID reserved
By Linux
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| LinuxCNA (assigner) | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | Low3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L |
- EPSS (exploitation in 30 days)
- 0.19% · top 92% of all CVEs (18 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Affected products
- affected 91c960b0056672e74627776655c926388350fa30 – < 7284dab07e4d51d453cc42851fae9ec4fac6ef2f
- affected 91c960b0056672e74627776655c926388350fa30 – < 0d435b6d94b05dcfd836d758a63145aa566618e2
- affected 91c960b0056672e74627776655c926388350fa30 – < 419ac821766cbdb9fd85872bb3f1a589df05c94c
- affected 5.12
- unaffected < 5.12
- unaffected 5.12.19 – ≤ 5.12.*
- unaffected 5.13.4 – ≤ 5.13.*
- unaffected 5.14 – ≤ *
References
References3
- https://git.kernel.org/stable/c/7284dab07e4d51d453cc42851fae9ec4fac6ef2f (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/0d435b6d94b05dcfd836d758a63145aa566618e2 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/419ac821766cbdb9fd85872bb3f1a589df05c94c (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-34322 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-47317)Record last updated .