CVE-2026-74744: ipvlan: inherit needed_headroom and needed_tailroom from phy_dev
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ipvlan: inherit needed_headroom and needed_tailroom from phy_dev
ipvlan devices inherit hard_header_len from phy_dev during ipvlan_init(), but leave needed_headroom and needed_tailroom set to 0.
When the underlying phy_dev (or stacked lower device) requires extra headroom or tailroom for headers/trailers (e.g. macsec, ipsec, wireguard, tunnels, or veth with rx headroom), upper layers calculating packet headroom and tailroom fail to reserve sufficient space.
This can result in reallocation overhead, skb headroom underflows, or KASAN slab-use-after-free crashes when dev_hard_header() / ipvlan_hard_header() prepends header data or when lower devices append tailroom.
Fix this by:
1. Inheriting needed_headroom and needed_tailroom from phy_dev in ipvlan_init().
2. Propagating needed_headroom and needed_tailroom updates to attached ipvlans in ipvlan_device_event() when receiving NETDEV_FEAT_CHANGE events.
The Linux kernel CVE team has assigned CVE-2026-74744 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.19 with commit 2ad7bf3638411cb547f2823df08166c13ab04269 and fixed in 6.1.184 with commit af602c4d0ee548da18e2409b4b4da1079625a372 Issue introduced in 3.19 with commit 2ad7bf3638411cb547f2823df08166c13ab04269 and fixed in 6.6.153 with commit f3c17ff65f54781cde696e16a6c577615ed735aa Issue introduced in 3.19 with commit 2ad7bf3638411cb547f2823df08166c13ab04269 and fixed in 6.12.105 with commit c0fbe31f6b20ade0465130685859faa5c86fda59 Issue introduced in 3.19 with commit 2ad7bf3638411cb547f2823df08166c13ab04269 and fixed in 6.18.46 with commit 5f33188457bbcc1b11ca87084037963c516ed3d9 Issue introduced in 3.19 with commit 2ad7bf3638411cb547f2823df08166c13ab04269 and fixed in 7.1.10 with commit 5c2ca77212eb38559b0353b8363b7a84f4b019dd Issue introduced in 3.19 with commit 2ad7bf3638411cb547f2823df08166c13ab04269 and fixed in 7.2 with commit e16e960d55a40d36bd7c2494cc005e757dc9a1ef
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-74744
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/ipvlan/ipvlan_main.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/af602c4d0ee548da18e2409b4b4da1079625a372 https://git.kernel.org/stable/c/f3c17ff65f54781cde696e16a6c577615ed735aa https://git.kernel.org/stable/c/c0fbe31f6b20ade0465130685859faa5c86fda59 https://git.kernel.org/stable/c/5f33188457bbcc1b11ca87084037963c516ed3d9 https://git.kernel.org/stable/c/5c2ca77212eb38559b0353b8363b7a84f4b019dd https://git.kernel.org/stable/c/e16e960d55a40d36bd7c2494cc005e757dc9a1ef