CVE-2026-139240
ibmveth: fix netpoll races with RX replenish
Check your servers for CVE-2026-139240
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139240 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.64%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 51.8% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 6b4223748895ed5b200c8049231567ea399fc0c2, before 15f670a0dc7e24a6edc3c122c1be6fa994767b1e affected from 6b4223748895ed5b200c8049231567ea399fc0c2, before 03bb08bc75a93cf0a19ec76e126a0d55bead61e0 affected from 6b4223748895ed5b200c8049231567ea399fc0c2, before 36c892d98c47a996434fbde0e76b1ad109cd1408 affected from 6b4223748895ed5b200c8049231567ea399fc0c2, before fc96f9a04f8cff363b50622ec2cd3a337e90eecd affected from 6b4223748895ed5b200c8049231567ea399fc0c2, before 0e6dcd2550e5637fa01af1194516209549f031c0 affected from 6b4223748895ed5b200c8049231567ea399fc0c2, before c5a87f1a13273b6ca62498c4338773ae4d44ba39 affected from 6b4223748895ed5b200c8049231567ea399fc0c2, before 7049291d38a6e8787c9fc934d026f023b6db488d affected from 6b4223748895ed5b200c8049231567ea399fc0c2, before 8d9ecac6b96e61d0e6d126c60644829fd9f66952
Other versions: unaffected
|
| Linux |
affected 2.6.19 unaffected before 2.6.19 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.119 up to and including 6.12.* unaffected from 6.18.65 up to and including 6.18.* unaffected from 7.3.6 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139240 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139240
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-139240
trivy image --scanners vuln IMAGE | grep CVE-2026-139240
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/15f670a0dc7e24a6edc3c122c1be6fa994767b1e git.kernel.org
- https://git.kernel.org/stable/c/03bb08bc75a93cf0a19ec76e126a0d55bead61e0 git.kernel.org
- https://git.kernel.org/stable/c/36c892d98c47a996434fbde0e76b1ad109cd1408 git.kernel.org
- https://git.kernel.org/stable/c/fc96f9a04f8cff363b50622ec2cd3a337e90eecd git.kernel.org
- https://git.kernel.org/stable/c/0e6dcd2550e5637fa01af1194516209549f031c0 git.kernel.org
- https://git.kernel.org/stable/c/c5a87f1a13273b6ca62498c4338773ae4d44ba39 git.kernel.org
- https://git.kernel.org/stable/c/7049291d38a6e8787c9fc934d026f023b6db488d git.kernel.org
- https://git.kernel.org/stable/c/8d9ecac6b96e61d0e6d126c60644829fd9f66952 git.kernel.org
Source: the record CVE-2026-139240 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse