# CVE-2026-139348: net/smc: hold a reference on net_device returned by pnet_find_base_ndev()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-11-30T13:33:55.855Z
- Modified: 2026-12-01T06:17:42.690Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 0afff91c6f5ecef27715ea71e34dc2baacba1060 before e3f992158d96d47aae01aa76c5e35af941d726c2; from 0afff91c6f5ecef27715ea71e34dc2baacba1060 before 6176fa6b14c1ab439936b6d8ceda9a38dfb149dd; from 0afff91c6f5ecef27715ea71e34dc2baacba1060 before bd8ea7ddb909807b2200e4d72b38a0bc7d746298; from 0afff91c6f5ecef27715ea71e34dc2baacba1060 before ea3bf68cfa530b4c1e5a4fe15fca5409a32b8c98; from 0afff91c6f5ecef27715ea71e34dc2baacba1060 before 521c06e5d15386013de2196aa6917039ecf192ce; from 0afff91c6f5ecef27715ea71e34dc2baacba1060 before e6435b2cc5fdf008cdb67ad9a811a266e8ac9c1e; 4.19 (not affected: before 4.19; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/e3f992158d96d47aae01aa76c5e35af941d726c2>
- <https://git.kernel.org/stable/c/6176fa6b14c1ab439936b6d8ceda9a38dfb149dd>
- <https://git.kernel.org/stable/c/bd8ea7ddb909807b2200e4d72b38a0bc7d746298>
- <https://git.kernel.org/stable/c/ea3bf68cfa530b4c1e5a4fe15fca5409a32b8c98>
- <https://git.kernel.org/stable/c/521c06e5d15386013de2196aa6917039ecf192ce>
- <https://git.kernel.org/stable/c/e6435b2cc5fdf008cdb67ad9a811a266e8ac9c1e>

## Sources

- CVE List: [CVE-2026-139348](https://www.cve.org/CVERecord?id=CVE-2026-139348), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-139348](https://nvd.nist.gov/vuln/detail/CVE-2026-139348), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-139348 · Whole record: https://cve.day/CVE-2026-139348.json · Rebuilt by cve.day 2026-12-01T06:32:21.075Z
