{"id":"CVE-2026-139240","state":"PUBLISHED","title":"ibmveth: fix netpoll races with RX replenish","description":"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.","publishedAt":"2026-11-30T13:32:55.115Z","updatedAt":"2026-11-30T13:32:55.115Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","status":"affected","lessThan":"15f670a0dc7e24a6edc3c122c1be6fa994767b1e","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","status":"affected","lessThan":"03bb08bc75a93cf0a19ec76e126a0d55bead61e0","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","status":"affected","lessThan":"36c892d98c47a996434fbde0e76b1ad109cd1408","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","status":"affected","lessThan":"fc96f9a04f8cff363b50622ec2cd3a337e90eecd","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","status":"affected","lessThan":"0e6dcd2550e5637fa01af1194516209549f031c0","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","status":"affected","lessThan":"c5a87f1a13273b6ca62498c4338773ae4d44ba39","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","status":"affected","lessThan":"7049291d38a6e8787c9fc934d026f023b6db488d","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","status":"affected","lessThan":"8d9ecac6b96e61d0e6d126c60644829fd9f66952","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/ibm/ibmveth.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.19","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/ibm/ibmveth.c"]}],"references":["https://git.kernel.org/stable/c/15f670a0dc7e24a6edc3c122c1be6fa994767b1e","https://git.kernel.org/stable/c/03bb08bc75a93cf0a19ec76e126a0d55bead61e0","https://git.kernel.org/stable/c/36c892d98c47a996434fbde0e76b1ad109cd1408","https://git.kernel.org/stable/c/fc96f9a04f8cff363b50622ec2cd3a337e90eecd","https://git.kernel.org/stable/c/0e6dcd2550e5637fa01af1194516209549f031c0","https://git.kernel.org/stable/c/c5a87f1a13273b6ca62498c4338773ae4d44ba39","https://git.kernel.org/stable/c/7049291d38a6e8787c9fc934d026f023b6db488d","https://git.kernel.org/stable/c/8d9ecac6b96e61d0e6d126c60644829fd9f66952"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139240.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139240","state":"PUBLISHED","datePublished":"2026-11-30T13:32:55.115Z","dateUpdated":"2026-11-30T13:32:55.115Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.922Z"},"containers":{"cna":{"title":"ibmveth: fix netpoll races with RX replenish","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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","status":"affected","lessThan":"15f670a0dc7e24a6edc3c122c1be6fa994767b1e","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","status":"affected","lessThan":"03bb08bc75a93cf0a19ec76e126a0d55bead61e0","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","status":"affected","lessThan":"36c892d98c47a996434fbde0e76b1ad109cd1408","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","status":"affected","lessThan":"fc96f9a04f8cff363b50622ec2cd3a337e90eecd","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","status":"affected","lessThan":"0e6dcd2550e5637fa01af1194516209549f031c0","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","status":"affected","lessThan":"c5a87f1a13273b6ca62498c4338773ae4d44ba39","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","status":"affected","lessThan":"7049291d38a6e8787c9fc934d026f023b6db488d","versionType":"git"},{"version":"6b4223748895ed5b200c8049231567ea399fc0c2","status":"affected","lessThan":"8d9ecac6b96e61d0e6d126c60644829fd9f66952","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/ibm/ibmveth.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.19","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/ibm/ibmveth.c"]}],"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"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:55.115Z"},"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"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}