Skip to contentSkip to conversation

CVE-2026-72050: octeontx2-af: Free BPID bitmap on setup failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

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-af: Free BPID bitmap on setup failure

nix_setup_bpids() allocates bp->bpids with rvu_alloc_bitmap(), which uses a plain kcalloc(). If any of the following devm_kcalloc() allocations for the BPID mapping arrays fails, the function returns without freeing the bitmap. Free the BPID bitmap before returning from those error paths.

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

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

	Issue introduced in 6.9 with commit d6212d2e41a0cb1ff6b059db79c70752cdafc95e and fixed in 6.12.97 with commit 7a939b683a74bd7d7ce4e3b7f696b491c8d71af4
	Issue introduced in 6.9 with commit d6212d2e41a0cb1ff6b059db79c70752cdafc95e and fixed in 6.18.40 with commit 19c148cb82d11bb7cc7d86038a94e608a297e63c
	Issue introduced in 6.9 with commit d6212d2e41a0cb1ff6b059db79c70752cdafc95e and fixed in 7.1.5 with commit d0c880c9f4051100517040d065caff60e913b659
	Issue introduced in 6.9 with commit d6212d2e41a0cb1ff6b059db79c70752cdafc95e and fixed in 7.2-rc1 with commit 36323f54cd323122a1be89ab2c316a6e55a94e30

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

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/af/rvu_nix.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/7a939b683a74bd7d7ce4e3b7f696b491c8d71af4
	https://git.kernel.org/stable/c/19c148cb82d11bb7cc7d86038a94e608a297e63c
	https://git.kernel.org/stable/c/d0c880c9f4051100517040d065caff60e913b659
	https://git.kernel.org/stable/c/36323f54cd323122a1be89ab2c316a6e55a94e30