In the Linux kernel, the following vulnerability has been resolved:
smc: Use _skdstget() and dstdevrcu() in in smcclcprfxset().
smcclcprfx_set() is called during connect() and not under RCU nor RTNL.
Using skdstget(sk)->dev could trigger UAF.
Let's use _skdstget() and devdstrcu() under rcureadlock() after kernelgetsockname().
Note that the returned value of smcclcprfx_set() is not used in the caller.
While at it, we change the 1st arg of smcclcprfxset[46]rcu() not to touch dst there.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40139.json"
}