CVE-2026-139240
published high CVSS 3.1 · 8.1ibmveth: fix netpoll races with RX replenish
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux6b4223748895ed5b200c8049231567ea399fc0c2 to < 15f670a0dc7e24a6edc3c122c1be6fa994767b1e · 6b4223748895ed5b200c8049231567ea399fc0c2 to < 03bb08bc75a93cf0a19ec76e126a0d55bead61e0 · 6b4223748895ed5b200c8049231567ea399fc0c2 to < 36c892d98c47a996434fbde0e76b1ad109cd1408 · 6b4223748895ed5b200c8049231567ea399fc0c2 to < fc96f9a04f8cff363b50622ec2cd3a337e90eecd · 6b4223748895ed5b200c8049231567ea399fc0c2 to < 0e6dcd2550e5637fa01af1194516209549f031c0 · 6b4223748895ed5b200c8049231567ea399fc0c2 to < c5a87f1a13273b6ca62498c4338773ae4d44ba39 · 6b4223748895ed5b200c8049231567ea399fc0c2 to < 7049291d38a6e8787c9fc934d026f023b6db488d · 6b4223748895ed5b200c8049231567ea399fc0c2 to < 8d9ecac6b96e61d0e6d126c60644829fd9f66952 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.19 (affected) · 0 to < 2.6.19 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: ibmveth: fix netpoll races with RX replenish ibmveth_poll_controller() runs RX replenish outside NAPI and without a lock, racing NAPI's replenish on another CPU. Both can fill the same slot, so an skb and its DMA mapping leak and PHYP can write into an unmapped buffer. netpoll calls it from netconsole and from netpoll-enabled bonds. ibmveth_open() also enables NAPI before the RX resources exist. ibmveth_change_mtu(), veth_pool_store(), ibmveth_set_csum_offload() and ibmveth_set_tso() call close() and open() directly, so while open() is still setting up, netpoll and the direct ibmveth_interrupt() calls can replenish NULL pools and read freed memory. Remove the callback, as Eric Dumazet did for many drivers after commit ac3d9dd034e5 ("netpoll: make ndo_poll_controller() optional"), including ibmvnic in commit 0c3b9d1b37df ("ibmvnic: remove ndo_poll_controller"). netpoll then polls NAPI itself with budget 0. napi->poll_owner serializes that with NAPI, but not with a NAPI poll that was already running when netpoll was set up, so skip RX replenish at budget 0, which netpoll uses for TX only. TX completes synchronously, so ibmveth_poll() has nothing else to do for netpoll. Enable NAPI just before request_irq(), once everything ibmveth_poll() touches exists. Found in review of the ibmveth multi-queue RX series and confirmed by code inspection of poll_one_napi() and the direct close()/open() callers; neither race was reproduced. Tested on a POWER10 LPAR with netconsole over ibmveth: a ping flood (678,470 packets, no loss) during a printk flood, and MTU changes and buffer pool toggles under traffic, with no warnings. No kernel selftests cover ibmveth.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - No malformed input: one side of the race is NAPI ibmveth_poll()->ibmveth_replenish_task(), which runs only when frames from any host on the routed virtual LAN drain a pool below threshold. The damage lands on those frames: a double-posted slot lets PHYP DMA a received frame into an skb the stack already freed, or hands up a stale skb in its place. AC:H - Needs netconsole (or a netpoll bond) on ibmveth, which is root config, and a console message while netpoll's HARD_TX_TRYLOCK fails, so netpoll_poll_dev() runs the unlocked ibmveth_poll_controller() replenish at the same consumer_index as NAPI. It also needs a specific dma_addr[]/skbuff[] store interleave. The sender controls neither the printk nor the interleave. PR:N - Sending frames to the LPAR's ibmveth needs no authentication. The netconsole setup is the admin's deployment choice, already counted in AC:H, not a privilege the attacker holds. The other trigger is direct ibmveth_close()/ibmveth_open() from change_mtu, ethtool features or veth_pool_store; it is root-only and scores lower. UI:N - No victim action: with netconsole configured, ordinary kernel console output during RX load is enough while the remote host keeps traffic flowing to the interface. S:U - PHYP writes through the partition's own TCE table into the partition's own memory. The corruption stays inside the guest kernel and reaches neither the hypervisor nor other LPARs. C:H - When the dma_addr[index]/skbuff[index] stores interleave, ibmveth_remove_buffer_from_pool() unmaps the wrong IOVA and hands up an skb whose TCE and PHYP descriptor are still live. After the stack frees it, the next received frame is DMA-written into reallocated kernel memory, and unwritten stale skbs reach the stack as packets. I:H - That DMA puts remote-chosen frame bytes (up to the 2 KB/64 KB pool buffer size) into freed heap or page memory, which is a write into whatever object reuses the skb. Separately, the direct close()/open() window writes skbuff[]/dma_addr[]/free_map[] after ibmveth_free_buffer_pool() has kfree()d them. A:H - Heap corruption, the NULL pool->free_map dereference when replenish runs after ibmveth_close(), WARN-driven adapter resets from bogus correlators, and an skb plus TCE mapping leaked per lost slot can each crash the host or take its network down.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 6b4223748895ed5b200c8049231567ea399fc0c2 to < 15f670a0dc7e24a6edc3c122c1be6fa994767b1e (affected · git)6b4223748895ed5b200c8049231567ea399fc0c2 to < 03bb08bc75a93cf0a19ec76e126a0d55bead61e0 (affected · git)6b4223748895ed5b200c8049231567ea399fc0c2 to < 36c892d98c47a996434fbde0e76b1ad109cd1408 (affected · git)6b4223748895ed5b200c8049231567ea399fc0c2 to < fc96f9a04f8cff363b50622ec2cd3a337e90eecd (affected · git)6b4223748895ed5b200c8049231567ea399fc0c2 to < 0e6dcd2550e5637fa01af1194516209549f031c0 (affected · git)6b4223748895ed5b200c8049231567ea399fc0c2 to < c5a87f1a13273b6ca62498c4338773ae4d44ba39 (affected · git)6b4223748895ed5b200c8049231567ea399fc0c2 to < 7049291d38a6e8787c9fc934d026f023b6db488d (affected · git)6b4223748895ed5b200c8049231567ea399fc0c2 to < 8d9ecac6b96e61d0e6d126c60644829fd9f66952 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.19 (affected)0 to < 2.6.19 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/03bb08bc75a93cf0a19ec76e126a0d55bead61e0
- https://git.kernel.org/stable/c/0e6dcd2550e5637fa01af1194516209549f031c0
- https://git.kernel.org/stable/c/15f670a0dc7e24a6edc3c122c1be6fa994767b1e
- https://git.kernel.org/stable/c/36c892d98c47a996434fbde0e76b1ad109cd1408
- https://git.kernel.org/stable/c/7049291d38a6e8787c9fc934d026f023b6db488d
- https://git.kernel.org/stable/c/8d9ecac6b96e61d0e6d126c60644829fd9f66952
- https://git.kernel.org/stable/c/c5a87f1a13273b6ca62498c4338773ae4d44ba39
- https://git.kernel.org/stable/c/fc96f9a04f8cff363b50622ec2cd3a337e90eecd
Provider assertions
1Linux · cna
ibmveth: fix netpoll races with RX replenish
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 873f11f4e90c0f73139ca4c1e104af1cc1e9f06c599e0aa4248ebb8cfc7d9b53
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record