CVE-2025-40149 Details
Description
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.
A use-after-free vulnerability has been addressed in the Linux kernel's TLS implementation. The issue arose in the get_netdev_for_sock function, which is called during the setsockopt process, outside of RCU (Read-Copy-Update) protection. This could lead to a use-after-free condition by improperly accessing the socket's destination entry. The vulnerability has been fixed by modifying the function to use RCU-safe operations, ensuring proper synchronization and preventing potential exploitation.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. Instructions for downloading the patched version are available on the Linux Kernel Archive.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cert-portal.siemens.com/productcert/html/ssa-019113.html | siemens-SADP | |
| https://cert-portal.siemens.com/productcert/html/ssa-457936.html | siemens-SADP | |
| https://git.kernel.org/stable/c/13159c7125636371543a82cb7bbae00ab36730cc | kernel.org | Patch |
| https://git.kernel.org/stable/c/2b1bef126bbb8d0da51491357559126d567c1dee | kernel.org | Patch |
| https://git.kernel.org/stable/c/c65f27b9c3be2269918e1cbad6d8884741f835c5 | kernel.org | Patch |
| https://git.kernel.org/stable/c/e37ca0092ddace60833790b4ad7a390408fb1be9 | kernel.org | Patch |
| https://git.kernel.org/stable/c/f09cd209359a23f88d4f3fa3d2379d057027e53c | kernel.org | Patch |
| https://git.kernel.org/stable/c/feb474ddbf26b51f462ae2e60a12013bdcfc5407 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.18, < 5.15.199 >= 5.16, < 6.1.161 >= 6.2, < 6.6.121 >= 6.7, < 6.12.66 >= 6.13, < 6.17.3 |
CPE
Remediation
| |
Change History
12 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 10, 2026 | CVE Modified | siemens-SADP |
| Oct 19, 2026 | CVE Translated | [email protected] |
| Oct 15, 2026 | CVE Modified | CISA-ADP |
| Oct 15, 2026 | CVE Modified | kernel.org |
| Oct 15, 2026 | CVE Modified | siemens-SADP |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jul 14, 2026 | CVE Modified | siemens-SADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Feb 26, 2026 | Initial Analysis | [email protected] |
| Feb 6, 2026 | CVE Modified | kernel.org |
| Jan 17, 2026 | CVE Modified | kernel.org |
| Nov 12, 2025 | New CVE Received | kernel.org |