Skip to contentSkip to conversation

CVE-2026-43157: octeontx2-af: CGX: fix bitmap leaks

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:

octeontx2-af: CGX: fix bitmap leaks

The RX/TX flow-control bitmaps (rx_fc_pfvf_bmap and tx_fc_pfvf_bmap) are allocated by cgx_lmac_init() but never freed in cgx_lmac_exit(). Unbinding and rebinding the driver therefore triggers kmemleak:

unreferenced object (size 16):
backtrace:
rvu_alloc_bitmap
cgx_probe

Free both bitmaps during teardown.

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

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

	Issue introduced in 5.18 with commit e740003874edc13e468d19233f99787bedb4bb8e and fixed in 6.1.165 with commit ad8a13a45c5c24d0d32de9a1c3fd58498a675ece
	Issue introduced in 5.18 with commit e740003874edc13e468d19233f99787bedb4bb8e and fixed in 6.6.128 with commit 013ac469596a0b8671e62d89c89ae0bd46bbe667
	Issue introduced in 5.18 with commit e740003874edc13e468d19233f99787bedb4bb8e and fixed in 6.12.75 with commit ccef79af58b43787c25710c9da96651c6ddfe50f
	Issue introduced in 5.18 with commit e740003874edc13e468d19233f99787bedb4bb8e and fixed in 6.18.16 with commit 6d389382ee655128056fbdab86baad8495ffbf33
	Issue introduced in 5.18 with commit e740003874edc13e468d19233f99787bedb4bb8e and fixed in 6.19.6 with commit ccca14bbdcc25829d355b9f4d3249f43dadb71c1
	Issue introduced in 5.18 with commit e740003874edc13e468d19233f99787bedb4bb8e and fixed in 7.0 with commit 3def995c4ede842adf509c410e92d09a0cedc965

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

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/cgx.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/ad8a13a45c5c24d0d32de9a1c3fd58498a675ece
	https://git.kernel.org/stable/c/013ac469596a0b8671e62d89c89ae0bd46bbe667
	https://git.kernel.org/stable/c/ccef79af58b43787c25710c9da96651c6ddfe50f
	https://git.kernel.org/stable/c/6d389382ee655128056fbdab86baad8495ffbf33
	https://git.kernel.org/stable/c/ccca14bbdcc25829d355b9f4d3249f43dadb71c1
	https://git.kernel.org/stable/c/3def995c4ede842adf509c410e92d09a0cedc965