{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139240","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.922Z","datePublished":"2026-11-30T13:32:55.115Z","dateUpdated":"2026-12-01T05:41:58.134Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:41:58.134Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nibmveth: fix netpoll races with RX replenish\n\nibmveth_poll_controller() runs RX replenish outside NAPI and without\na lock, racing NAPI's replenish on another CPU. Both can fill the\nsame slot, so an skb and its DMA mapping leak and PHYP can write\ninto an unmapped buffer. netpoll calls it from netconsole and from\nnetpoll-enabled bonds.\n\nibmveth_open() also enables NAPI before the RX resources exist.\nibmveth_change_mtu(), veth_pool_store(), ibmveth_set_csum_offload()\nand ibmveth_set_tso() call close() and open() directly, so while\nopen() is still setting up, netpoll and the direct ibmveth_interrupt()\ncalls can replenish NULL pools and read freed memory.\n\nRemove the callback, as Eric Dumazet did for many drivers after\ncommit ac3d9dd034e5 (\"netpoll: make ndo_poll_controller() optional\"),\nincluding ibmvnic in commit 0c3b9d1b37df (\"ibmvnic: remove\nndo_poll_controller\"). netpoll then polls NAPI itself with budget 0.\nnapi->poll_owner serializes that with NAPI, but not with a NAPI poll\nthat was already running when netpoll was set up, so skip RX\nreplenish at budget 0, which netpoll uses for TX only. TX completes\nsynchronously, so ibmveth_poll() has nothing else to do for netpoll.\n\nEnable NAPI just before request_irq(), once everything\nibmveth_poll() touches exists.\n\nFound in review of the ibmveth multi-queue RX series and confirmed by\ncode inspection of poll_one_napi() and the direct close()/open()\ncallers; neither race was reproduced. Tested on a POWER10 LPAR with\nnetconsole over ibmveth: a ping flood (678,470 packets, no loss) during\na printk flood, and MTU changes and buffer pool toggles under traffic,\nwith no warnings. No kernel selftests cover ibmveth."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"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.\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/ibm/ibmveth.c"],"versions":[{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","lessThan":"15f670a0dc7e24a6edc3c122c1be6fa994767b1e","status":"affected","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","lessThan":"03bb08bc75a93cf0a19ec76e126a0d55bead61e0","status":"affected","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","lessThan":"36c892d98c47a996434fbde0e76b1ad109cd1408","status":"affected","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","lessThan":"fc96f9a04f8cff363b50622ec2cd3a337e90eecd","status":"affected","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","lessThan":"0e6dcd2550e5637fa01af1194516209549f031c0","status":"affected","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","lessThan":"c5a87f1a13273b6ca62498c4338773ae4d44ba39","status":"affected","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","lessThan":"7049291d38a6e8787c9fc934d026f023b6db488d","status":"affected","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","lessThan":"8d9ecac6b96e61d0e6d126c60644829fd9f66952","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/ibm/ibmveth.c"],"versions":[{"version":"2.6.19","status":"affected"},{"version":"0","lessThan":"2.6.19","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/15f670a0dc7e24a6edc3c122c1be6fa994767b1e"},{"url":"https://git.kernel.org/stable/c/03bb08bc75a93cf0a19ec76e126a0d55bead61e0"},{"url":"https://git.kernel.org/stable/c/36c892d98c47a996434fbde0e76b1ad109cd1408"},{"url":"https://git.kernel.org/stable/c/fc96f9a04f8cff363b50622ec2cd3a337e90eecd"},{"url":"https://git.kernel.org/stable/c/0e6dcd2550e5637fa01af1194516209549f031c0"},{"url":"https://git.kernel.org/stable/c/c5a87f1a13273b6ca62498c4338773ae4d44ba39"},{"url":"https://git.kernel.org/stable/c/7049291d38a6e8787c9fc934d026f023b6db488d"},{"url":"https://git.kernel.org/stable/c/8d9ecac6b96e61d0e6d126c60644829fd9f66952"}],"title":"ibmveth: fix netpoll races with RX replenish","x_generator":{"engine":"bippy-1.2.0"}}}}