In the Linux kernel, the following vulnerability has been resolved:
tls: Use _skdstget() and dstdevrcu() in getnetdevforsock().
getnetdevfor_sock() is called during setsockopt(), so not under RCU.
Using skdstget(sk)->dev could trigger UAF.
Let's use _skdstget() and dstdev_rcu().
Note that the only ->ndoskgetlowerdev() user is bondskgetlowerdev(), which uses RCU.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40149.json"
}