bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh()
Summary
| CVE | CVE-2026-143356 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-12-03 10:18:24 UTC |
| Updated | 2026-12-03 10:18:24 UTC |
| Description | In the Linux kernel, the following vulnerability has been resolved: bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh() bpf_skb_net_hdr_push() and bpf_skb_net_hdr_pop() change skb->data and skb->mac_header by len. That is correct in a tc prog, where skb->data is the MAC header. But bpf_lwt_seg6_adjust_srh() calls them in an End.BPF prog, where skb->data is the network header. The MAC header does not move: before push | free | MAC header | IPv6 | SRH | payload ^ head ^ mac_header ^ data today | free | MAC h| IPv6 | SRH + len | payload ^ head ^ mac_header ^ data this patch | free | MAC header | IPv6 | SRH + len | payload ^ head ^ mac_header ^ data Users of skb_mac_header() get incorrect bytes until __dev_queue_xmit() sets skb->mac_header again. skb_cow_head() reserves only len bytes. Thus the 16-bit offset skb->mac_header can wrap. A push also changes the "not set" value. In both cases skb_mac_header() points after the skb. Move the MAC header too. Pass len + skb->mac_len to skb_cow_head(). Keep the "not set" value. The second Fixes tag is for this case. Since that commit an End.BPF prog can get an skb with skb->mac_header not set. |
Risk And Classification
EPSS: 0.003790000 probability, percentile 0.340040000 (date 2026-12-03)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 566ae93254cbaa43bf9bc21dbd4cd779c76ef400 git | Not specified |
| CNA | Linux | Linux | affected fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 8f8283320db7bbd21adc9612c8c296c462ce0b40 git | Not specified |
| CNA | Linux | Linux | affected fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 5679431a57d75040a41292666fb4f1bd7187cba8 git | Not specified |
| CNA | Linux | Linux | affected fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 50791fe37754db0ccfcdf8391ae7d5b8c69a2734 git | Not specified |
| CNA | Linux | Linux | affected fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 cd03b01e40a650d61f5fbadd48927d82037a5050 git | Not specified |
| CNA | Linux | Linux | affected fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 0fcb3f11a93d740e7f9ae1aeb48fe4d25838be18 git | Not specified |
| CNA | Linux | Linux | affected 4.18 | Not specified |
| CNA | Linux | Linux | unaffected 4.18 semver | Not specified |
| CNA | Linux | Linux | unaffected 5.10.276 5.10.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15.227 5.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.120 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.66 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.3.7 7.3.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.4-rc2 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/8f8283320db7bbd21adc9612c8c296c462ce0b40 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/566ae93254cbaa43bf9bc21dbd4cd779c76ef400 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/5679431a57d75040a41292666fb4f1bd7187cba8 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/cd03b01e40a650d61f5fbadd48927d82037a5050 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/50791fe37754db0ccfcdf8391ae7d5b8c69a2734 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/0fcb3f11a93d740e7f9ae1aeb48fe4d25838be18 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.