# CVE-2026-90317: bpf: Invalidate RCU pointers after final spin unlock

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-09-17T16:08:35.537Z
- Modified: 2026-10-19T09:19:25.673Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Invalidate RCU pointers after final spin unlock

In a sleepable BPF program, a spin lock can provide the only RCU protection
for a kptr. The final bpf_spin_unlock() ends that protection, but the
verifier leaves the pointer valid. Another CPU can then free the object
before the pointer is used. A capability-limited runtime PoC triggered a
task_struct use-after-free in __bpf_get_task_stack().

Record whether the program is in an RCU-protected context before releasing
the lock. Invalidate RCU-protected pointers only when the unlock leaves the
final such context. This preserves valid pointers in non-sleepable programs
and inside an explicit RCU read-side section.

(As written by CVE List.)

## Affected

- Linux Linux: from 5861d1e8dbc4e1a03ebffb96ac041026cdd34c07 before f81972b235f3ebfa40bdce8bcfee3f242fb24065; from 5861d1e8dbc4e1a03ebffb96ac041026cdd34c07 before 7ae71629357d0a6d0bdadb929c7b296d5b7e61c2; from 5861d1e8dbc4e1a03ebffb96ac041026cdd34c07 before 180c7000712db77063b3a26f4c97e7dd9038f449; 6.6 (not affected: before 6.6; from 6.18.57 up to 6.18.*; from 7.2.6 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/f81972b235f3ebfa40bdce8bcfee3f242fb24065>
- <https://git.kernel.org/stable/c/7ae71629357d0a6d0bdadb929c7b296d5b7e61c2>
- <https://git.kernel.org/stable/c/180c7000712db77063b3a26f4c97e7dd9038f449>

## Sources

- CVE List: [CVE-2026-90317](https://www.cve.org/CVERecord?id=CVE-2026-90317), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-90317](https://nvd.nist.gov/vuln/detail/CVE-2026-90317), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-90317 · Whole record: https://cve.day/CVE-2026-90317.json · Rebuilt by cve.day 2026-11-25T22:59:39.380Z
