Technical impact
The Linux kernel contains a use‑after‑free bug in the BPF Segment‑Routing (SRH) handling code. When a bpf_lwt_seg6_action attempts to add a new header and the operation fails, the SRH pointer in seg6_bpf_srh_states still points to freed memory. Subsequent BPF helper calls read or write through that dangling pointer, which can corrupt kernel memory and potentially allow an attacker to execute arbitrary code with kernel privileges. This flaw is a classic use‑after‑free (CWE‑416) that can lead to privilege escalation to root.
Affected Systems
All Linux kernel releases that include the faulty bpf_lwt_seg6_action implementation are affected. The vendor is Linux and the affected product is the Linux kernel; no specific version range is listed. Any distribution that ships with the unpatched kernel is susceptible.
Risk and Exploitability
There is no public EPSS score and the vulnerability is not currently listed in the CISA KEV catalog. However, the flaw requires local or privileged access to load a crafted BPF program, which is feasible on many systems that allow untrusted users to create or modify BPF maps or programs. If an attacker can trigger the error path, the resulting memory corruption can be leveraged for remote code execution or denial‑of‑service. The potential impact is high, but the exploitation likelihood depends on the system’s BPF configuration and user privilege model.