Skip to contentSkip to conversation

CVE-2026-74743: macvlan: inherit needed_headroom and needed_tailroom from lowerdev

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 26

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

macvlan: inherit needed_headroom and needed_tailroom from lowerdev

macvlan devices inherit hard_header_len from lowerdev during macvlan_init(), but leave needed_headroom and needed_tailroom set to 0.

When the underlying lowerdev 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() / macvlan_hard_header() prepends header data or when lower devices append tailroom.

Fix this by:
1. Inheriting needed_headroom and needed_tailroom from lowerdev in macvlan_init().
2. Propagating needed_headroom and needed_tailroom updates to attached macvlans in macvlan_device_event() when receiving NETDEV_FEAT_CHANGE events.

The Linux kernel CVE team has assigned CVE-2026-74743 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 2.6.23 with commit b863ceb7ddcea8c55fcf1d7b2ac591d50aa7ed53 and fixed in 6.1.184 with commit 8cd90e850e434577bf6774778657d26d6995e53f
	Issue introduced in 2.6.23 with commit b863ceb7ddcea8c55fcf1d7b2ac591d50aa7ed53 and fixed in 6.6.153 with commit 28afc87bd8da0b3348bbbd834c8a89e83712cf5e
	Issue introduced in 2.6.23 with commit b863ceb7ddcea8c55fcf1d7b2ac591d50aa7ed53 and fixed in 6.12.105 with commit 8f6a05dbac05725e0786701eb04778c5bdbe4eaa
	Issue introduced in 2.6.23 with commit b863ceb7ddcea8c55fcf1d7b2ac591d50aa7ed53 and fixed in 6.18.46 with commit 96fa90b74385b7f2b0d97251dd43d5ee6ca44668
	Issue introduced in 2.6.23 with commit b863ceb7ddcea8c55fcf1d7b2ac591d50aa7ed53 and fixed in 7.1.10 with commit bc9a00fb78e32bccc39d763bfd13a450705bac5d
	Issue introduced in 2.6.23 with commit b863ceb7ddcea8c55fcf1d7b2ac591d50aa7ed53 and fixed in 7.2 with commit cef51860becd9700217c81732ca1eb1ea6ed6fe1

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-74743

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/macvlan.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/8cd90e850e434577bf6774778657d26d6995e53f
	https://git.kernel.org/stable/c/28afc87bd8da0b3348bbbd834c8a89e83712cf5e
	https://git.kernel.org/stable/c/8f6a05dbac05725e0786701eb04778c5bdbe4eaa
	https://git.kernel.org/stable/c/96fa90b74385b7f2b0d97251dd43d5ee6ca44668
	https://git.kernel.org/stable/c/bc9a00fb78e32bccc39d763bfd13a450705bac5d
	https://git.kernel.org/stable/c/cef51860becd9700217c81732ca1eb1ea6ed6fe1