CVE-2026-143356

Source
https://cve.org/CVERecord?id=CVE-2026-143356
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143356.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-143356
Downstream
Published
2026-12-03T09:22:11Z
Modified
2026-12-03T11:02:14Z
Summary
bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh()
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143356.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
fe94cc290f535709d3c5ebd1e472dfd0aec7ee79
Fixed
566ae93254cbaa43bf9bc21dbd4cd779c76ef400
Fixed
8f8283320db7bbd21adc9612c8c296c462ce0b40
Fixed
5679431a57d75040a41292666fb4f1bd7187cba8
Fixed
50791fe37754db0ccfcdf8391ae7d5b8c69a2734
Fixed
cd03b01e40a650d61f5fbadd48927d82037a5050
Show 1 more event Show fewer events
Fixed
0fcb3f11a93d740e7f9ae1aeb48fe4d25838be18

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143356.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.18.0
Fixed
5.10.276
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.227
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.12.120
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.66
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143356.json"