{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139348","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.928Z","datePublished":"2026-11-30T13:33:55.855Z","dateUpdated":"2026-12-01T05:42:22.419Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:42:22.419Z"},"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - Reached via a local connect() on an AF_SMC socket: __smc_connect -> smc_find_proposal_devices -> smc_pnet_find_ism_resource/roce_resource -> pnet_find_base_ndev. The free comes from local rtnetlink deletion of a bond slave. A remote SMC peer can reach the server-side lookup but cannot unregister the base netdev, so no wire message supplies the bug.\nAC:L - The attacker runs both sides of the race: SMC connects that read base_ndev after pnet_find_base_ndev drops RTNL, and RTM_DELLINK of the bond slave. They can repeat it freely and widen the window by contending pnettable->lock between the dev_net(base_ndev) reads. No ISM/RoCE hardware is needed and the commit reports a KASAN-confirmed PoC.\nPR:L - smc_create() has no capability check and AF_SMC autoloads. Creating veth/bond, enslaving and deleting the slave need only CAP_NET_ADMIN in an unprivileged user+net namespace (unshare -Urn). Only the smc_pnet_add_eth caller (SMC_PNETID_ADD) is GENL_ADMIN_PERM root-only, and the socket path does not need it.\nUI:N - The attacker sets up the netns, bond, veth, the AF_SMC listener that sets syn_smc, the connecting client and the slave deletion entirely on their own; no other user or admin action is needed.\nS:U - Corruption happens in the kernel's own net_device heap memory and leads to ordinary kernel privilege escalation or a crash in the same authority; no guest/host or IOMMU boundary is crossed.\nC:H - After the bond-slave net_device is freed, SMC reads base_ndev->nd_net (and dev.parent on s390) from reclaimable kvmalloc memory. A sprayed object makes that a forged struct net pointer, which net_generic() and the pnettable list walk dereference, giving controlled kernel reads.\nI:H - The forged nd_net from the freed net_device feeds mutex_lock/mutex_unlock(&pnettable->lock) at an attacker-derived address. The owner cmpxchg writes the current task pointer there and then clears it, a kernel write primitive usable for further corruption.\nA:H - Dereferencing a dangling base_ndev, or the bogus struct net/mutex derived from it, after the slave is unregistered causes a KASAN splat or oops. With panic_on_oops that takes down the host, and it can be retried at will."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/smc/smc_pnet.c"],"versions":[{"version":"0afff91c6f5ecef27715ea71e34dc2baacba1060","lessThan":"e3f992158d96d47aae01aa76c5e35af941d726c2","status":"affected","versionType":"git"},{"version":"0afff91c6f5ecef27715ea71e34dc2baacba1060","lessThan":"6176fa6b14c1ab439936b6d8ceda9a38dfb149dd","status":"affected","versionType":"git"},{"version":"0afff91c6f5ecef27715ea71e34dc2baacba1060","lessThan":"bd8ea7ddb909807b2200e4d72b38a0bc7d746298","status":"affected","versionType":"git"},{"version":"0afff91c6f5ecef27715ea71e34dc2baacba1060","lessThan":"ea3bf68cfa530b4c1e5a4fe15fca5409a32b8c98","status":"affected","versionType":"git"},{"version":"0afff91c6f5ecef27715ea71e34dc2baacba1060","lessThan":"521c06e5d15386013de2196aa6917039ecf192ce","status":"affected","versionType":"git"},{"version":"0afff91c6f5ecef27715ea71e34dc2baacba1060","lessThan":"e6435b2cc5fdf008cdb67ad9a811a266e8ac9c1e","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/smc/smc_pnet.c"],"versions":[{"version":"4.19","status":"affected"},{"version":"0","lessThan":"4.19","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/e3f992158d96d47aae01aa76c5e35af941d726c2"},{"url":"https://git.kernel.org/stable/c/6176fa6b14c1ab439936b6d8ceda9a38dfb149dd"},{"url":"https://git.kernel.org/stable/c/bd8ea7ddb909807b2200e4d72b38a0bc7d746298"},{"url":"https://git.kernel.org/stable/c/ea3bf68cfa530b4c1e5a4fe15fca5409a32b8c98"},{"url":"https://git.kernel.org/stable/c/521c06e5d15386013de2196aa6917039ecf192ce"},{"url":"https://git.kernel.org/stable/c/e6435b2cc5fdf008cdb67ad9a811a266e8ac9c1e"}],"title":"net/smc: hold a reference on net_device returned by pnet_find_base_ndev()","x_generator":{"engine":"bippy-1.2.0"}}}}