CVE Catalog

CVE-2025-40170

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.14%

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

Summary

In the Linux kernel's networking stack, the sk_setup_caps() function uses unprotected access to dst->dev, which can lead to use-after-free (UAF). The fix introduces RCU protection for the access.

Risk Assessment

An attacker can exploit a race condition to access freed memory, potentially leading to crashes or privilege escalation.

Recommendation

Apply the Linux kernel patch that uses dst_dev_rcu() and __sk_dst_get() instead of unprotected calls in sk_setup_caps() and related functions.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: net: use dst_dev_rcu() in sk_setup_caps() Use RCU to protect accesses to dst->dev from sk_setup_caps() and sk_dst_gso_max_size(). Also use dst_dev_rcu() in ip6_dst_mtu_maybe_forward(), and ip_dst_mtu_maybe_forward(). ip4_dst_hoplimit() can use dst_dev_net_rcu().

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