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

Summary

CVECVE-2026-139348
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:19:00 UTC
Updated2026-11-30 14:19:00 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 0afff91c6f5ecef27715ea71e34dc2baacba1060 e3f992158d96d47aae01aa76c5e35af941d726c2 git Not specified
CNA Linux Linux affected 0afff91c6f5ecef27715ea71e34dc2baacba1060 6176fa6b14c1ab439936b6d8ceda9a38dfb149dd git Not specified
CNA Linux Linux affected 0afff91c6f5ecef27715ea71e34dc2baacba1060 bd8ea7ddb909807b2200e4d72b38a0bc7d746298 git Not specified
CNA Linux Linux affected 0afff91c6f5ecef27715ea71e34dc2baacba1060 ea3bf68cfa530b4c1e5a4fe15fca5409a32b8c98 git Not specified
CNA Linux Linux affected 0afff91c6f5ecef27715ea71e34dc2baacba1060 521c06e5d15386013de2196aa6917039ecf192ce git Not specified
CNA Linux Linux affected 0afff91c6f5ecef27715ea71e34dc2baacba1060 e6435b2cc5fdf008cdb67ad9a811a266e8ac9c1e git Not specified
CNA Linux Linux affected 4.19 Not specified
CNA Linux Linux unaffected 4.19 semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.119 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.65 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/e3f992158d96d47aae01aa76c5e35af941d726c2 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/6176fa6b14c1ab439936b6d8ceda9a38dfb149dd 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e6435b2cc5fdf008cdb67ad9a811a266e8ac9c1e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/521c06e5d15386013de2196aa6917039ecf192ce 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/ea3bf68cfa530b4c1e5a4fe15fca5409a32b8c98 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/bd8ea7ddb909807b2200e4d72b38a0bc7d746298 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report