KernelScan.io

HIGH Introduced in 4.18

bpf Seg6Local UAF

CVE-2026-98383

CVSS 7.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI7.7HIGH

01

In the Linux kernel, the following vulnerability has been resolved: bpf: Disallow bpf_skb_pull_data() for LWT_SEG6LOCAL An LWT_SEG6LOCAL program can invalidate its cached SRH with bpf_lwt_seg6_adjust_srh() and then call bpf_skb_pull_data(). The latter may reallocate skb->head, leaving the per-CPU SRH pointer dangling. Post-program SRH validation then writes through that pointer. Disallow bpf_skb_pull_data() for LWT_SEG6LOCAL programs so the verifier rejects this unsafe helper combination. Other LWT program types continue to expose the helper through lwt_out_func_proto().

02

Engine v0.7.0

Risk summary

A privileged local user with init-namespace BPF and network administration capabilities can load a malicious LWT_SEG6LOCAL BPF program that triggers a use-after-free in the IPv6 Segment Routing Header validation path. The dangling pointer write can corrupt kernel memory, leading to potential code execution, information disclosure, or kernel crash. Exploitation requires IPv6 segment routing to be enabled and the attacker to attach the program to a seg6local route.

Affectednet/core/filter.c (bpf LWT_SEG6LOCAL)

Vulnerability analysis

A BPF program attached to an IPv6 seg6local route can use a helper to modify the Segment Routing Header, which causes the kernel to cache a pointer to that header in a per-CPU buffer. If the program then calls a second helper that pulls and potentially reallocates the packet's data buffer, the cached header pointer becomes dangling. When the program returns, the kernel's post-program validation writes through that stale pointer, corrupting freed memory. The fix makes the BPF verifier reject the data-pulling helper for seg6local programs entirely, so the unsafe helper combination can never be loaded. Triggering this requires a local user with privileges to load BPF programs and attach them to network routes, and the IPv6 segment routing feature must be active.

03

BranchIntroducedFixed inPatch commit
5.104.185.10.2710f38472a2aa8
5.154.185.15.222cae8674489f2
6.14.186.1.1899f9e57b5a3a0
6.124.186.12.112b9bb0e735460
6.184.186.18.5537b18688cd18
6.64.186.6.158df0072be6fc3
7.24.187.2.9fca71ead7a20
mainline4.187.3e4a62833adff
cip/4.194.184.19.325-cip13704d289f091b7
cip/4.19-rt4.184.19.325-cip137-rt5104d289f091b7
cip/5.104.185.10.271-cip780f38472a2aa8
cip/5.10-rt4.185.10.272-cip79-rt350f38472a2aa8
cip/6.14.186.1.189-cip619f9e57b5a3a0
cip/6.1-rt4.186.1.189-cip61-rt329f9e57b5a3a0
cip/6.124.186.12.112-cip33b9bb0e735460

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.112-cip33
cip/6.1Fixed in 6.1.189-cip61
cip/6.1-rtFixed in 6.1.189-cip61-rt32
cip/5.10Fixed in 5.10.271-cip78
cip/5.10-rtFixed in 5.10.272-cip79-rt35
cip/4.19Fixed in 4.19.325-cip137
cip/4.19-rtFixed in 4.19.325-cip137-rt51