Use-After-Free Vulnerability in Linux Kernel: CVE-2025-40064
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.
References
Related vulnerabilities
Recent vulnerabilities recorded for linux.