CVE-2026-142898: ibmveth: step past bad RX correlators instead of spinning or oopsing
In the Linux kernel, the following vulnerability has been resolved:
ibmveth: step past bad RX correlators instead of spinning or oopsing
ibmvethpoll() mishandles a bad RX correlator from PHYP in two ways.
If harvest fails or ibmvethrxqgetbuffer() returns NULL, poll breaks out without advancing the ring and restarts on the same slot forever. For an out-of-range correlator it also fires a WARNON() and schedules a reset each pass, but the reset is queued on that CPU and never runs, and the CPU stalls RCU, so RTNL holders hang too. This dates from the first commit in Fixes:, which turned the BUGON()s here into WARNON() plus a reset.
The range check also accepts a correlator naming an inactive buffer pool (pools 2 and 3 by default), whose skbuff array is NULL, so the lookup dereferences NULL in softirq. Pools became inactive with the second commit in Fixes:.
Validate the correlator in one helper that also rejects a pool with no skbuff array. On a bad slot, advance the ring, count the drop in rxdropped and still schedule the reset, which rebuilds the pools. The slot has moved, so stay in the budget loop and count it in framesprocessed. Breaking out would complete NAPI, re-arm, and napischedule() with budget left. When the final check finds more work, queue the NAPI and return instead of going back to restartpoll: after napicompletedone() the NAPI is no longer this call's, and with threaded NAPI and busy polling the kthread can already be polling it on another CPU. framesprocessed is below budget there, so busypollstop() does not queue it a second time. Mask the interrupt before queueing, as ibmvethinterrupt() does; masking after napischedule() could land after that kthread has finished and unmasked, leaving RX masked with nothing scheduled.
Drop a frame whose offset + length does not fit the pool buffer: copybreak would read past the RX buffer and skbput() would BUG(). Also drop one shorter than an Ethernet header, which ethtypetrans() would read past. Read the correlator once per slot and use that value for the lookup, the bound and the harvest.
The base driver never checked frame bounds, and they have not been seen in the field, so they have no Fixes: tag of their own. The tags below are for the correlator hang.
The correlator comes from PHYP, and with the ring advancing a burst of bad slots would WARN once per slot (and panic with paniconwarn), so use a ratelimited netdeverr() instead. Also free the rxcopybreak skb if harvest fails there.
Add a KUnit case for harvest advancing on errors and extend the existing cases to an inactive pool. Run against the unfixed driver, with the calls changed back to its signatures, the first fails and the others oops.
Found in review of the ibmveth multi-queue RX series (the frame bound by the Sashiko review of v2 of this series) and confirmed by code inspection and the KUnit cases above. Hitting either correlator bug needs PHYP to return a bad correlator, so neither was reproduced on hardware. Tested with KUnit on qemu pseries (ppc64le), and on a POWER10 LPAR with a ping flood and MTU changes under traffic. No kernel selftests cover ibmveth.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- 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 - Compensating control
Update ibmveth RX handling to validate each PHYP correlator before dereferencing it, including rejecting inactive pools; on a bad slot, advance the ring, increment rx_dropped, log with ratelimited netdev_err instead of WARN_ON, and schedule a reset. Reject frames whose offset plus length exceeds the pool buffer or whose length is shorter than an Ethernet header. If harvesting fails or ibmveth_rxq_get_buffer() returns NULL, free any rx_copybreak skb, queue NAPI, and return rather than retrying the same slot. Mask the interrupt before queueing NAPI.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux ibmveth driver are affected when PHYP supplies a bad RX correlator. The vulnerable validation can also accept correlators for inactive buffer pools; pools 2 and 3 are inactive by default.
What condition triggers the failure?
The failure is triggered by a bad, out-of-range, or otherwise invalid RX correlator from PHYP, including one that names a pool with no skbuff array. This can cause the receive poll loop to repeatedly process the same ring slot or dereference a NULL skbuff array in softirq context.
How might an affected system behave?
A CPU can spin in the receive polling path, stall RCU, and cause holders of RTNL to hang. Out-of-range correlators may repeatedly produce WARN_ON activity and queue resets that do not run while the CPU is stalled; an inactive-pool correlator can cause a NULL dereference in softirq.
What does the fix change?
The fix validates correlators in a helper that rejects pools without an skbuff array. For a bad slot, it advances the receive ring, records the packet as dropped in rx_dropped, continues processing within the NAPI budget, and schedules a reset to rebuild the pools.