{"id":"CVE-2026-139239","state":"PUBLISHED","title":"ibmveth: do not close twice after a failed reopen","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nibmveth: do not close twice after a failed reopen\n\nibmveth_change_mtu(), veth_pool_store(), ibmveth_set_csum_offload()\nand ibmveth_set_tso() call close() and open() directly. If open() fails,\nNAPI is left disabled while IFF_UP stays set, so the next close()\n(ifdown, unregister or another reconfiguration) calls napi_disable()\nagain and waits forever with RTNL held. Networking and shutdown\nhang; only a reboot recovers. ethtool -L in that state also wakes\nqueues that have no TX buffer and dereferences NULL in\nibmveth_start_xmit().\n\nAny open() failure on those paths triggers it, for example an\nallocation failure on an MTU change to jumbo frames.\n\nTrack a successful open in adapter->opened. close() returns early\nwhen it is clear, and set_channels() checks it instead of IFF_UP.\n\nThe open() error-path leaks were fixed separately in net by\ncommit af0524bf4ce1 (\"ibmveth: h_free logical LAN on open-fail after\nregister\") and commit 84bec0bf0352 (\"ibmveth: fix TX LTB and filter\nunwind on open-fail\"), which are now in net-next too, so a failed\nopen() no longer leaves TX buffers or the logical LAN registration\nbehind for the early return to skip.\n\nFound in review of the ibmveth multi-queue RX series and confirmed by\ncode inspection. Tested on a POWER10 LPAR with ibmveth_open() forced to\nfail by a test-only module parameter (not part of this patch): 'ip link\nset dev eth1 mtu 9000' fails, then 'ip link set dev eth1 down' returns\nat once and 'ip link set dev eth1 up' recovers the interface. No kernel\nselftests cover ibmveth.","publishedAt":"2026-11-30T13:32:54.548Z","updatedAt":"2026-11-30T13:32:54.548Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"860f242eb5340d0b0cfe243cb86b2a98f92e8b91","status":"affected","lessThan":"461f7703ca52e6136db32a23a8a3f29c5324a37f","versionType":"git"},{"version":"860f242eb5340d0b0cfe243cb86b2a98f92e8b91","status":"affected","lessThan":"151397505c97bbd096779904ba143dcdd5c0a467","versionType":"git"},{"version":"860f242eb5340d0b0cfe243cb86b2a98f92e8b91","status":"affected","lessThan":"95811c873d1b97c424a7e6e731730cbf6656ab7e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/ibm/ibmveth.c","drivers/net/ethernet/ibm/ibmveth.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.18","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","drivers/net/ethernet/ibm/ibmveth.h"]}],"references":["https://git.kernel.org/stable/c/461f7703ca52e6136db32a23a8a3f29c5324a37f","https://git.kernel.org/stable/c/151397505c97bbd096779904ba143dcdd5c0a467","https://git.kernel.org/stable/c/95811c873d1b97c424a7e6e731730cbf6656ab7e"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139239.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139239","state":"PUBLISHED","datePublished":"2026-11-30T13:32:54.548Z","dateUpdated":"2026-11-30T13:32:54.548Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.922Z"},"containers":{"cna":{"title":"ibmveth: do not close twice after a failed reopen","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nibmveth: do not close twice after a failed reopen\n\nibmveth_change_mtu(), veth_pool_store(), ibmveth_set_csum_offload()\nand ibmveth_set_tso() call close() and open() directly. If open() fails,\nNAPI is left disabled while IFF_UP stays set, so the next close()\n(ifdown, unregister or another reconfiguration) calls napi_disable()\nagain and waits forever with RTNL held. Networking and shutdown\nhang; only a reboot recovers. ethtool -L in that state also wakes\nqueues that have no TX buffer and dereferences NULL in\nibmveth_start_xmit().\n\nAny open() failure on those paths triggers it, for example an\nallocation failure on an MTU change to jumbo frames.\n\nTrack a successful open in adapter->opened. close() returns early\nwhen it is clear, and set_channels() checks it instead of IFF_UP.\n\nThe open() error-path leaks were fixed separately in net by\ncommit af0524bf4ce1 (\"ibmveth: h_free logical LAN on open-fail after\nregister\") and commit 84bec0bf0352 (\"ibmveth: fix TX LTB and filter\nunwind on open-fail\"), which are now in net-next too, so a failed\nopen() no longer leaves TX buffers or the logical LAN registration\nbehind for the early return to skip.\n\nFound in review of the ibmveth multi-queue RX series and confirmed by\ncode inspection. Tested on a POWER10 LPAR with ibmveth_open() forced to\nfail by a test-only module parameter (not part of this patch): 'ip link\nset dev eth1 mtu 9000' fails, then 'ip link set dev eth1 down' returns\nat once and 'ip link set dev eth1 up' recovers the interface. No kernel\nselftests cover ibmveth."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"860f242eb5340d0b0cfe243cb86b2a98f92e8b91","status":"affected","lessThan":"461f7703ca52e6136db32a23a8a3f29c5324a37f","versionType":"git"},{"version":"860f242eb5340d0b0cfe243cb86b2a98f92e8b91","status":"affected","lessThan":"151397505c97bbd096779904ba143dcdd5c0a467","versionType":"git"},{"version":"860f242eb5340d0b0cfe243cb86b2a98f92e8b91","status":"affected","lessThan":"95811c873d1b97c424a7e6e731730cbf6656ab7e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/ibm/ibmveth.c","drivers/net/ethernet/ibm/ibmveth.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.18","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","drivers/net/ethernet/ibm/ibmveth.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/461f7703ca52e6136db32a23a8a3f29c5324a37f"},{"url":"https://git.kernel.org/stable/c/151397505c97bbd096779904ba143dcdd5c0a467"},{"url":"https://git.kernel.org/stable/c/95811c873d1b97c424a7e6e731730cbf6656ab7e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:54.548Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.18","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.18","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.18","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}