CVE-2026-139240

ibmveth: fix netpoll races with RX replenish

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

ibmveth: fix netpoll races with RX replenish

ibmveth_poll_controller() runs RX replenish outside NAPI and without
a lock, racing NAPI's replenish on another CPU. Both can fill the
same slot, so an skb and its DMA mapping leak and PHYP can write
into an unmapped buffer. netpoll calls it from netconsole and from
netpoll-enabled bonds.

ibmveth_open() also enables NAPI before the RX resources exist.
ibmveth_change_mtu(), veth_pool_store(), ibmveth_set_csum_offload()
and ibmveth_set_tso() call close() and open() directly, so while
open() is still setting up, netpoll and the direct ibmveth_interrupt()
calls can replenish NULL pools and read freed memory.

Remove the callback, as Eric Dumazet did for many drivers after
commit ac3d9dd034e5 ("netpoll: make ndo_poll_controller() optional"),
including ibmvnic in commit 0c3b9d1b37df ("ibmvnic: remove
ndo_poll_controller"). netpoll then polls NAPI itself with budget 0.
napi->poll_owner serializes that with NAPI, but not with a NAPI poll
that was already running when netpoll was set up, so skip RX
replenish at budget 0, which netpoll uses for TX only. TX completes
synchronously, so ibmveth_poll() has nothing else to do for netpoll.

Enable NAPI just before request_irq(), once everything
ibmveth_poll() touches exists.

Found in review of the ibmveth multi-queue RX series and confirmed by
code inspection of poll_one_napi() and the direct close()/open()
callers; neither race was reproduced. Tested on a POWER10 LPAR with
netconsole over ibmveth: a ping flood (678,470 packets, no loss) during
a printk flood, and MTU changes and buffer pool toggles under traffic,
with no warnings. No kernel selftests cover ibmveth.

Analysis

AI-generated

Technical impact

The vulnerability is a race condition in the Linux kernel’s ibmveth network driver, where netpoll may replenish receive buffers outside the standard NAPI context without proper locking. If an skb and its DMA mapping are filled by both netpoll and an NAPI poll concurrently, the DMA mapping can leak, and the hypervisor (PHYP) may write into an unmapped buffer or read freed memory. This race can result in kernel memory corruption, potentially crashing the system or allowing a privileged attacker to gain code execution. The likely attack vector is through netconsole or any netpoll‑enabled bond, or by rapidly changing MTU size or toggling buffer pools while the driver is initializing.

Affected Systems

The defect affects Linux kernels on IBM POWER platforms where the ibmveth driver is used. No specific kernel versions are listed, but the bug existed before the commit that removed the netpoll callback and introduced proper NAPI initialization, so any kernel prior to that fix is potentially vulnerable. This inference is based on the description mentioning IBM POWER platforms.

Risk and Exploitability

Exploitation would require a source of race conditions, such as flooding netconsole traffic, ping floods, or high‑frequency MTU changes, and likely a privileged attacker with control over the hypervisor. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog, indicating no known public exploitation yet. The kernel memory corruption vulnerability remains high severity given the possibility of arbitrary code execution or denial of service, even though the immediate exploitation likelihood is low due to the need for specific conditions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version containing the ibmveth netpoll race fix (the patch removes the callback and ensures proper NAPI initialization)
  • If a kernel upgrade is not feasible, disable netpoll usage on ibmveth or temporarily stop services that would trigger netpoll to avoid race conditions
  • After applying the fix or implementing a workaround, reboot the system to ensure all kernel state is refreshed

Generated by OpenCVE AI on December 1, 2026 at 08:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ibmveth: fix netpoll races with RX replenish ibmveth_poll_controller() runs RX replenish outside NAPI and without a lock, racing NAPI's replenish on another CPU. Both can fill the same slot, so an skb and its DMA mapping leak and PHYP can write into an unmapped buffer. netpoll calls it from netconsole and from netpoll-enabled bonds. ibmveth_open() also enables NAPI before the RX resources exist. ibmveth_change_mtu(), veth_pool_store(), ibmveth_set_csum_offload() and ibmveth_set_tso() call close() and open() directly, so while open() is still setting up, netpoll and the direct ibmveth_interrupt() calls can replenish NULL pools and read freed memory. Remove the callback, as Eric Dumazet did for many drivers after commit ac3d9dd034e5 ("netpoll: make ndo_poll_controller() optional"), including ibmvnic in commit 0c3b9d1b37df ("ibmvnic: remove ndo_poll_controller"). netpoll then polls NAPI itself with budget 0. napi->poll_owner serializes that with NAPI, but not with a NAPI poll that was already running when netpoll was set up, so skip RX replenish at budget 0, which netpoll uses for TX only. TX completes synchronously, so ibmveth_poll() has nothing else to do for netpoll. Enable NAPI just before request_irq(), once everything ibmveth_poll() touches exists. Found in review of the ibmveth multi-queue RX series and confirmed by code inspection of poll_one_napi() and the direct close()/open() callers; neither race was reproduced. Tested on a POWER10 LPAR with netconsole over ibmveth: a ping flood (678,470 packets, no loss) during a printk flood, and MTU changes and buffer pool toggles under traffic, with no warnings. No kernel selftests cover ibmveth.
Title ibmveth: fix netpoll races with RX replenish
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-366

    Race Condition within a Thread

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Dec 1, 2026, 5:41 AM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Dec 1, 2026, 6:17 AM
Severity
Moderate
Public date
Nov 30, 2026, 1:32 PM