{"id":"CVE-2026-90317","aliases":["CVE-2026-90317"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Invalidate RCU pointers after final spin unlock","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Invalidate RCU pointers after final spin unlock\n\nIn a sleepable BPF program, a spin lock can provide the only RCU protection\nfor a kptr. The final bpf_spin_unlock() ends that protection, but the\nverifier leaves the pointer valid. Another CPU can then free the object\nbefore the pointer is used. A capability-limited runtime PoC triggered a\ntask_struct use-after-free in __bpf_get_task_stack().\n\nRecord whether the program is in an RCU-protected context before releasing\nthe lock. Invalidate RCU-protected pointers only when the unlock leaves the\nfinal such context. This preserves valid pointers in non-sleepable programs\nand inside an explicit RCU read-side section.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Invalidate RCU pointers after final spin unlock\n\nIn a sleepable BPF program, a spin lock can provide the only RCU protection\nfor a kptr. The final bpf_spin_unlock() ends that protection, but the\nverifier leaves the pointer valid. Another CPU can then free the object\nbefore the pointer is used. A capability-limited runtime PoC triggered a\ntask_struct use-after-free in __bpf_get_task_stack().\n\nRecord whether the program is in an RCU-protected context before releasing\nthe lock. Invalidate RCU-protected pointers only when the unlock leaves the\nfinal such context. This preserves valid pointers in non-sleepable programs\nand inside an explicit RCU read-side section.","source":"cvelist"}],"published":"2026-09-17T16:08:35.537Z","modified":"2026-10-19T09:19:25.673Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5861d1e8dbc4e1a03ebffb96ac041026cdd34c07","fixed":"f81972b235f3ebfa40bdce8bcfee3f242fb24065","status":"affected"},{"type":"git","introduced":"5861d1e8dbc4e1a03ebffb96ac041026cdd34c07","fixed":"7ae71629357d0a6d0bdadb929c7b296d5b7e61c2","status":"affected"},{"type":"git","introduced":"5861d1e8dbc4e1a03ebffb96ac041026cdd34c07","fixed":"180c7000712db77063b3a26f4c97e7dd9038f449","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.6","status":"unaffected"},{"type":"semver","introduced":"6.18.57","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f81972b235f3ebfa40bdce8bcfee3f242fb24065","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7ae71629357d0a6d0bdadb929c7b296d5b7e61c2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/180c7000712db77063b3a26f4c97e7dd9038f449","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90317","url":"https://www.cve.org/CVERecord?id=CVE-2026-90317","licence":"CVE Terms of Use","modified":"2026-10-19T09:01:33.647Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90317","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90317","licence":"Public domain","modified":"2026-10-19T09:19:25.673Z"}],"updatedAt":"2026-11-25T22:59:39.380Z","epss":{"score":0.00161,"percentile":0.05554,"date":"2026-12-01T12:00:22.000Z"}}