Skip to contentSkip to conversation

CVE-2026-90086: xsk: honor XDP_TX_METADATA in zero-copy path

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

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: honor XDP_TX_METADATA in zero-copy path

The zero-copy path reads TX metadata whenever the UMEM has metadata space, even if the descriptor does not set XDP_TX_METADATA. Pass descriptor options through the metadata helpers and ignore metadata unless the option is set.

This does not fix the existing per-WQE metadata handling for mlx5 MPWQEs. Only the descriptor that starts a session passes through xsk_tx_metadata_request() and configures offload state shared by the batch. Metadata on descriptors joining an open session is therefore not validated and does not configure its requested offloads. In addition, a non-NULL metadata pointer from such a descriptor is treated as a timestamp completion request even when XDP_TXMD_FLAGS_TIMESTAMP is not set, so its metadata union can be overwritten with an unrequested timestamp. Fixing mixed metadata states within one MPWQE requires a separate change.

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

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

	Issue introduced in 6.8 with commit 48eb03dd26304c24f03bdbb9382e89c8564e71df and fixed in 6.18.52 with commit 53a5b262d706b572840cbe8feae392538077ee19
	Issue introduced in 6.8 with commit 48eb03dd26304c24f03bdbb9382e89c8564e71df and fixed in 7.2.6 with commit bf9387488d6394845076928c6ca5315ce5d84f54
	Issue introduced in 6.8 with commit 48eb03dd26304c24f03bdbb9382e89c8564e71df and fixed in 7.3-rc1 with commit a6e4b9a6deb9362ef7a0706c70d674e92fe1411a

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

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/ethernet/intel/igc/igc_main.c drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.c drivers/net/ethernet/stmicro/stmmac/stmmac_main.c include/net/libeth/xsk.h include/net/xdp_sock_drv.h include/net/xsk_buff_pool.h net/xdp/xsk_buff_pool.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/53a5b262d706b572840cbe8feae392538077ee19
	https://git.kernel.org/stable/c/bf9387488d6394845076928c6ca5315ce5d84f54
	https://git.kernel.org/stable/c/a6e4b9a6deb9362ef7a0706c70d674e92fe1411a