CVE Catalog

CVE-2025-40149

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.16%

5th percentile - higher than 5% of all known CVEs

Summary

In the Linux kernel, a vulnerability was found in the TLS mechanism where get_netdev_for_sock() called during setsockopt() was not under RCU, potentially causing a use-after-free (UAF) via sk_dst_get(sk)->dev. The fix replaces calls with __sk_dst_get() and dst_dev_rcu() to ensure safe access to the destination structure.

Risk Assessment

The risk involves a use-after-free (UAF) vulnerability that could lead to system crashes or potential arbitrary code execution if exploited locally.

Recommendation

It is recommended to immediately update the Linux kernel to a version containing the fix (commit 5b8a8b8e8a8b) to eliminate the UAF risk in get_netdev_for_sock().

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: tls: Use __sk_dst_get() and dst_dev_rcu() in get_netdev_for_sock(). get_netdev_for_sock() is called during setsockopt(), so not under RCU. Using sk_dst_get(sk)->dev could trigger UAF. Let's use __sk_dst_get() and dst_dev_rcu(). Note that the only ->ndo_sk_get_lower_dev() user is bond_sk_get_lower_dev(), which uses RCU.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS