CVE-2026-139236

ibmveth: wait for in-flight transmits in ibmveth_close()

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: wait for in-flight transmits in ibmveth_close()

ibmveth_close() frees the TX buffers after netif_tx_stop_all_queues(),
which does not wait for an ibmveth_start_xmit() already running on
another CPU. That transmit can copy into a freed buffer and hand PHYP
a stale DMA address.

MTU, csum/TSO and buffer pool changes call ibmveth_close() directly
while traffic flows. ifdown and the reset work go through dev_close(),
which waits for running transmits only when the qdisc has an enqueue
function, so with noqueue they race the same way.

Use netif_tx_disable(), which waits for running transmits.

Found in review of the ibmveth multi-queue RX series and confirmed by
code inspection; the race was not reproduced. Tested on a POWER10 LPAR
with MTU changes during a ping flood, with no warnings. No kernel
selftests cover ibmveth.

Analysis

AI-generated

Technical impact

In the Linux kernel’s ibmveth driver, the close routine frees transmit buffers without waiting for any ongoing ibmveth_start_xmit() operations that may still be running on another CPU. When a transmit copies data into a buffer that has already been freed, it hands a stale DMA address to the hypervisor and can corrupt kernel memory. This use‑after‑free can trigger a kernel panic or, if an attacker can construct suitable traffic, may allow for privileged or remote code execution. The description explicitly mentions the potential for memory corruption; any claim of remote code execution is inferred from the nature of the flaw.

Affected Systems

All Linux kernel builds that compile the ibmveth network driver, used for IBM Power virtualization Ethernet adapters. The issue exists in any kernel version lacking the commit that introduces netif_tx_disable() into ibmveth_close(). Users running IBM Power LPARs or any platform that relies on ibmveth are at risk until the kernel is updated.

Risk and Exploitability

The CVSS score is not publicly disclosed, and the EPSS score is unavailable, making the exact exploit likelihood unclear. The vulnerability is local: an attacker must be able to trigger traffic on an ibmveth interface and perform interface or MTU changes while data is still in‑flight. No publicly known exploits exist and the defect is not listed in the CISA KEV catalog. Nonetheless, because the flaw can corrupt kernel memory, the potential impact is severe if exploited.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official kernel patch that replaces ibmveth_close() with a netif_tx_disable() call, ensuring all in‑flight transmissions finish before buffer deallocation.
  • Until the patch is available, avoid changing MTU or taking the interface down while traffic is active; wait for all transmit queues to drain before performing configuration changes.
  • If using a custom kernel or a distribution kernel that does not include the fix, rebuild the kernel with the upstream commit applied or upgrade to a release that contains the patch.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ibmveth: wait for in-flight transmits in ibmveth_close() ibmveth_close() frees the TX buffers after netif_tx_stop_all_queues(), which does not wait for an ibmveth_start_xmit() already running on another CPU. That transmit can copy into a freed buffer and hand PHYP a stale DMA address. MTU, csum/TSO and buffer pool changes call ibmveth_close() directly while traffic flows. ifdown and the reset work go through dev_close(), which waits for running transmits only when the qdisc has an enqueue function, so with noqueue they race the same way. Use netif_tx_disable(), which waits for running transmits. Found in review of the ibmveth multi-queue RX series and confirmed by code inspection; the race was not reproduced. Tested on a POWER10 LPAR with MTU changes during a ping flood, with no warnings. No kernel selftests cover ibmveth.
Title ibmveth: wait for in-flight transmits in ibmveth_close()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-416

    Use After Free

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