In the Linux kernel, the following vulnerability has been resolved: tls: Use _skdstget() and dstdevrcu() in getnetdevforsock(). getnetdevforsock() is called during setsockopt(), so not under RCU. Using skdstget(sk)->dev could trigger UAF. Let's use _skdstget() and dstdevrcu(). Note that the only ->ndoskgetlowerdev() user is bondskgetlowerdev(), which uses RCU.