Linux
ipvlan: inherit needed_headroom and needed_tailroom from phy_dev
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2ad7bf3638411cb547f2823df08166c13ab04269, < af602c4d0ee548da18e2409b4b4da1079625a372
- >= 2ad7bf3638411cb547f2823df08166c13ab04269, < f3c17ff65f54781cde696e16a6c577615ed735aa
- >= 2ad7bf3638411cb547f2823df08166c13ab04269, < c0fbe31f6b20ade0465130685859faa5c86fda59
- >= 2ad7bf3638411cb547f2823df08166c13ab04269, < 5f33188457bbcc1b11ca87084037963c516ed3d9
- >= 2ad7bf3638411cb547f2823df08166c13ab04269, < 5c2ca77212eb38559b0353b8363b7a84f4b019dd
- >= 2ad7bf3638411cb547f2823df08166c13ab04269, < e16e960d55a40d36bd7c2494cc005e757dc9a1ef
Fixed in af602c4d0ee548da18e2409b4b4da1079625a372, f3c17ff65f54781cde696e16a6c577615ed735aa, c0fbe31f6b20ade0465130685859faa5c86fda59, 5f33188457bbcc1b11ca87084037963c516ed3d9, 5c2ca77212eb38559b0353b8363b7a84f4b019dd, e16e960d55a40d36bd7c2494cc005e757dc9a1ef
- 3.19
Fixed in 0, 6.1.184, 6.6.153, 6.12.105, 6.18.46, 7.1.10, 7.2
Mitigation
Upgrade Linux to af602c4d0ee548da18e2409b4b4da1079625a372 or f3c17ff65f54781cde696e16a6c577615ed735aa or c0fbe31f6b20ade0465130685859faa5c86fda59 or 5f33188457bbcc1b11ca87084037963c516ed3d9 or 5c2ca77212eb38559b0353b8363b7a84f4b019dd or e16e960d55a40d36bd7c2494cc005e757dc9a1ef or later.
Upgrade Linux to 0 or 6.1.184 or 6.6.153 or 6.12.105 or 6.18.46 or 7.1.10 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.