CVE-2026-143213: fbnic: Wait for the outbound flush to complete on mailbox teardown
In the Linux kernel, the following vulnerability has been resolved:
fbnic: Wait for the outbound flush to complete on mailbox teardown
The fbnicmbxresetdescring function drops bus mastering and arms the outbound flush for its ring: the write flush for the Rx ring and the read flush for the Tx ring. Nothing waits for that flush to finish. The fbnicmbxcleandescring function goes straight on to unmap and free the ring's buffers, so a device read of a Tx buffer, or a write to an Rx buffer, can still be outstanding after the buffer is gone. With an IOMMU it can also target an IOVA that has been unmapped or reused.
The PUL link reset status register reports when each direction's flush has drained. Poll the done bit for the ring's direction after arming the flush and before freeing its buffers. The flush only has to retire what the outbound path already holds; the 1ms cap keeps a wedged device from spinning.
Every caller of the fbnicmbxclean function runs with the datapath already down, which matters because the read flush covers all outstanding reads, not just the mailbox ones. A device that has lost its link reads back as all ones, so the done bit appears set and the poll ends on the first pass.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In fbnic mailbox teardown, after arming the outbound flush, poll the done bit for the ring’s direction and wait for the flush to complete before unmapping or freeing the ring buffers.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel fbnic driver are exposed when mailbox descriptor rings are torn down while the device may still have outbound DMA operations pending. The issue affects both Tx device reads and Rx device writes to ring buffers.
Why is this more serious on systems using an IOMMU?
After the ring buffers are unmapped and freed, an outstanding device DMA operation can target an IOVA that has already been unmapped or reused. This can make stale device accesses reach unintended memory mappings.
What condition must exist for the unsafe access to occur?
The device must still have an outstanding outbound read or write after bus mastering is dropped and the outbound flush is armed, but before that flush has completed. Mailbox cleanup is performed with the datapath already down, because the read flush covers all outstanding reads rather than only mailbox reads.