Skip to contentSkip to conversation

CVE-2026-43093: xsk: tighten UMEM headroom validation to account for tailroom and min frame

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 6

lore
Share & tools
lore
#0 lore raw

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

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

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

xsk: tighten UMEM headroom validation to account for tailroom and min frame

The current headroom validation in xdp_umem_reg() could leave us with insufficient space dedicated to even receive minimum-sized ethernet frame. Furthermore if multi-buffer would come to play then skb_shared_info stored at the end of XSK frame would be corrupted.

HW typically works with 128-aligned sizes so let us provide this value as bare minimum.

Multi-buffer setting is known later in the configuration process so besides accounting for 128 bytes, let us also take care of tailroom space upfront.

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

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

	Issue introduced in 5.7 with commit 99e3a236dd43d06c65af0a2ef9cb44306aef6e02 and fixed in 6.6.136 with commit a03975beb9f6af0d8ac051e30b2abeabe618414f
	Issue introduced in 5.7 with commit 99e3a236dd43d06c65af0a2ef9cb44306aef6e02 and fixed in 6.12.83 with commit 0ec4d3f6e6934deb843b561ae048cd17218e5ad1
	Issue introduced in 5.7 with commit 99e3a236dd43d06c65af0a2ef9cb44306aef6e02 and fixed in 6.18.24 with commit 9ea6ba4f3195dcba6e8b3e7b2e748593b7cafb12
	Issue introduced in 5.7 with commit 99e3a236dd43d06c65af0a2ef9cb44306aef6e02 and fixed in 6.19.14 with commit 6523bc1b40e69301f24c14338b762af4739d6d39
	Issue introduced in 5.7 with commit 99e3a236dd43d06c65af0a2ef9cb44306aef6e02 and fixed in 7.0 with commit a315e022a72d95ef5f1d4e58e903cb492b0ad931
	Issue introduced in 4.19.118 with commit ad8fb61c184fe0f8d1e0b5b954d010fb9f94a6ee
	Issue introduced in 5.4.35 with commit 25c9cdef57488578da21d99eb614b97ffcf6e59f
	Issue introduced in 5.6.7 with commit 98d3c852e63b49129515dd18c875999efaf8530a

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

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:
net/xdp/xdp_umem.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/a03975beb9f6af0d8ac051e30b2abeabe618414f
	https://git.kernel.org/stable/c/0ec4d3f6e6934deb843b561ae048cd17218e5ad1
	https://git.kernel.org/stable/c/9ea6ba4f3195dcba6e8b3e7b2e748593b7cafb12
	https://git.kernel.org/stable/c/6523bc1b40e69301f24c14338b762af4739d6d39
	https://git.kernel.org/stable/c/a315e022a72d95ef5f1d4e58e903cb492b0ad931