{"id":"CVE-2026-90317","published":"2026-09-17T16:08:35Z","modified":"2026-10-19T09:01:33Z","title":"bpf: Invalidate RCU pointers after final spin unlock","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00168,"percentile":0.03517,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/f81972b235f3ebfa40bdce8bcfee3f242fb24065","tags":[]},{"url":"https://git.kernel.org/stable/c/7ae71629357d0a6d0bdadb929c7b296d5b7e61c2","tags":[]},{"url":"https://git.kernel.org/stable/c/180c7000712db77063b3a26f4c97e7dd9038f449","tags":[]}],"priority":{"score":6.2,"factors":[{"name":"EPSS percentile","points":0.7},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 5861d1e8dbc4e1a03ebffb96ac041026cdd34c07, < f81972b235f3ebfa40bdce8bcfee3f242fb24065",">= 5861d1e8dbc4e1a03ebffb96ac041026cdd34c07, < 7ae71629357d0a6d0bdadb929c7b296d5b7e61c2",">= 5861d1e8dbc4e1a03ebffb96ac041026cdd34c07, < 180c7000712db77063b3a26f4c97e7dd9038f449"]},{"vendor":"Linux","product":"Linux","versions":["6.6"]}],"euvd":{"id":"EUVD-2026-81978","exploited":false,"provenance":"source"}}