Use-After-Free Vulnerability in Linux Kernel: CVE-2025-40064

linux Updated 04 Nov 2025

Summary

28/10/2025
N/A
No i
Unrated
Not published

DEBIAN-CVE-2025-40064: In the Linux kernel, the following vulnerability has been resolved: smc: Fix use-after-free in pnet_find_base_ndev(). Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is the core component of many operating systems, managing hardware resources and providing essential services for software applications. It is known for its stability, performance, and security features. However, like any complex software, it can be susceptible to vulnerabilities. CVE-2025-40064 is a specific use-after-free vulnerability that affects the Linux kernel, particularly in the SMC (Shared Memory Communications) subsystem, which is responsible for efficient communication between processes.

Vulnerability Detail

CVE-2025-40064 is a use-after-free vulnerability that occurs in the function __pnet_find_base_ndev() within the Linux kernel's SMC subsystem. This vulnerability arises when the function attempts to access a network device that has already been freed, leading to potential exploitation by an attacker. The issue was reported by syzbot, which highlighted that the net_device structure could be accessed after it has been deallocated, resulting in undefined behavior and possible system crashes. The vulnerability can be exploited during the connection process, where improper reference counting allows for the use of freed memory, which can be swapped with a blackhole_netdev, leading to further security risks.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can avoid using the affected functions or limit the use of SMC connections until the patch is applied. However, this is not a permanent solution and updating the kernel is strongly recommended.

Conclusion

CVE-2025-40064 represents a significant vulnerability within the Linux kernel that can lead to severe security implications. It is crucial for users to update their systems promptly to ensure protection against potential exploits. Utilizing tools like Vulert can aid in monitoring vulnerabilities in real-time.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-40064 is a use-after-free vulnerability in the Linux kernel's SMC subsystem that can lead to system instability and potential exploitation.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected by this vulnerability.

The risks include system crashes, undefined behavior, and potential exploitation by attackers to execute arbitrary code.

Yes, a patch has been released. Users should update their Linux kernel to the latest version to mitigate the vulnerability.

If immediate updates are not possible, limit the use of SMC connections and monitor for any unusual system behavior until the update can be applied.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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