CVE-2026-143217

Source
https://cve.org/CVERecord?id=CVE-2026-143217
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143217.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-143217
Downstream
Published
2026-12-03T09:20:36Z
Modified
2026-12-03T11:01:42Z
Summary
ipvlan: make outbound skb headers writable
Details

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

ipvlan: make outbound skb headers writable

In L3 and L3S modes, ipvlan_process_v4_outbound() and ipvlan_process_v6_outbound() hand the skb to ip_local_out() and ip6_local_out(). The IP output path assumes it owns the network header: __ip_local_out() rewrites tot_len and the header checksum, and transport-mode XFRM can memmove the network header into the headroom when xfrm_skb_check_space() finds enough room, without copying.

The skb reaching ipvlan can have its header shared with another skb, for example after an AF_PACKET tap on the ipvlan device or a tc mirred mirror action. pskb_network_may_pull() only makes the header linear; it does not unshare an already linear head. The writes above then modify the other skb. If that skb is on the receive path and its IPv4 header was already validated, IPv4 option processing can use the modified header, write past the linear data, and corrupt skb_shared_info.

Use skb_cow_head() before taking header pointers and entering the local IP output path, like ip_forward() does with skb_cow() before it touches the header. Only checking skb_header_cloned() is enough here: skbs that TCP transmits are clones of the write-queue skb, whose header area has been released with __skb_header_release(). Their headers are private, so they are not copied, which avoids a reallocation for every TCP segment sent through an ipvlan slave.

If the allocation fails, the existing error accounting and drop paths are used. L2 mode is unaffected.

[edumazet: use skb_cow_head() instead of skb_unclone() to avoid copying every TCP segment, reword changelog]

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143217.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
2ad7bf3638411cb547f2823df08166c13ab04269
Fixed
f9e9fe4d592fa01769305a5cf5695fabf14c54b5
Fixed
2ce3e2f1ae9c31dbff747428f03aa78ee6876dfe
Fixed
53abd5697ec283cfb108ccbbdc9cbea4cdef004b
Fixed
a45dbf182137275f44ad7c8bc8acd23f7af6b2cf

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.19.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-143217.json"