{"id":"CVE-2026-139239","aliases":["CVE-2026-139239"],"related":[],"kind":"vulnerability","state":"published","title":"ibmveth: do not close twice after a failed reopen","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:32:54.548Z","modified":"2026-11-30T14:18:45.987Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"860f242eb5340d0b0cfe243cb86b2a98f92e8b91","fixed":"461f7703ca52e6136db32a23a8a3f29c5324a37f","status":"affected"},{"type":"git","introduced":"860f242eb5340d0b0cfe243cb86b2a98f92e8b91","fixed":"151397505c97bbd096779904ba143dcdd5c0a467","status":"affected"},{"type":"git","introduced":"860f242eb5340d0b0cfe243cb86b2a98f92e8b91","fixed":"95811c873d1b97c424a7e6e731730cbf6656ab7e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.18","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/461f7703ca52e6136db32a23a8a3f29c5324a37f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/151397505c97bbd096779904ba143dcdd5c0a467","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/95811c873d1b97c424a7e6e731730cbf6656ab7e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139239","url":"https://www.cve.org/CVERecord?id=CVE-2026-139239","licence":"CVE Terms of Use","modified":"2026-11-30T13:32:54.548Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139239","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139239","licence":"Public domain","modified":"2026-11-30T14:18:45.987Z"}],"updatedAt":"2026-11-30T14:33:01.857Z","epss":{"score":0.00198,"percentile":0.10122,"date":"2026-12-01T12:00:22.000Z"}}