CVE-2026-139238: ibmveth: disable the reset work before unregister in remove
In the Linux kernel, the following vulnerability has been resolved:
ibmveth: disable the reset work before unregister in remove
ibmvethremove() cancels the reset work before unregisternetdev(), but NAPI keeps running until unregister closes the device and can queue the reset again, on an interrupt enable failure, a bad freemap entry or a bad RX slot. The reset can then run on the adapter after freenetdev(), or reopen the device during unregister.
Use disableworksync(), which waits for a running reset and keeps the work from being queued again. A bad RX slot also makes poll spin, which can stall unregister; a later patch in this series fixes that.
Found in review of the ibmveth multi-queue RX series and confirmed by code inspection; it was not reproduced. Tested on a POWER10 LPAR with unbind and bind cycles under traffic. No kernel selftests cover ibmveth.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In ibmveth_remove(), use disable_work_sync() on the reset work before unregister_netdev() so a running reset finishes and the work cannot be queued again.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel ibmveth network driver are relevant. The issue concerns device removal or unbind while the adapter is active, because NAPI can still queue reset work during unregister.
What conditions can trigger the unsafe reset work?
The reset may be queued if enabling interrupts fails, a free_map entry is invalid, or an RX slot is invalid. If queued during removal, it can run after free_netdev() or reopen the device while unregister is in progress.
How can I tell whether this has been reproduced in practice?
The issue was identified during review and confirmed by code inspection; it was not reproduced. Testing on a POWER10 LPAR included unbind and bind cycles under traffic, and no kernel selftests cover ibmveth.
Is there a related operational concern during device removal?
A bad RX slot can cause the poll routine to spin and stall unregister. The description states that a later patch in the same series addresses that separate stall condition.