CVE-2026-98615: eth: fbnic: Set AW_FLUSH_MODE alongside AW_FLUSH when flushing the mailbox
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
eth: fbnic: Set AW_FLUSH_MODE alongside AW_FLUSH when flushing the mailbox
When tearing down the FW mailbox Rx ring, fbnic_mbx_reset_desc_ring() writes AW_CFG with FLUSH set and everything else, BME included, cleared. Clearing BME halts the device's writes to the host but leaves the staged requests parked in the PUL write pipeline rather than draining them, so on the write path FLUSH alone never terminates the outstanding requests and the flush the firmware waits on never completes.
Add the FLUSH_MODE definition and set both bits so the staged writes drain out of the pipeline on their own. BME stays cleared, so nothing lands on the host; it is restored later in fbnic_mbx_init_desc_ring() when the ring is rebuilt, once the outstanding writes are gone.
The read path is unaffected. AR_CFG has no equivalent mode bit and AR_FLUSH terminates the outstanding reads by itself, so it is left as is.
Both writes remain plain stores rather than read-modify-writes. That is
deliberate: the matching write in fbnic_mbx_init_desc_ring() restores BME and the TLP attributes, and clears both flush bits as a side effect.
The Linux kernel CVE team has assigned CVE-2026-98615 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.12.29 with commit fea860a2a6136658708fb530a82d59d29f708b74 and fixed in 6.12.112 with commit ed4163f6ba9b52bfd6216d5215ee7b8eb5072411 Issue introduced in 6.15 with commit 3b12f00ddd08e888273b2ac0488d396d90a836fc and fixed in 6.18.55 with commit 8a052cd4b2caee1f90cf0e3874377066939c90e7 Issue introduced in 6.15 with commit 3b12f00ddd08e888273b2ac0488d396d90a836fc and fixed in 7.2.9 with commit a969db6548a1b046cd1423701f5f9c3f5794e90d Issue introduced in 6.15 with commit 3b12f00ddd08e888273b2ac0488d396d90a836fc and fixed in 7.3-rc5 with commit 8947f13e436a4ff5eed9f8f019b2865a07af4bb2 Issue introduced in 6.14.7 with commit 0a4aa8a32ddb96f320173a2e9b0e41f4a6d3746c
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-98615
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/meta/fbnic/fbnic_csr.h drivers/net/ethernet/meta/fbnic/fbnic_fw.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/ed4163f6ba9b52bfd6216d5215ee7b8eb5072411 https://git.kernel.org/stable/c/8a052cd4b2caee1f90cf0e3874377066939c90e7 https://git.kernel.org/stable/c/a969db6548a1b046cd1423701f5f9c3f5794e90d https://git.kernel.org/stable/c/8947f13e436a4ff5eed9f8f019b2865a07af4bb2