All reports
Medium

kernel: net: use dst_dev_rcu() in sk_setup_caps()

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-40170

Probability of exploitation in the next 30 days: 0.19%

FIRST EPSS · 2026-11-22

Description

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().

A flaw was found in the Linux kernel's networking subsystem. A local attacker could exploit this vulnerability to escalate privileges or cause a Denial of Service (DoS) through a kernel crash. By rapidly altering network routes while establishing socket connections, an attacker triggers a race condition where the kernel accesses device memory that has already been freed due to a lack of proper synchronization.