Memory Leak Vulnerability in Linux Kernel - CVE-2024-57841
Summary
CVE-2024-57841: In the Linux kernel, the following vulnerability has been resolved: net: fix memory leak in tcp_conn_request() If inet_csk_reqsk_queue_hash_add() return false, tcp_conn_request() will return without free the dst memory,... Affects linux versions < 6.1.124-1. Fixed in 6.1.124-1. 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, responsible for managing hardware resources and providing essential services to software applications. It is known for its stability, performance, and security features. However, vulnerabilities can arise, impacting the kernel's functionality and the overall system's security. CVE-2024-57841 is a specific vulnerability that affects the Linux kernel in Debian versions 12 and 13, leading to potential memory leaks.
Vulnerability Detail
CVE-2024-57841 is a memory leak vulnerability found in the tcp_conn_request() function of the Linux kernel. The issue occurs when the inet_csk_reqsk_queue_hash_add() function returns false, causing tcp_conn_request() to exit without freeing the allocated destination (dst) memory. This unreferenced memory can lead to increased memory usage over time, potentially affecting system performance and stability. The vulnerability was identified through kmemleak, which showed an unreferenced object in memory, indicating that the allocated memory was not properly released.
How To Fix
Minimum fixed version
6.1.124-1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade linux
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, users can monitor their system's memory usage and manually release resources when necessary. However, the best course of action is to apply the patch as soon as it becomes available.
Conclusion
CVE-2024-57841 is a critical memory leak vulnerability in the Linux kernel that requires immediate attention. Users are advised to update their systems to the latest kernel version to prevent potential memory-related issues. Utilizing tools like Vulert can help in monitoring and identifying vulnerabilities in your software.
See every vulnerability recorded for linux →
FAQ
CVE-2024-57841 is a memory leak vulnerability in the Linux kernel that can lead to increased memory usage and potential system instability.
You can use Vulert, which monitors open-source vulnerabilities in your software. By uploading your manifest file, such as package-lock.json, you can check for vulnerabilities without needing to install any software.
If exploited, this vulnerability can lead to memory leaks, which may degrade system performance and stability over time.
Yes, a patch is available. Users should update their Linux kernel to the latest version to mitigate this vulnerability.
If an immediate update is not possible, monitor your system's memory usage closely and consider implementing temporary workarounds until the update can be applied.
Related vulnerabilities
Recent vulnerabilities recorded for linux.