CVE-2025-40149 json
tls: Use __sk_dst_get() and dst_dev_rcu() in get_netdev_for_sock().
published 2025-11-12 11 mo ago modified 2026-10-19 20 d ago also EUVD-2025-124934
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 6%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 5.15.199, 6.1.161, 6.6.121, 6.12.66, 6.17.3, 6.18
- linux Debian 12 6.1.162-1
- linux Debian 13 6.12.69-1
- linux Debian 14 6.17.6-1
debian advisories DEBIAN-CVE-2025-40149
- linux Ubuntu 22.04 LTS 5.15.0-176.186
- linux Ubuntu 24.04 LTS 6.8.0-117.117
- linux Ubuntu 25.10 6.17.0-14.14
- linux-aws Ubuntu 22.04 LTS 5.15.0-1105.112
- linux-aws Ubuntu 24.04 LTS 6.8.0-1055.58
- linux-aws Ubuntu 25.10 6.17.0-1007.7
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1105.114
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1058.61
ubuntu advisories UBUNTU-CVE-2025-40149
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel RHEL 9 5.14.0-687.55.1.el9_8
- rv RHEL 9 5.14.0-687.55.1.el9_8
- perf RHEL 9 5.14.0-687.55.1.el9_8
- rtla RHEL 9 5.14.0-687.55.1.el9_8
- libperf RHEL 9 5.14.0-687.55.1.el9_8
- kernel-rt RHEL 9 5.14.0-687.55.1.el9_8
- kernel-64k RHEL 9 5.14.0-687.55.1.el9_8
- kernel-core RHEL 9 5.14.0-687.55.1.el9_8
red hat advisories RHSA-2026:76739RHSA-2026:67471RHSA-2026:64767
- kernel-source Linux Micro 6.1, Linux Micro 6.0 6.4.0-38.1
- kernel-default Linux Micro 6.1, Linux Micro 6.0 6.4.0-38.1
- kernel-kvmsmall Linux Micro 6.1, Linux Micro 6.0 6.4.0-38.1
- kernel-default-base Linux Micro 6.1, Linux Micro 6.0 6.4.0-38.1.21.15
- kernel-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-39.1
- kernel-source-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-39.1
- kernel-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.61.1
- kernel-syms-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.61.1
suse advisories SUSE-SU-2026:20473-1SUSE-SU-2026:20496-1SUSE-SU-2026:0316-1SUSE-SU-2026:20039-1SUSE-SU-2026:20059-1SUSE-SU-2025:4521-1
- kernel-rt openSUSE Leap 16.0 6.12.0-160000.8.1
- dtb-aarch64 openSUSE Leap 16.0 6.12.0-160000.8.1
- kernel-64kb openSUSE Leap 16.0 6.12.0-160000.8.1
- kernel-syms openSUSE Leap 16.0 6.12.0-160000.8.1
- kernel-obs-qa openSUSE Leap 16.0 6.12.0-160000.8.1
- kernel-source openSUSE Leap 16.0 6.12.0-160000.8.1
- kernel-default openSUSE Leap 16.0 6.12.0-160000.8.1
- kernel-kvmsmall openSUSE Leap 16.0 6.12.0-160000.8.1
opensuse advisories openSUSE-SU-2025:20172-1
- kernel AlmaLinux 10 6.12.0-211.55.1.el10_2
- rv AlmaLinux 10 6.12.0-211.55.1.el10_2
- perf AlmaLinux 10 6.12.0-211.55.1.el10_2
- rtla AlmaLinux 10 6.12.0-211.55.1.el10_2
- libperf AlmaLinux 10 6.12.0-211.55.1.el10_2
- kernel-rt AlmaLinux 10 6.12.0-211.55.1.el10_2
- kernel-64k AlmaLinux 10 6.12.0-211.55.1.el10_2
- kernel-core AlmaLinux 10 6.12.0-211.55.1.el10_2
almalinux advisories ALSA-2026:67471
- kernel Rocky Linux 10 6.12.0-211.55.1.el10_2
rocky linux advisories RLSA-2026:67471
- kernel Azure Linux 3.0 6.6.121.1-1
- kernel CBL-Mariner 2.0 5.15.200.1-1
azure linux advisories AZL-70001AZL-78389
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- git.kernel.org/stable/c/2b1bef126bbb8d0da51491357559126d567c1dee commit
- git.kernel.org/stable/c/e37ca0092ddace60833790b4ad7a390408fb1be9 commit
- git.kernel.org/stable/c/13159c7125636371543a82cb7bbae00ab36730cc commit
- git.kernel.org/stable/c/f09cd209359a23f88d4f3fa3d2379d057027e53c commit
- git.kernel.org/stable/c/feb474ddbf26b51f462ae2e60a12013bdcfc5407 commit
- git.kernel.org/stable/c/c65f27b9c3be2269918e1cbad6d8884741f835c5 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-40149 updated cvss 5.0
kernel: tls: Use __sk_dst_get() and dst_dev_rcu() in get_netdev_for_sock()
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 moreaffected: workaround, no fix planned “Will not fix”
-
Red Hat Enterprise Linux 9 kernel-rt, kernel-rt-kvm, kernel-rt-core, kernel-rt-modules, kernel-rt-debug-kvm, kernel-rt-debug-core, +12 moreaffected: workaround, no fix available
-
Red Hat Enterprise Linux AppStream (v. 9) rv 5.14.0-687.55.1.el9_8, perf 5.14.0-687.55.1.el9_8, rtla 5.14.0-687.55.1.el9_8, python3-perf 5.14.0-687.55.1.el9_8, kernel-devel-matched 5.14.0-687.55.1.el9_8, kernel-64k-devel-matched 5.14.0-687.55.1.el9_8, +7 morefixed: vendor fix RHSA-2026:76739
-
Red Hat Enterprise Linux AppStream (v. 10) rv 6.12.0-211.55.1.el10_2, perf 6.12.0-211.55.1.el10_2, rtla 6.12.0-211.55.1.el10_2, python3-perf 6.12.0-211.55.1.el10_2, kernel-devel-matched 6.12.0-211.55.1.el10_2, kernel-64k-devel-matched 6.12.0-211.55.1.el10_2, +7 morefixed: vendor fix RHSA-2026:67471
-
Red Hat Enterprise Linux AppStream EUS (v. 10.0) rv 6.12.0-55.103.1.el10_0, perf 6.12.0-55.103.1.el10_0, rtla 6.12.0-55.103.1.el10_0, python3-perf 6.12.0-55.103.1.el10_0, kernel-devel-matched 6.12.0-55.103.1.el10_0, kernel-64k-devel-matched 6.12.0-55.103.1.el10_0, +7 morefixed: vendor fix RHSA-2026:64767
-
Red Hat Enterprise Linux BaseOS (v. 9) kernel 5.14.0-687.55.1.el9_8, kernel-64k 5.14.0-687.55.1.el9_8, kernel-core 5.14.0-687.55.1.el9_8, kernel-tools 5.14.0-687.55.1.el9_8, kernel-modules 5.14.0-687.55.1.el9_8, kernel-64k-core 5.14.0-687.55.1.el9_8, +27 morefixed: vendor fix RHSA-2026:76739
-
Red Hat Enterprise Linux BaseOS (v. 10) kernel 6.12.0-211.55.1.el10_2, kernel-64k 6.12.0-211.55.1.el10_2, kernel-core 6.12.0-211.55.1.el10_2, kernel-tools 6.12.0-211.55.1.el10_2, kernel-modules 6.12.0-211.55.1.el10_2, kernel-64k-core 6.12.0-211.55.1.el10_2, +28 morefixed: vendor fix RHSA-2026:67471
-
Red Hat Enterprise Linux BaseOS EUS (v. 10.0) kernel 6.12.0-55.103.1.el10_0, kernel-64k 6.12.0-55.103.1.el10_0, kernel-core 6.12.0-55.103.1.el10_0, kernel-tools 6.12.0-55.103.1.el10_0, kernel-modules 6.12.0-55.103.1.el10_0, kernel-64k-core 6.12.0-55.103.1.el10_0, +27 morefixed: vendor fix RHSA-2026:64767
show 10 moreshow fewer
-
Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) libperf 5.14.0-687.55.1.el9_8, kernel-debuginfo-common-s390x 5.14.0-687.55.1.el9_8, kernel-debuginfo-common-x86_64 5.14.0-687.55.1.el9_8, kernel-debuginfo-common-aarch64 5.14.0-687.55.1.el9_8, kernel-debuginfo-common-ppc64le 5.14.0-687.55.1.el9_8fixed: vendor fix RHSA-2026:76739
-
Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) libperf 6.12.0-211.55.1.el10_2, kernel-debuginfo-common-s390x 6.12.0-211.55.1.el10_2, kernel-debuginfo-common-x86_64 6.12.0-211.55.1.el10_2, kernel-debuginfo-common-aarch64 6.12.0-211.55.1.el10_2, kernel-debuginfo-common-ppc64le 6.12.0-211.55.1.el10_2fixed: vendor fix RHSA-2026:67471
-
Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0) libperf 6.12.0-55.103.1.el10_0, kernel-debuginfo-common-s390x 6.12.0-55.103.1.el10_0, kernel-debuginfo-common-x86_64 6.12.0-55.103.1.el10_0, kernel-debuginfo-common-aarch64 6.12.0-55.103.1.el10_0, kernel-debuginfo-common-ppc64le 6.12.0-55.103.1.el10_0fixed: vendor fix RHSA-2026:64767
-
Red Hat Enterprise Linux Real Time (v. 9) kernel-rt 5.14.0-687.55.1.el9_8, kernel-rt-64k 5.14.0-687.55.1.el9_8, kernel-rt-core 5.14.0-687.55.1.el9_8, kernel-rt-modules 5.14.0-687.55.1.el9_8, kernel-rt-64k-core 5.14.0-687.55.1.el9_8, kernel-rt-debug-core 5.14.0-687.55.1.el9_8, +14 morefixed: vendor fix RHSA-2026:76739
-
Red Hat Enterprise Linux Real Time (v. 10) kernel-rt 6.12.0-211.55.1.el10_2, kernel-rt-64k 6.12.0-211.55.1.el10_2, kernel-rt-core 6.12.0-211.55.1.el10_2, kernel-rt-modules 6.12.0-211.55.1.el10_2, kernel-rt-64k-core 6.12.0-211.55.1.el10_2, kernel-rt-debug-core 6.12.0-211.55.1.el10_2, +14 morefixed: vendor fix RHSA-2026:67471
-
Red Hat Enterprise Linux Real Time EUS (v. 10.0) kernel-rt 6.12.0-55.103.1.el10_0, kernel-rt-64k 6.12.0-55.103.1.el10_0, kernel-rt-core 6.12.0-55.103.1.el10_0, kernel-rt-modules 6.12.0-55.103.1.el10_0, kernel-rt-64k-core 6.12.0-55.103.1.el10_0, kernel-rt-debug-core 6.12.0-55.103.1.el10_0, +14 morefixed: vendor fix RHSA-2026:64767
-
Red Hat Enterprise Linux Real Time for NFV (v. 9) kernel-rt 5.14.0-687.55.1.el9_8, kernel-rt-core 5.14.0-687.55.1.el9_8, kernel-rt-modules 5.14.0-687.55.1.el9_8, kernel-rt-debug-core 5.14.0-687.55.1.el9_8, kernel-rt-modules-core 5.14.0-687.55.1.el9_8, kernel-rt-debug-modules 5.14.0-687.55.1.el9_8, +4 morefixed: vendor fix RHSA-2026:76739
-
Red Hat Enterprise Linux Real Time for NFV (v. 10) kernel-rt 6.12.0-211.55.1.el10_2, kernel-rt-core 6.12.0-211.55.1.el10_2, kernel-rt-modules 6.12.0-211.55.1.el10_2, kernel-rt-debug-core 6.12.0-211.55.1.el10_2, kernel-rt-modules-core 6.12.0-211.55.1.el10_2, kernel-rt-debug-modules 6.12.0-211.55.1.el10_2, +4 morefixed: vendor fix RHSA-2026:67471
-
Red Hat Enterprise Linux Real Time for NFV EUS (v. 10.0) kernel-rt 6.12.0-55.103.1.el10_0, kernel-rt-kvm 6.12.0-55.103.1.el10_0, kernel-rt-core 6.12.0-55.103.1.el10_0, kernel-rt-modules 6.12.0-55.103.1.el10_0, kernel-rt-debug-kvm 6.12.0-55.103.1.el10_0, kernel-rt-debug-core 6.12.0-55.103.1.el10_0, +6 morefixed: vendor fix RHSA-2026:64767
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-26-295-11 updated cvss 7.8
Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP
-
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= 3.1.7 Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= 3.1.7 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= 3.1.7 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) >= 3.1.7 Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) >= 3.1.7affected: mitigation, no fix available
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
cisa ICSA-26-209-04 updated cvss 5.0
Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP
-
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= 3.1.6 Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= 3.1.6 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= 3.1.6 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) >= 3.1.6 Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) >= 3.1.6affected: mitigation, no fix available
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 24 d ago
Exploit prediction
0.17% chance of exploitation in the next 30 days, higher than 6% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 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
- Linux Linux
- Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP
- Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP
- Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP
Classification
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
-
git.kernel.org
/stable/c/2b1bef126bbb8d0da51491357559126d567c1dee
patch
-
git.kernel.org
/stable/c/e37ca0092ddace60833790b4ad7a390408fb1be9
patch
-
git.kernel.org
/stable/c/13159c7125636371543a82cb7bbae00ab36730cc
patch
-
git.kernel.org
/stable/c/f09cd209359a23f88d4f3fa3d2379d057027e53c
patch
-
git.kernel.org
/stable/c/feb474ddbf26b51f462ae2e60a12013bdcfc5407
patch
-
git.kernel.org
/stable/c/c65f27b9c3be2269918e1cbad6d8884741f835c5
patch
- cert-portal.siemens.com /productcert/html/ssa-019113.html
- cert-portal.siemens.com /productcert/html/ssa-457936.html
Sources
- CVE List CVE-2025-40149
- NVD CVE-2025-40149
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.