Skip to contentSkip to conversation

CVE-2026-97572: bnxt_en: Propagate RX ring init failures in bnxt_init_nic()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

lore
Share & tools
lore
#0 lore raw

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

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

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

bnxt_en: Propagate RX ring init failures in bnxt_init_nic()

bnxt_init_rx_rings() returns an error when bnxt_alloc_one_rx_ring() fails, but bnxt_init_nic() discards that return value and calls bnxt_init_chip(), which enables TPA.

If an allocation fails, this could leave rxr->rx_tpa[] partially zeroed and TPA would be enabled over an array with zeroed entries. This would lead to a zeroed DMA address being handed out if the agg_idx is translated to a SW index at a zeroed entry.

Fix this by propagating the error out of bnxt_init_nic(). Both callers already check its return value and unwind with bnxt_free_skbs() and bnxt_free_mem(), which tolerate a partially initialized RX ring.

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

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

	Issue introduced in 4.4 with commit c0c050c58d840994ba842ad1c338a98e7c12b764 and fixed in 6.12.111 with commit daadccd062fdca5e77a8cc22ffe35857803b6c49
	Issue introduced in 4.4 with commit c0c050c58d840994ba842ad1c338a98e7c12b764 and fixed in 6.18.53 with commit b4c40f2c80d7bf50648878bc206a39adfbfaec6c
	Issue introduced in 4.4 with commit c0c050c58d840994ba842ad1c338a98e7c12b764 and fixed in 7.2.7 with commit dfd73af81cdb9f7b399754a59e2658a08211bee5
	Issue introduced in 4.4 with commit c0c050c58d840994ba842ad1c338a98e7c12b764 and fixed in 7.3-rc3 with commit 8e6a850c0746bb4be167aedf1ee57469fcda09a9

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

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/broadcom/bnxt/bnxt.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/daadccd062fdca5e77a8cc22ffe35857803b6c49
	https://git.kernel.org/stable/c/b4c40f2c80d7bf50648878bc206a39adfbfaec6c
	https://git.kernel.org/stable/c/dfd73af81cdb9f7b399754a59e2658a08211bee5
	https://git.kernel.org/stable/c/8e6a850c0746bb4be167aedf1ee57469fcda09a9