# CVE-2025-40170: net: use dst_dev_rcu() in sk_setup_caps()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-11-12T10:46:52.014Z
- Modified: 2026-10-30T13:18:14.247Z
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 before 13b0e14bfa7e6d506d8d6426b9e6d7feef01ded3; from 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 before 9f22b5f7f1a32f8bbcc82bf34e34ea63523fcd02; from 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 before 5d1be493d1110c9e720b4c51a6e587bb2fb4ac12; from 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 before a805729c0091073d8f0415cfa96c7acd1bc17a48; from 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36 before 99a2ace61b211b0be861b07fbaa062fca4b58879; 4.13 (not affected: before 4.13; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.64 up to 6.12.*; from 6.17.3 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/13b0e14bfa7e6d506d8d6426b9e6d7feef01ded3>
- <https://git.kernel.org/stable/c/9f22b5f7f1a32f8bbcc82bf34e34ea63523fcd02>
- <https://git.kernel.org/stable/c/5d1be493d1110c9e720b4c51a6e587bb2fb4ac12>
- <https://git.kernel.org/stable/c/a805729c0091073d8f0415cfa96c7acd1bc17a48>
- <https://git.kernel.org/stable/c/99a2ace61b211b0be861b07fbaa062fca4b58879>

## Sources

- CVE List: [CVE-2025-40170](https://www.cve.org/CVERecord?id=CVE-2025-40170), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2025-40170](https://nvd.nist.gov/vuln/detail/CVE-2025-40170), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2025-40170 · Whole record: https://cve.day/CVE-2025-40170.json · Rebuilt by cve.day 2026-11-25T22:59:07.564Z
