CVE-2026-139239

ibmveth: do not close twice after a failed reopen

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ibmveth: do not close twice after a failed reopen

ibmveth_change_mtu(), veth_pool_store(), ibmveth_set_csum_offload()
and ibmveth_set_tso() call close() and open() directly. If open() fails,
NAPI is left disabled while IFF_UP stays set, so the next close()
(ifdown, unregister or another reconfiguration) calls napi_disable()
again and waits forever with RTNL held. Networking and shutdown
hang; only a reboot recovers. ethtool -L in that state also wakes
queues that have no TX buffer and dereferences NULL in
ibmveth_start_xmit().

Any open() failure on those paths triggers it, for example an
allocation failure on an MTU change to jumbo frames.

Track a successful open in adapter->opened. close() returns early
when it is clear, and set_channels() checks it instead of IFF_UP.

The open() error-path leaks were fixed separately in net by
commit af0524bf4ce1 ("ibmveth: h_free logical LAN on open-fail after
register") and commit 84bec0bf0352 ("ibmveth: fix TX LTB and filter
unwind on open-fail"), which are now in net-next too, so a failed
open() no longer leaves TX buffers or the logical LAN registration
behind for the early return to skip.

Found in review of the ibmveth multi-queue RX series and confirmed by
code inspection. Tested on a POWER10 LPAR with ibmveth_open() forced to
fail by a test-only module parameter (not part of this patch): 'ip link
set dev eth1 mtu 9000' fails, then 'ip link set dev eth1 down' returns
at once and 'ip link set dev eth1 up' recovers the interface. No kernel
selftests cover ibmveth.

Analysis

AI-generated

Technical impact

In the Linux kernel, the ibmveth driver performs close() and open() directly when changing MTU or setting checksum offload. If an open() fails, the Network API (NAPI) is left disabled while the IFF_UP flag remains set. A subsequent close() then attempts to re‑enable NAPI, but it waits forever holding the RTNL lock, leading to a complete networking hang and a shutdown that can only be resolved by a reboot. The error path also causes a null dereference when ethtool –L is run on an interface with no TX buffer. The result is a local denial of service that disrupts network traffic and requires a system reboot to recover.

Affected Systems

Affected is the Linux kernel on IBM POWER (LPAR) systems that use the ibmveth driver. The vulnerability is present in versions of the kernel that lack the commit updates that track successful opens and prevent double closing. No specific kernel version range is enumerated, but the fix is included in the stable commit history cited in the references.

Risk and Exploitability

The CVSS score is not provided and the EPSS score is not available, so the exploitation likelihood cannot be quantified precisely. The vulnerability is not listed in the CISA KEV catalog. The attack vector appears to be local: an attacker with the ability to change MTU settings or reconfigure the interface could trigger the failure path. Given the lack of publicly documented exploits, the risk is considered moderate, mitigated by applying the bug fixes.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that contains the ibmveth patches (commits 151397505c97bbd096779904ba143dcdd5c0a467, 461f7703ca52e6136db32a23a8a3f29c5324a37f, and 95811c873d1b97c424a7e6e731730cbf6656ab7e).
  • If updating the kernel immediately is not possible, avoid performing MTU changes to jumbo frames on ibmveth interfaces until the patch is applied, as these actions trigger the failure path.
  • When an interface hangs, bring the interface down with 'ip link set dev <iface> down' and then up again. A system reboot is also an effective recovery method.

Generated by OpenCVE AI on December 1, 2026 at 10:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ibmveth: do not close twice after a failed reopen ibmveth_change_mtu(), veth_pool_store(), ibmveth_set_csum_offload() and ibmveth_set_tso() call close() and open() directly. If open() fails, NAPI is left disabled while IFF_UP stays set, so the next close() (ifdown, unregister or another reconfiguration) calls napi_disable() again and waits forever with RTNL held. Networking and shutdown hang; only a reboot recovers. ethtool -L in that state also wakes queues that have no TX buffer and dereferences NULL in ibmveth_start_xmit(). Any open() failure on those paths triggers it, for example an allocation failure on an MTU change to jumbo frames. Track a successful open in adapter->opened. close() returns early when it is clear, and set_channels() checks it instead of IFF_UP. The open() error-path leaks were fixed separately in net by commit af0524bf4ce1 ("ibmveth: h_free logical LAN on open-fail after register") and commit 84bec0bf0352 ("ibmveth: fix TX LTB and filter unwind on open-fail"), which are now in net-next too, so a failed open() no longer leaves TX buffers or the logical LAN registration behind for the early return to skip. Found in review of the ibmveth multi-queue RX series and confirmed by code inspection. Tested on a POWER10 LPAR with ibmveth_open() forced to fail by a test-only module parameter (not part of this patch): 'ip link set dev eth1 mtu 9000' fails, then 'ip link set dev eth1 down' returns at once and 'ip link set dev eth1 up' recovers the interface. No kernel selftests cover ibmveth.
Title ibmveth: do not close twice after a failed reopen
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM