CVE-2026-143351

Source
https://cve.org/CVERecord?id=CVE-2026-143351
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143351.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-143351
Downstream
Published
2026-12-03T09:22:08Z
Modified
2026-12-03T11:02:07Z
Summary
bpf: Check the offset in bpf_skb_generic_{push,pop}()
Details

In the Linux kernel, the following vulnerability has been resolved:

bpf: Check the offset in bpf_skb_generic_{push,pop}()

To make room for len bytes at offset off, bpf_skb_generic_push() moves the first off bytes and clears len bytes after them. It assumes that the first off bytes are in the linear part. But in bpf_skb_adjust_room() off can be the end of the IP header, and this header can be in a frag. Then the function reads and writes after skb->tail, and can damage skb_shared_info.

bpf_skb_generic_pop() checks off + len, but this u32 sum can wrap to a small value. bpf_skb_adjust_room() and bpf_skb_change_proto() calculate off from skb_mac_header_len(). This length is a very large u32 when network_header < mac_header. Then the check can pass, and memmove() reads and writes far outside the skb.

Return -ENOMEM from both functions, like the present check, when off > skb->len. Thus the sum cannot wrap. In bpf_skb_generic_push() also pull the first off bytes into the linear part. Now bpf_skb_adjust_room() fails when a prog grows an skb that ends before off. network_header stays wrong.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143351.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
6578171a7ff0c31dc73258f93da7407510abf085
Fixed
71b7211ea168c19fdc8871a886cf6b738a6c9764
Fixed
b6e295b06d6ebe0d5459661b55627fdb9c238fd4
Fixed
280c120c9dac35f7a22589303cc90b8a00e6fde8
Fixed
ee36c9aa44ef300cd651074bd97552b229337f85

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.8.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-143351.json"