CVE-2025-40149: tls: Use __sk_dst_get() and dst_dev_rcu() in get_netdev_for_sock().

Published Nov 12, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

tls: Use skdstget() and dstdevrcu() in getnetdevforsock().

getnetdevforsock() is called during setsockopt(), so not under RCU.

Using skdstget(sk)->dev could trigger UAF.

Let's use skdstget() and dstdevrcu().

Note that the only ->ndoskgetlowerdev() user is bondskgetlowerdev(), which uses RCU.

Affected Software

10 affected componentsFixes available
Linux Linux kernel
Microsoft azl3 kernel 6.6.112.1-2
Microsoft azl3 kernel 6.6.117.1-1
Microsoft azl3 kernel 6.6.119.3-3
Linux Linux kernel>=4.18<5.15.199
Linux Linux kernel>=5.16<6.1.161
Linux Linux kernel>=6.2<6.6.121
Linux Linux kernel>=6.7<6.12.66
Linux Linux kernel>=6.13<6.17.3
Microsoft cbl2 kernel 5.15.186.1-1

Event History

Nov 12, 2025
CVE Published
via MITRE·10:23 AM
Data Sourced
via MITRE·10:23 AM
DescriptionSeverity
Data Sourced
via NVD·11:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Nov 13, 2025
Data Sourced
via Microsoft·01:02 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·01:02 AM
Affected Software
Updated
via Microsoft·09:02 AM
Affected Software
Updated
via Microsoft·09:02 AM
DescriptionSeverity
Updated
via Microsoft·09:02 AM
SeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-40149?

CVE-2025-40149 has been classified with a severity rating that indicates a potential risk of unauthorized access due to a use-after-free condition.

2

How do I fix CVE-2025-40149?

To fix CVE-2025-40149, users should update their Linux kernel to the latest patched version provided by their distribution.

3

What systems are affected by CVE-2025-40149?

CVE-2025-40149 affects the Linux kernel, specifically in functions related to socket options.

4

What are the risks associated with CVE-2025-40149?

The risks associated with CVE-2025-40149 include potential remote code execution and denial of service due to improper handling of socket options.

5

When was CVE-2025-40149 disclosed?

CVE-2025-40149 was disclosed as part of a security update for the Linux kernel addressing vulnerabilities.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203