CVE-2026-98617: eth: fbnic: use the Rx queue napi pointer to find the napi vector
In the Linux kernel, the following vulnerability has been resolved:
eth: fbnic: use the Rx queue napi pointer to find the napi vector
The queue management ndos pick the napi vector for an Rx queue with: nv = fbn->napi[idx % fbn->numnapi];
The issue is this is only correct in the cases where there are no standalone Tx vectors. In those cases we were allocating the Tx vectors first and then the Rx so the queues would be pointing to Tx NAPI vectors instead of the Rx ones.
The mapping the ndos want is already recorded. fbnicsetnetifnapi() publishes it with netifqueuesetnapi(), which stores the napi pointer in netdevrxqueue.napi, and fbnicresetnetifnapi() clears it again. Both run under the netdev instance lock that the queue management ndos also hold, so the pointer can be read directly.
Use it and drop the divide. The pointer is NULL exactly while the datapath is down, so fbnicqueuememalloc() can reject that case rather than reaching into freed state: netdevrxqueuerestart() calls it before it tests netifrunning(), and fbnicpmsuspend() leaves netifrunning() true across a PCIe recovery that never completes, so a queue restart can arrive after fbnicstop() has freed the rings and the vectors. fbnicstop() clears the association in fbnicresetnetifqueues() before fbnicfreenapivectors(), so the NULL is always published first. fbnicqueuestart() and fbnicqueuestop() need no check of their own, as netdevrxqueuereconfig() only reaches them once fbnicqueuememalloc() has succeeded under the same instance lock.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-42.42 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1016.17 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1016.18 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1015.16 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1
Event History
Frequently Asked Questions
When can this issue be triggered?
It affects queue-management operations when the fbnic driver has standalone Tx NAPI vectors, because the prior index-based lookup can select a Tx NAPI vector for an Rx queue. A queue restart can also arrive while the datapath is down, including after fbnic_stop() has freed related state during an incomplete PCIe recovery.
What condition indicates that queue operations should be rejected?
The Rx queue's stored NAPI pointer is NULL exactly while the datapath is down. Queue memory allocation should reject that state rather than accessing freed driver state.
How does the fix avoid selecting the wrong NAPI vector?
The fix reads the NAPI pointer recorded on the netdev Rx queue by netif_queue_set_napi(), rather than deriving a vector from the queue index modulo the number of NAPI vectors. This mapping is protected by the same netdev instance lock used by the queue-management operations.