CVE-2026-139348

net/smc: hold a reference on net_device returned by pnet_find_base_ndev()

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

net/smc: hold a reference on net_device returned by pnet_find_base_ndev()

pnet_find_base_ndev() resolves the base net_device for stacked devices
under RTNL, then drops the lock and returns the raw pointer without
taking a reference. All three callers dereference the pointer after
RTNL has been released, creating a use-after-free window if the device
is concurrently unregistered.

Take a reference with netdev_hold() before dropping RTNL and add the
matching netdev_put() in every return path of the three callers:

- smc_pnet_add_eth()
- smc_pnet_find_roce_by_pnetid()
- smc_pnet_find_ism_by_pnetid()

Found by code analysis, confirmed with a proof-of-concept that triggers
a KASAN slab-use-after-free report.

Analysis

AI-generated

Technical impact

The Linux kernel contains a use‑after‑free flaw in the smc subsystem. The function pnet_find_base_ndev() returns a pointer to a net_device for stacked devices while the RTNL lock is held, but it releases the lock before returning the raw pointer without taking a reference. Subsequent callers dereference this pointer after the RTNL lock is released, creating a window in which the device may be concurrently unregistered, resulting in a use‑after‑free. The bug has been confirmed with a KASAN slab‑use‑after‑free report and can lead to kernel memory corruption and privilege escalation.

Affected Systems

The flaw affects the Linux kernel native stack, specifically systems that use the smc module for stacked network devices. No particular kernel release or version range is listed in the available data; therefore any kernel build that includes the smc network stack may be impacted unless the patch is applied. The vulnerability is present in the base kernel code under the net/smc directory.

Risk and Exploitability

Although no CVSS score or EPSS value is provided and the vulnerability is not yet in the CISA KEV catalog, the nature of a use‑after‑free in the kernel indicates a potentially high risk. An attacker who can trigger the race condition—by simultaneously creating and destroying stacked devices—could corrupt kernel memory and achieve arbitrary code execution with kernel privileges. The lack of publicly documented attack vectors suggests limited exploitation evidence, but the correctness of the fix and the KASAN findings imply that affected systems should treat the issue as critical until the kernel update is applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the smc reference‑counting fix (commits 521c06e5d, 6176fa6b14c1ab439936b6d8ceda9a38dfb149dd, etc.).
  • As a temporary measure, avoid unregistering stacked network devices while they are in use, or disable the smc module if possible, until the kernel patch is installed.
  • Monitor system logs for kernel panics or KASAN errors related to the smc subsystem; if any irregularities appear, treat the host as potentially compromised and remediate immediately.

Generated by OpenCVE AI on November 30, 2026 at 21:26 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: net/smc: hold a reference on net_device returned by pnet_find_base_ndev() pnet_find_base_ndev() resolves the base net_device for stacked devices under RTNL, then drops the lock and returns the raw pointer without taking a reference. All three callers dereference the pointer after RTNL has been released, creating a use-after-free window if the device is concurrently unregistered. Take a reference with netdev_hold() before dropping RTNL and add the matching netdev_put() in every return path of the three callers: - smc_pnet_add_eth() - smc_pnet_find_roce_by_pnetid() - smc_pnet_find_ism_by_pnetid() Found by code analysis, confirmed with a proof-of-concept that triggers a KASAN slab-use-after-free report.
Title net/smc: hold a reference on net_device returned by pnet_find_base_ndev()
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:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM