Linux
bpf: Disallow bpf_skb_pull_data() for LWT_SEG6LOCAL
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().
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, < 0f38472a2aa8704a6b514c0dfa9c32f3672b8f32
- >= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, < cae8674489f26edf7553fdd660599466cbb4c32f
- >= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, < 9f9e57b5a3a033f95f49ef9d541340cdbcb80abb
- >= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, < df0072be6fc373cb22f9ea854d458b04e32a03cf
- >= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, < b9bb0e735460751b620156f800a4279a28573392
- >= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, < 37b18688cd18fd86d2f35c212df1611862a26cd5
- >= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, < fca71ead7a20290af1e2046983eeafae43d21af1
- >= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, < e4a62833adff6ef0fe7c0b90393204fe3c26b5c5
Fixed in 0f38472a2aa8704a6b514c0dfa9c32f3672b8f32, cae8674489f26edf7553fdd660599466cbb4c32f, 9f9e57b5a3a033f95f49ef9d541340cdbcb80abb, df0072be6fc373cb22f9ea854d458b04e32a03cf, b9bb0e735460751b620156f800a4279a28573392, 37b18688cd18fd86d2f35c212df1611862a26cd5, fca71ead7a20290af1e2046983eeafae43d21af1, e4a62833adff6ef0fe7c0b90393204fe3c26b5c5
- 4.18
Fixed in 0, 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, 6.18.55, 7.2.9, 7.3
Mitigation
Upgrade Linux to 0f38472a2aa8704a6b514c0dfa9c32f3672b8f32 or cae8674489f26edf7553fdd660599466cbb4c32f or 9f9e57b5a3a033f95f49ef9d541340cdbcb80abb or df0072be6fc373cb22f9ea854d458b04e32a03cf or b9bb0e735460751b620156f800a4279a28573392 or 37b18688cd18fd86d2f35c212df1611862a26cd5 or fca71ead7a20290af1e2046983eeafae43d21af1 or e4a62833adff6ef0fe7c0b90393204fe3c26b5c5 or later.
Upgrade Linux to 0 or 5.10.271 or 5.15.222 or 6.1.189 or 6.6.158 or 6.12.112 or 6.18.55 or 7.2.9 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.