VDB

CVE-2025-40149

CVE-2025-40149 PUBLISHED CVSS 7.8 HIGH

tls: Use __sk_dst_get() and dst_dev_rcu() in get_netdev_for_sock().

Reported by linux · Published November 12, 2025

In the Linux kernel, the following vulnerability has been resolved: tls: Use __sk_dst_get() and dst_dev_rcu() in get_netdev_for_sock(). get_netdev_for_sock() is called during setsockopt(), so not under RCU. Using sk_dst_get(sk)->dev could trigger UAF. Let's use __sk_dst_get() and dst_dev_rcu(). Note that the only ->ndo_sk_get_lower_dev() user is bond_sk_get_lower_dev(), which uses RCU.

Fixed versions

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

PackageEcosystemFixed in
kernel-tools-debuginfoerrata.rockylinux.org6.12.0-211.55.1.el10
kernel-debug-devel-matchederrata.rockylinux.org6.12.0-211.55.1.el10
perferrata.rockylinux.org6.12.0-211.55.1.el10
kernel-develAmazon Linux1:6.1.161-183.298.amzn2023
kernel-debug-develerrata.rockylinux.org6.12.0-211.55.1.el10
kernel6.12-develAmazon Linux1:6.12.66-88.122.amzn2023
kernel-docerrata.rockylinux.org6.12.0-211.55.1.el10
kernelerrata.rockylinux.org6.12.0-211.55.1.el10
kernel-tools-libs-develerrata.rockylinux.org6.12.0-211.55.1.el10
rtlaerrata.rockylinux.org6.12.0-211.55.1.el10
kernel-64k-devel-matchederrata.rockylinux.org6.12.0-211.55.1.el10
kernel-64k-moduleserrata.rockylinux.org6.12.0-211.55.1.el10

55 more packages have a fixed version. See every fix in Lookup.

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
LinuxLinuxe8f69799810c32dd40c6724d829eccc70baad07f, e8f69799810c32dd40c6724d829eccc70baad07f, e8f69799810c32dd40c6724d829eccc70baad07f
LinuxLinux4.18, 0, 5.15.199
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.6, 3.1.7
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)3.1.7, 3.1.6
amazon:2023kernel-devel0
amazon:2023kernel6.12-devel0
amazon:2023kernel6.12-tools-devel0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)3.1.7, 3.1.6
amazon:2023kernel-libbpf0
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel6.120
amazon:2023kernel-headers0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)3.1.6, 3.1.7
amazon:2023bpftool0
amazon:2023kernel-libbpf-devel0
amazon:2023python3-perf6.120
amazon:2023kernel-livepatch-6.12.66-88.1220
amazon:2023kernel6.12-headers0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.7, 3.1.6
amazon:2023kernel6.12-modules-extra0

…and 20 more

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)
  • Nov 12, 2025 CVE Updated
  • Mar 29, 2026 Distribution Patch (203 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (209 in total, the first dated here)
  • Jun 8, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-40149
vulnetix vdb fixes CVE-2025-40149

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-40149/fixes/registry"

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

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