Bug 2414466 (CVE-2025-40149) - CVE-2025-40149 kernel: tls: Use __sk_dst_get() and dst_dev_rcu() in get_netdev_for_sock()
Summary: CVE-2025-40149 kernel: tls: Use __sk_dst_get() and dst_dev_rcu() in get_netde...
Keywords:
Status: NEW
Alias: CVE-2025-40149
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-11-12 11:01 UTC by OSIDB Bzimport
Modified: 2025-11-21 12:01 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-11-12 11:01:30 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.