CVE-2025-40170

net: use dst_dev_rcu() in sk_setup_caps()

7.8 high EPSS 0.19%

Published 12 Nov 2025 Updated 30 Oct 2026 CNA: Linux

Check your servers for CVE-2025-40170

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40170 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 9.47% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 16 Jun 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
yes: an attacker can automate the attack across many targets
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, before 13b0e14bfa7e6d506d8d6426b9e6d7feef01ded3
affected from 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, before 9f22b5f7f1a32f8bbcc82bf34e34ea63523fcd02
affected from 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, before 5d1be493d1110c9e720b4c51a6e587bb2fb4ac12
affected from 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, before a805729c0091073d8f0415cfa96c7acd1bc17a48
affected from 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, before 99a2ace61b211b0be861b07fbaa062fca4b58879
Other versions: unaffected
Linux
affected 4.13
unaffected before 4.13
unaffected from 6.1.191 up to and including 6.1.*
unaffected from 6.6.160 up to and including 6.6.*
unaffected from 6.12.64 up to and including 6.12.*
unaffected from 6.17.3 up to and including 6.17.*
unaffected 6.18 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40170 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40170

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-40170
trivy image --scanners vuln IMAGE | grep CVE-2025-40170

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-40170 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.