CVE-2026-139348
net/smc: hold a reference on net_device returned by pnet_find_base_ndev()
Check your servers for CVE-2026-139348
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139348 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 8.13% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 0afff91c6f5ecef27715ea71e34dc2baacba1060, before e3f992158d96d47aae01aa76c5e35af941d726c2 affected from 0afff91c6f5ecef27715ea71e34dc2baacba1060, before 6176fa6b14c1ab439936b6d8ceda9a38dfb149dd affected from 0afff91c6f5ecef27715ea71e34dc2baacba1060, before bd8ea7ddb909807b2200e4d72b38a0bc7d746298 affected from 0afff91c6f5ecef27715ea71e34dc2baacba1060, before ea3bf68cfa530b4c1e5a4fe15fca5409a32b8c98 affected from 0afff91c6f5ecef27715ea71e34dc2baacba1060, before 521c06e5d15386013de2196aa6917039ecf192ce affected from 0afff91c6f5ecef27715ea71e34dc2baacba1060, before e6435b2cc5fdf008cdb67ad9a811a266e8ac9c1e
Other versions: unaffected
|
| Linux |
affected 4.19 unaffected before 4.19 unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.119 up to and including 6.12.* unaffected from 6.18.65 up to and including 6.18.* unaffected from 7.3.6 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139348 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139348
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-139348
trivy image --scanners vuln IMAGE | grep CVE-2026-139348
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/e3f992158d96d47aae01aa76c5e35af941d726c2 git.kernel.org
- https://git.kernel.org/stable/c/6176fa6b14c1ab439936b6d8ceda9a38dfb149dd git.kernel.org
- https://git.kernel.org/stable/c/bd8ea7ddb909807b2200e4d72b38a0bc7d746298 git.kernel.org
- https://git.kernel.org/stable/c/ea3bf68cfa530b4c1e5a4fe15fca5409a32b8c98 git.kernel.org
- https://git.kernel.org/stable/c/521c06e5d15386013de2196aa6917039ecf192ce git.kernel.org
- https://git.kernel.org/stable/c/e6435b2cc5fdf008cdb67ad9a811a266e8ac9c1e git.kernel.org
Source: the record CVE-2026-139348 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse