{"id":"CVE-2026-139348","summary":"net/smc: hold a reference on net_device returned by pnet_find_base_ndev()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/smc: hold a reference on net_device returned by pnet_find_base_ndev()\n\npnet_find_base_ndev() resolves the base net_device for stacked devices\nunder RTNL, then drops the lock and returns the raw pointer without\ntaking a reference.  All three callers dereference the pointer after\nRTNL has been released, creating a use-after-free window if the device\nis concurrently unregistered.\n\nTake a reference with netdev_hold() before dropping RTNL and add the\nmatching netdev_put() in every return path of the three callers:\n\n  - smc_pnet_add_eth()\n  - smc_pnet_find_roce_by_pnetid()\n  - smc_pnet_find_ism_by_pnetid()\n\nFound by code analysis, confirmed with a proof-of-concept that triggers\na KASAN slab-use-after-free report.","modified":"2026-12-01T07:00:37.992858173Z","published":"2026-11-30T13:33:55.855Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139348.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/521c06e5d15386013de2196aa6917039ecf192ce"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6176fa6b14c1ab439936b6d8ceda9a38dfb149dd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bd8ea7ddb909807b2200e4d72b38a0bc7d746298"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e3f992158d96d47aae01aa76c5e35af941d726c2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e6435b2cc5fdf008cdb67ad9a811a266e8ac9c1e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ea3bf68cfa530b4c1e5a4fe15fca5409a32b8c98"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139348.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139348"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0afff91c6f5ecef27715ea71e34dc2baacba1060"},{"fixed":"e3f992158d96d47aae01aa76c5e35af941d726c2"},{"fixed":"6176fa6b14c1ab439936b6d8ceda9a38dfb149dd"},{"fixed":"bd8ea7ddb909807b2200e4d72b38a0bc7d746298"},{"fixed":"ea3bf68cfa530b4c1e5a4fe15fca5409a32b8c98"},{"fixed":"521c06e5d15386013de2196aa6917039ecf192ce"},{"fixed":"e6435b2cc5fdf008cdb67ad9a811a266e8ac9c1e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139348.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.19.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139348.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}