Skip to contentSkip to conversation

CVE-2026-90080: octeontx2-pf: fix NULL deref of af_xdp_zc_qidx on rep setup

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:

octeontx2-pf: fix NULL deref of af_xdp_zc_qidx on rep setup

af_xdp_zc_qidx tracks receive queues using AF_XDP zero-copy and is allocated during PF/VF probe. Representors and other non-AF_XDP paths leave the pointer NULL, but several call sites used test_bit() on it unconditionally.

Switching to devlink eswitch mode creates representors and runs otx2_init_hw_resources(), which reaches otx2_pool_aq_init() and oopses when dereferencing the NULL bitmap. Add NULL checks before every af_xdp_zc_qidx test_bit() use in the RSS, ethtool, XSK, and pool init paths.

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

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

	Issue introduced in 6.15 with commit efabce29015189cb5cd8066cf29eb1d754de6c3c and fixed in 6.18.52 with commit b003d5b4e46ca5033859db601e12d36da24d0e40
	Issue introduced in 6.15 with commit efabce29015189cb5cd8066cf29eb1d754de6c3c and fixed in 7.2.6 with commit 7e33c6bd049b532d2ec4916895ef07e538bed905
	Issue introduced in 6.15 with commit efabce29015189cb5cd8066cf29eb1d754de6c3c and fixed in 7.3-rc1 with commit b09a0503c755b6609fad59a84cc7f05b6843a03c
	Issue introduced in 6.14.9 with commit 9bd7273cf1f9c5761d696cca821d25602e8f7009

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

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/marvell/octeontx2/nic/otx2_common.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_xsk.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/b003d5b4e46ca5033859db601e12d36da24d0e40
	https://git.kernel.org/stable/c/7e33c6bd049b532d2ec4916895ef07e538bed905
	https://git.kernel.org/stable/c/b09a0503c755b6609fad59a84cc7f05b6843a03c