Skip to contentSkip to conversation

CVE-2026-53177: bnxt_en: Fix NULL pointer dereference

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 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: Fix NULL pointer dereference

PCIe errors detected by a Root Port or Downstream Port cause error recovery services to run on all subordinate devices regardless of administrative state.

The .error_detected() callback, bnxt_io_error_detected(), disables and synchronizes IRQs via bnxt_disable_int_sync(), which calls bnxt_cp_num_to_irq_num() to map completion rings to IRQs using bp->bnapi.

Since bp->bnapi is allocated on NIC open and freed on NIC close, PCIe error recovery on a closed NIC can dereference a NULL pointer.

Check if bp->bnapi is NULL before disabling and synchronizing IRQs.

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

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

	Issue introduced in 4.17 with commit e5811b8c09df9bc80eabc95339fceded23f16289 and fixed in 5.15.210 with commit 964b1c3eb71afe58bb61c8b984164447e000ae8a
	Issue introduced in 4.17 with commit e5811b8c09df9bc80eabc95339fceded23f16289 and fixed in 6.1.176 with commit 59c5a3e69c7630a811565937e64be70b08436761
	Issue introduced in 4.17 with commit e5811b8c09df9bc80eabc95339fceded23f16289 and fixed in 6.6.143 with commit 1a418ad0e5e525d1d117dd1601681f75455af320
	Issue introduced in 4.17 with commit e5811b8c09df9bc80eabc95339fceded23f16289 and fixed in 6.12.94 with commit 08e57d014ea19f303d5d57a849beb846f37788b7
	Issue introduced in 4.17 with commit e5811b8c09df9bc80eabc95339fceded23f16289 and fixed in 6.18.36 with commit 3884976f87448e269908ae61bd5d62d54ce9c0c7
	Issue introduced in 4.17 with commit e5811b8c09df9bc80eabc95339fceded23f16289 and fixed in 7.0.13 with commit 580844a9683afe7974856dd5b7886447435b3474
	Issue introduced in 4.17 with commit e5811b8c09df9bc80eabc95339fceded23f16289 and fixed in 7.1 with commit d930276f2cddd0b7294cac7a8fe7b877f6d9e08d

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

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/964b1c3eb71afe58bb61c8b984164447e000ae8a
	https://git.kernel.org/stable/c/59c5a3e69c7630a811565937e64be70b08436761
	https://git.kernel.org/stable/c/1a418ad0e5e525d1d117dd1601681f75455af320
	https://git.kernel.org/stable/c/08e57d014ea19f303d5d57a849beb846f37788b7
	https://git.kernel.org/stable/c/3884976f87448e269908ae61bd5d62d54ce9c0c7
	https://git.kernel.org/stable/c/580844a9683afe7974856dd5b7886447435b3474
	https://git.kernel.org/stable/c/d930276f2cddd0b7294cac7a8fe7b877f6d9e08d