{"id":"CVE-2026-139348","aliases":["CVE-2026-139348"],"related":[],"kind":"vulnerability","state":"published","title":"net/smc: hold a reference on net_device returned by pnet_find_base_ndev()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:33:55.855Z","modified":"2026-12-01T06:17:42.690Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"0afff91c6f5ecef27715ea71e34dc2baacba1060","fixed":"e3f992158d96d47aae01aa76c5e35af941d726c2","status":"affected"},{"type":"git","introduced":"0afff91c6f5ecef27715ea71e34dc2baacba1060","fixed":"6176fa6b14c1ab439936b6d8ceda9a38dfb149dd","status":"affected"},{"type":"git","introduced":"0afff91c6f5ecef27715ea71e34dc2baacba1060","fixed":"bd8ea7ddb909807b2200e4d72b38a0bc7d746298","status":"affected"},{"type":"git","introduced":"0afff91c6f5ecef27715ea71e34dc2baacba1060","fixed":"ea3bf68cfa530b4c1e5a4fe15fca5409a32b8c98","status":"affected"},{"type":"git","introduced":"0afff91c6f5ecef27715ea71e34dc2baacba1060","fixed":"521c06e5d15386013de2196aa6917039ecf192ce","status":"affected"},{"type":"git","introduced":"0afff91c6f5ecef27715ea71e34dc2baacba1060","fixed":"e6435b2cc5fdf008cdb67ad9a811a266e8ac9c1e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.19","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/e3f992158d96d47aae01aa76c5e35af941d726c2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6176fa6b14c1ab439936b6d8ceda9a38dfb149dd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bd8ea7ddb909807b2200e4d72b38a0bc7d746298","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ea3bf68cfa530b4c1e5a4fe15fca5409a32b8c98","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/521c06e5d15386013de2196aa6917039ecf192ce","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e6435b2cc5fdf008cdb67ad9a811a266e8ac9c1e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139348","url":"https://www.cve.org/CVERecord?id=CVE-2026-139348","licence":"CVE Terms of Use","modified":"2026-12-01T05:42:22.419Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139348","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139348","licence":"Public domain","modified":"2026-12-01T06:17:42.690Z"}],"updatedAt":"2026-12-01T06:32:21.075Z","epss":{"score":0.00182,"percentile":0.08127,"date":"2026-12-01T12:00:22.000Z"}}