CVE-2025-40149
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-tools-debuginfo | errata.rockylinux.org | 6.12.0-211.55.1.el10 |
| kernel-debug-devel-matched | errata.rockylinux.org | 6.12.0-211.55.1.el10 |
| perf | errata.rockylinux.org | 6.12.0-211.55.1.el10 |
| kernel-devel | Amazon Linux | 1:6.1.161-183.298.amzn2023 |
| kernel-debug-devel | errata.rockylinux.org | 6.12.0-211.55.1.el10 |
| kernel6.12-devel | Amazon Linux | 1:6.12.66-88.122.amzn2023 |
| kernel-doc | errata.rockylinux.org | 6.12.0-211.55.1.el10 |
| kernel | errata.rockylinux.org | 6.12.0-211.55.1.el10 |
| kernel-tools-libs-devel | errata.rockylinux.org | 6.12.0-211.55.1.el10 |
| rtla | errata.rockylinux.org | 6.12.0-211.55.1.el10 |
| kernel-64k-devel-matched | errata.rockylinux.org | 6.12.0-211.55.1.el10 |
| kernel-64k-modules | errata.rockylinux.org | 6.12.0-211.55.1.el10 |
55 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | e8f69799810c32dd40c6724d829eccc70baad07f, e8f69799810c32dd40c6724d829eccc70baad07f, e8f69799810c32dd40c6724d829eccc70baad07f |
| Linux | Linux | 4.18, 0, 5.15.199 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.6, 3.1.7 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | 3.1.7, 3.1.6 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | 3.1.7, 3.1.6 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel-headers | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | 3.1.6, 3.1.7 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel-livepatch-6.12.66-88.122 | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.7, 3.1.6 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
…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