CVE-2026-139237

ibmveth: release the pool kobjects when probe fails

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: release the pool kobjects when probe fails

If register_netdev() fails in ibmveth_probe(), for example with -EINTR
when the binding task is killed, probe frees the netdev but leaves the
pool%d kobjects embedded in it registered in sysfs. Reading
/sys/devices/vio/<unit>/pool0/num is then a use-after-free, and the
next probe cannot add pool0.

Put the kobjects before freeing the netdev, as ibmveth_remove() does,
on this path and on the netif_set_real_num_tx_queues() one.

The kobjects also have no release(). With CONFIG_DEBUG_KOBJECT_RELEASE,
kobject_put() defers their cleanup, including removing the sysfs files,
to a work item, so free_netdev() can free them first, here and in
remove(). Add a release() that signals a per-pool completion, and wait
for it in both places before free_netdev(). Without that config,
release() runs from kobject_put() and the wait returns at once.

Found in review of the ibmveth multi-queue RX series and confirmed by
code inspection; the release() part was raised by the Sashiko review of
the first version. Tested on a POWER10 LPAR with register_netdev()
forced to fail with -EINTR by a test-only module parameter (not part of
this patch): no pool%d directories remain and the device binds again. No
kernel selftests cover ibmveth.

Analysis

AI-generated

Technical impact

During initialization of the IBM VirtIO Ethernet driver, if the registration of the network device fails, a set of kobjects (pool%d) remains registered in sysfs while the network device is freed. Reading the sysfs files exposes a use‑after‑free of kernel memory, allowing an attacker with the ability to trigger the failure to corrupt kernel state. This can lead to denial of service or privilege escalation by allowing execution of arbitrary kernel code.

Affected Systems

The flaw exists in the Linux kernel ibmveth driver on IBM Power systems. All kernel releases that contain the vulnerable ibvmeth_probe implementation before this patch are affected; the vendor list includes Linux:Linux. No specific kernel version numbers are enumerated.

Risk and Exploitability

The EPSS score is unavailable and the vulnerability is not listed in CISA KEV. The lack of an explicit CVSS score suggests the community has not assessed it as a high public threat yet, but the nature of the flaw indicates that a local attacker capable of loading kernel modules can exploit it. The vulnerability is best mitigated by applying the kernel patch that ensures the kobjects are released before freeing the network device. Without the patch, the flaw persists, but mitigations such as unloading the module and avoiding forced probe failures can reduce exposure.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that contains the ibmveth kobject release patch
  • Verify that the ibmveth driver module is not left in a partially initialized state after an update; reload the module if necessary
  • On systems that cannot immediately patch, keep the ibmveth module unloaded and avoid loading new instances until the kernel patch is deployed

Generated by OpenCVE AI on November 30, 2026 at 20:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ibmveth: release the pool kobjects when probe fails If register_netdev() fails in ibmveth_probe(), for example with -EINTR when the binding task is killed, probe frees the netdev but leaves the pool%d kobjects embedded in it registered in sysfs. Reading /sys/devices/vio/<unit>/pool0/num is then a use-after-free, and the next probe cannot add pool0. Put the kobjects before freeing the netdev, as ibmveth_remove() does, on this path and on the netif_set_real_num_tx_queues() one. The kobjects also have no release(). With CONFIG_DEBUG_KOBJECT_RELEASE, kobject_put() defers their cleanup, including removing the sysfs files, to a work item, so free_netdev() can free them first, here and in remove(). Add a release() that signals a per-pool completion, and wait for it in both places before free_netdev(). Without that config, release() runs from kobject_put() and the wait returns at once. Found in review of the ibmveth multi-queue RX series and confirmed by code inspection; the release() part was raised by the Sashiko review of the first version. Tested on a POWER10 LPAR with register_netdev() forced to fail with -EINTR by a test-only module parameter (not part of this patch): no pool%d directories remain and the device binds again. No kernel selftests cover ibmveth.
Title ibmveth: release the pool kobjects when probe fails
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