VDB

CVE-2025-40170

CVE-2025-40170 PUBLISHED CVSS 7.8 HIGH

net: use dst_dev_rcu() in sk_setup_caps()

Reported by linux · Published November 12, 2025

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

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12-libbpf-develAmazon Linux1:6.12.64-87.122.amzn2023
kernel6.12-libbpfAmazon Linux1:6.12.64-87.122.amzn2023
kernel6.12-develAmazon Linux1:6.12.64-87.122.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.64-87.122.amzn2023

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36, 4a6ce2b6f2ecabbddcfe47e7cf61dd0f00b10e36
LinuxLinux4.13, 0, 6.1.191
amazon:2023kernel6.12-libbpf-devel0
amazon:2023kernel6.12-libbpf0
amazon:2023kernel6.12-devel0
amazon:2023kernel6.12-tools0
linuxlinux_kernel4.13, 4.13, 4.13
amazon:2023bpftool6.120
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.120
LinuxLinux6.18, 4.13, 0
amazon:2023perf6.120
amazon:2023kernel-livepatch-6.12.64-87.1220
amazon:2023kernel6.12-headers0
amazon:2023kernel6.12-libbpf-static0
amazon:2023python3-perf6.120
amazon:2023kernel6.12-modules-extra-common0

Timeline

  • Oct 12, 2025 PoC Published (12 in total, the first dated here)
  • Nov 11, 2025 CVE Published
  • Nov 12, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (167 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (173 in total, the first dated here)
  • Jun 8, 2026 Coalition ESS Score
  • Oct 30, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-40170
vulnetix vdb fixes CVE-2025-40170

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-40170/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›