Critical Memory Management Vulnerability in Linux Kernel: CVE-2025-40168

Updated 14 Nov 2025

Summary

12/11/2025
N/A
Yes i
Unrated
Not published

CVE-2025-40168: smc: Use __sk_dst_get() and dst_dev_rcu() in smc_clc_prfx_match(). Affects across 3 version ranges.

>= 4.11.0, < 6.17.3 >= a046d57da19f812216f393e7c535f5858f793ac3, < d26e80f7fb62d77757b67a1b94e4ac756bc9c658 >= a046d57da19f812216f393e7c535f5858f793ac3, < 235f81045c008169cc4e1955b4a64e118eebe61b

Fixed in d26e80f7fb62d77757b67a1b94e4ac756bc9c658. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Linux Kernel is the core component of Linux operating systems, managing hardware resources and providing essential services for software applications. It is known for its stability, performance, and extensive support for various hardware architectures. However, like any complex software, it is susceptible to vulnerabilities that can impact system security and performance. CVE-2025-40168 specifically affects the SMC (Shared Memory Communications) subsystem, which facilitates efficient communication between processes.

Vulnerability Detail

CVE-2025-40168 is a critical vulnerability in the Linux Kernel's SMC subsystem, specifically in the smc_clc_prfx_match() function. This vulnerability arises from improper handling of socket destination information, which can lead to a use-after-free (UAF) condition. If exploited, this could allow an attacker to execute arbitrary code, potentially compromising the entire system. The vulnerability is triggered when smc_clc_prfx_match() is called from smc_listen_work() without proper protection under RCU (Read-Copy-Update) or RTNL (Read-Take-Network-Lock), leading to unsafe access of memory that has already been freed.

How To Fix

Minimum fixed version

d26e80f7fb62d77757b67a1b94e4ac756bc9c658

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid using the SMC subsystem until the kernel is updated. This may involve disabling certain features or services that rely on SMC, depending on the specific use case.

Conclusion

CVE-2025-40168 is a significant vulnerability in the Linux Kernel that poses serious security risks. Users are strongly advised to update their systems to the latest patched versions to protect against potential exploitation. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.

See every vulnerability recorded for →

Share this vulnerability

FAQ

CVE-2025-40168 is a vulnerability in the Linux Kernel's SMC subsystem that can lead to a use-after-free condition, potentially allowing attackers to execute arbitrary code.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities. By uploading your manifest file like package-lock.json, you can check if your application is affected by CVE-2025-40168.

Exploitation of CVE-2025-40168 could lead to arbitrary code execution, allowing attackers to gain control over the affected system, steal data, or disrupt services.

Yes, the vulnerability has been fixed in Linux Kernel versions 6.17.3 and later. It is crucial to update your kernel to mitigate the risk.

If an immediate update is not possible, consider disabling the SMC subsystem as a temporary workaround to reduce exposure to the vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for .

How To Fix

Minimum fixed version

d26e80f7fb62d77757b67a1b94e4ac756bc9c658

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.