{"api_version":"1","generated_at":"2026-11-30T18:38:08+00:00","cve":"CVE-2026-139240","urls":{"html":"https://cve.report/CVE-2026-139240","api":"https://cve.report/api/cve/CVE-2026-139240.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139240","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139240"},"summary":{"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:46","updated_at":"2026-11-30 14:18:46"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/36c892d98c47a996434fbde0e76b1ad109cd1408","name":"https://git.kernel.org/stable/c/36c892d98c47a996434fbde0e76b1ad109cd1408","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/fc96f9a04f8cff363b50622ec2cd3a337e90eecd","name":"https://git.kernel.org/stable/c/fc96f9a04f8cff363b50622ec2cd3a337e90eecd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7049291d38a6e8787c9fc934d026f023b6db488d","name":"https://git.kernel.org/stable/c/7049291d38a6e8787c9fc934d026f023b6db488d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/15f670a0dc7e24a6edc3c122c1be6fa994767b1e","name":"https://git.kernel.org/stable/c/15f670a0dc7e24a6edc3c122c1be6fa994767b1e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c5a87f1a13273b6ca62498c4338773ae4d44ba39","name":"https://git.kernel.org/stable/c/c5a87f1a13273b6ca62498c4338773ae4d44ba39","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8d9ecac6b96e61d0e6d126c60644829fd9f66952","name":"https://git.kernel.org/stable/c/8d9ecac6b96e61d0e6d126c60644829fd9f66952","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/03bb08bc75a93cf0a19ec76e126a0d55bead61e0","name":"https://git.kernel.org/stable/c/03bb08bc75a93cf0a19ec76e126a0d55bead61e0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0e6dcd2550e5637fa01af1194516209549f031c0","name":"https://git.kernel.org/stable/c/0e6dcd2550e5637fa01af1194516209549f031c0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139240","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139240","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6b4223748895ed5b200c8049231567ea399fc0c2 15f670a0dc7e24a6edc3c122c1be6fa994767b1e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6b4223748895ed5b200c8049231567ea399fc0c2 03bb08bc75a93cf0a19ec76e126a0d55bead61e0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6b4223748895ed5b200c8049231567ea399fc0c2 36c892d98c47a996434fbde0e76b1ad109cd1408 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6b4223748895ed5b200c8049231567ea399fc0c2 fc96f9a04f8cff363b50622ec2cd3a337e90eecd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6b4223748895ed5b200c8049231567ea399fc0c2 0e6dcd2550e5637fa01af1194516209549f031c0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6b4223748895ed5b200c8049231567ea399fc0c2 c5a87f1a13273b6ca62498c4338773ae4d44ba39 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6b4223748895ed5b200c8049231567ea399fc0c2 7049291d38a6e8787c9fc934d026f023b6db488d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6b4223748895ed5b200c8049231567ea399fc0c2 8d9ecac6b96e61d0e6d126c60644829fd9f66952 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.19","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.19 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/net/ethernet/ibm/ibmveth.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"15f670a0dc7e24a6edc3c122c1be6fa994767b1e","status":"affected","version":"6b4223748895ed5b200c8049231567ea399fc0c2","versionType":"git"},{"lessThan":"03bb08bc75a93cf0a19ec76e126a0d55bead61e0","status":"affected","version":"6b4223748895ed5b200c8049231567ea399fc0c2","versionType":"git"},{"lessThan":"36c892d98c47a996434fbde0e76b1ad109cd1408","status":"affected","version":"6b4223748895ed5b200c8049231567ea399fc0c2","versionType":"git"},{"lessThan":"fc96f9a04f8cff363b50622ec2cd3a337e90eecd","status":"affected","version":"6b4223748895ed5b200c8049231567ea399fc0c2","versionType":"git"},{"lessThan":"0e6dcd2550e5637fa01af1194516209549f031c0","status":"affected","version":"6b4223748895ed5b200c8049231567ea399fc0c2","versionType":"git"},{"lessThan":"c5a87f1a13273b6ca62498c4338773ae4d44ba39","status":"affected","version":"6b4223748895ed5b200c8049231567ea399fc0c2","versionType":"git"},{"lessThan":"7049291d38a6e8787c9fc934d026f023b6db488d","status":"affected","version":"6b4223748895ed5b200c8049231567ea399fc0c2","versionType":"git"},{"lessThan":"8d9ecac6b96e61d0e6d126c60644829fd9f66952","status":"affected","version":"6b4223748895ed5b200c8049231567ea399fc0c2","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/net/ethernet/ibm/ibmveth.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.19"},{"lessThan":"2.6.19","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"2.6.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"2.6.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"2.6.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"2.6.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"2.6.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"2.6.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"2.6.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"2.6.19","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:32:55.115Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139240","datePublished":"2026-11-30T13:32:55.115Z","dateReserved":"2026-11-30T13:22:15.922Z","dateUpdated":"2026-11-30T13:32:55.115Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:46","lastModifiedDate":"2026-11-30 14:18:46","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139240","Ordinal":"1","Title":"ibmveth: fix netpoll races with RX replenish","CVE":"CVE-2026-139240","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139240","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"ibmveth: fix netpoll races with RX replenish"}]}}}