Skip to contentSkip to conversation

CVE-2026-74745: eth: bnxt: avoid deadlock when canceling IRQ affinity notifier

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 26

lore
Share & tools
lore
#0 lore raw

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

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

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

eth: bnxt: avoid deadlock when canceling IRQ affinity notifier

Unregistering IRQ affinity notifiers waits for the callback synchronously. bnxt takes the netdev instance lock in the notifier (to restart the queue) and cancels the work under the same lock. This may obviously deadlock.

Move the restart to the async service task. The queue restart isn't super time sensitive. Store the new TPH tag, schedule the task. Safely canceling the service task is already ironed out.

In bnxt_request_irq() the order of registering notifier, affinity and initial TPH programming has to be inverted. I think it was racy previously since user may trigger an update as soon as notifier is installed.

There's a small known gap - if pcie_tph_get_cpu_st() fails at init and the target tag is 0 we may miss programming the entry. This does not seem worth fixing, the code has skip-on-failure all over the place, anyway.

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

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

	Issue introduced in 6.15 with commit c214410c47d6ec3128143370747d9e388bab21d7 and fixed in 7.1.10 with commit 8b1118fc5a5d2cdc21cc07b5106921ad4f77c544
	Issue introduced in 6.15 with commit c214410c47d6ec3128143370747d9e388bab21d7 and fixed in 7.2 with commit 51e96fa31f7e7eac2cba8f854e24d36600cc040b

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

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
drivers/net/ethernet/broadcom/bnxt/bnxt.h

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/8b1118fc5a5d2cdc21cc07b5106921ad4f77c544
	https://git.kernel.org/stable/c/51e96fa31f7e7eac2cba8f854e24d36600cc040b