Skip to contentSkip to conversation

CVE-2026-98383: bpf: Disallow bpf_skb_pull_data() for LWT_SEG6LOCAL

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 9

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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().

The Linux kernel CVE team has assigned CVE-2026-98383 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.18 with commit 004d4b274e2a1a895a0e5dc66158b90a7d463d44 and fixed in 5.10.271 with commit 0f38472a2aa8704a6b514c0dfa9c32f3672b8f32
	Issue introduced in 4.18 with commit 004d4b274e2a1a895a0e5dc66158b90a7d463d44 and fixed in 5.15.222 with commit cae8674489f26edf7553fdd660599466cbb4c32f
	Issue introduced in 4.18 with commit 004d4b274e2a1a895a0e5dc66158b90a7d463d44 and fixed in 6.1.189 with commit 9f9e57b5a3a033f95f49ef9d541340cdbcb80abb
	Issue introduced in 4.18 with commit 004d4b274e2a1a895a0e5dc66158b90a7d463d44 and fixed in 6.6.158 with commit df0072be6fc373cb22f9ea854d458b04e32a03cf
	Issue introduced in 4.18 with commit 004d4b274e2a1a895a0e5dc66158b90a7d463d44 and fixed in 6.12.112 with commit b9bb0e735460751b620156f800a4279a28573392
	Issue introduced in 4.18 with commit 004d4b274e2a1a895a0e5dc66158b90a7d463d44 and fixed in 6.18.55 with commit 37b18688cd18fd86d2f35c212df1611862a26cd5
	Issue introduced in 4.18 with commit 004d4b274e2a1a895a0e5dc66158b90a7d463d44 and fixed in 7.2.9 with commit fca71ead7a20290af1e2046983eeafae43d21af1
	Issue introduced in 4.18 with commit 004d4b274e2a1a895a0e5dc66158b90a7d463d44 and fixed in 7.3-rc5 with commit e4a62833adff6ef0fe7c0b90393204fe3c26b5c5

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98383

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
net/core/filter.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/0f38472a2aa8704a6b514c0dfa9c32f3672b8f32
	https://git.kernel.org/stable/c/cae8674489f26edf7553fdd660599466cbb4c32f
	https://git.kernel.org/stable/c/9f9e57b5a3a033f95f49ef9d541340cdbcb80abb
	https://git.kernel.org/stable/c/df0072be6fc373cb22f9ea854d458b04e32a03cf
	https://git.kernel.org/stable/c/b9bb0e735460751b620156f800a4279a28573392
	https://git.kernel.org/stable/c/37b18688cd18fd86d2f35c212df1611862a26cd5
	https://git.kernel.org/stable/c/fca71ead7a20290af1e2046983eeafae43d21af1
	https://git.kernel.org/stable/c/e4a62833adff6ef0fe7c0b90393204fe3c26b5c5