CVE-2026-139236: ibmveth: wait for in-flight transmits in ibmveth_close()
In the Linux kernel, the following vulnerability has been resolved:
ibmveth: wait for in-flight transmits in ibmvethclose()
ibmvethclose() frees the TX buffers after netiftxstopallqueues(), which does not wait for an ibmvethstartxmit() already running on another CPU. That transmit can copy into a freed buffer and hand PHYP a stale DMA address.
MTU, csum/TSO and buffer pool changes call ibmvethclose() directly while traffic flows. ifdown and the reset work go through devclose(), which waits for running transmits only when the qdisc has an enqueue function, so with noqueue they race the same way.
Use netiftxdisable(), which waits for running transmits.
Found in review of the ibmveth multi-queue RX series and confirmed by code inspection; the race was not reproduced. Tested on a POWER10 LPAR with MTU changes during a ping flood, with no warnings. No kernel selftests cover ibmveth.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In ibmveth_close(), use netif_tx_disable() instead of netif_tx_stop_all_queues() so the function waits for in-flight transmits before freeing TX buffers.
Event History
Frequently Asked Questions
Which systems are exposed to this race?
Systems using the Linux ibmveth network driver are exposed when the interface is closed or reconfigured while transmit traffic is still in flight. The issue was tested on a POWER10 LPAR, and the affected driver hands transmit DMA addresses to PHYP.
What conditions trigger the vulnerable path?
MTU, checksum/TSO, and buffer-pool changes can call ibmveth_close() directly while traffic is flowing. Interface shutdown and reset work can also race when the device uses the noqueue qdisc.
What is the practical impact of the race?
An already-running transmit may copy into a TX buffer after it has been freed and may provide PHYP with a stale DMA address. The race was identified through code inspection and was not reproduced.
What mitigation is available if the fix cannot be deployed immediately?
Avoid changing MTU, checksum/TSO settings, or buffer-pool configuration while ibmveth traffic is active. Avoid interface shutdowns or resets during active traffic where possible, particularly with the noqueue qdisc.