7.8

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

Modified
AliasesUBUNTU-CVE-2025-40149DEBIAN-CVE-2025-40149
Published 12-11-2025Last modified 15-10-2026

Vulnerability summary

CVE-2025-40149 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.17% chance of exploitation in the next 30 days, higher than 6.6% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.17%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 49 · Related 43

Timeline

  1. 12-11-2025
    PublishedVulnerability first disclosed.
  2. 15-10-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 4 sources · 2 versions

EPSS trend

Probability

0.17%

Chance of exploitation in the next 30 days

Percentile

7%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 0.16% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu149 products
  • linuxAll versions (No fix recorded) | < 5.15.0-176.186 | < 6.8.0-117.117 | < 6.17.0-14.14
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-awsAll versions (No fix recorded) | < 5.15.0-1105.112 | < 6.8.0-1055.58 | < 6.17.0-1007.7
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Linux2 products
  • linux≥ e8f69799810c32dd40c6724d829eccc70baad07f, < 2b1bef126bbb8d0da51491357559126d567c1dee | ≥ e8f69799810c32dd40c6724d829eccc70baad07f, < e37ca0092ddace60833790b4ad7a390408fb1be9 | ≥ e8f69799810c32dd40c6724d829eccc70baad07f, < 13159c7125636371543a82cb7bbae00ab36730cc | ≥ e8f69799810c32dd40c6724d829eccc70baad07f, < f09cd209359a23f88d4f3fa3d2379d057027e53c | ≥ e8f69799810c32dd40c6724d829eccc70baad07f, < feb474ddbf26b51f462ae2e60a12013bdcfc5407 | ≥ e8f69799810c32dd40c6724d829eccc70baad07f, < c65f27b9c3be2269918e1cbad6d8884741f835c5 | 4.18
  • 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
Debian1 product
  • linux< 6.1.162-1 | < 6.12.69-1 | < 6.17.6-1

3 vendors · 152 products

References

40 links
Show all 40 references