CVE-2026-139240: ibmveth: fix netpoll races with RX replenish
ibmveth: fix netpoll races with RX replenish
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
Remove ibmveth's ndo_poll_controller callback so netpoll uses NAPI polling instead of running RX replenish outside NAPI.
- Compensating control
Skip RX replenish in ibmveth_poll() when the NAPI budget is 0; netpoll uses budget 0 for TX only.
- Compensating control
Enable NAPI in ibmveth_open() just before request_irq(), after RX resources have been set up.
Event History
Frequently Asked Questions
Which deployments can encounter this race?
The race involves the ibmveth driver when netpoll is used, including through netconsole or netpoll-enabled bonds. It can also occur during ibmveth setup while direct interrupt handling or netpoll runs concurrently with RX resource initialization.
What operations can increase the chance of hitting the unsafe setup window?
Changing the MTU, virtual Ethernet pool settings, checksum offload, or TSO causes the driver to close and reopen. During that reopen sequence, RX pools may be unavailable while netpoll or direct interrupt processing attempts RX replenishment.
What are the consequences if the race occurs?
Concurrent replenish operations can populate the same RX slot, leaking an skb and its DMA mapping. The hypervisor may then write into an unmapped buffer, and replenish processing can access freed memory or NULL pools during setup.
What does the fix change?
The fix removes the driver's netpoll poll-controller callback so netpoll polls NAPI directly. It also avoids RX replenishment during budget-zero polling, which netpoll uses for TX-only processing.