Memory Management Vulnerability in Linux Kernel: Free Huge Pages Leak in Linux Package
Summary
DEBIAN-CVE-2024-49964: In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb: fix memfd_pin_folios free_huge_pages leak memfd_pin_folios followed by unpin_folios fails to restore free_huge_pages if the pages were not a... Affects linux versions < 6.11.4-1. Fixed in 6.11.4-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 the Linux operating system, responsible for managing system resources and facilitating communication between hardware and software. It provides essential services such as process management, memory management, and device control. The vulnerability in question affects the memory management subsystem, specifically the handling of huge pages, which are used to optimize memory allocation and improve performance for large applications.
Vulnerability Detail
In the Linux kernel, a vulnerability has been identified in the memory management functions related to huge pages. The issue arises in the 'memfd_pin_folios' and 'unpin_folios' functions, where a failure to restore the 'free_huge_pages' count occurs if the pages were not previously faulted in. This is due to the reference count for pages created by 'memfd_alloc_folio' not reaching zero, leading to a leak of free huge pages. The technical flow indicates that the reference count is incorrectly managed, resulting in potential memory exhaustion and performance degradation.
How To Fix
Minimum fixed version
6.11.4-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
Currently, there are no specific workarounds provided for this vulnerability. The best course of action is to apply the patch as soon as it is available.
Conclusion
The vulnerability in the Linux kernel related to memory management poses significant risks, including memory leaks and performance degradation. It is essential for users to update their systems to the patched version to ensure security and stability. Utilizing tools like Vulert can help in monitoring and managing open-source vulnerabilities effectively.
See every vulnerability recorded for linux →
FAQ
The vulnerability can lead to a leak of free huge pages, potentially resulting in memory exhaustion and performance issues in applications that rely on huge pages.
You can use the Vulert platform to monitor and alert for open-source vulnerabilities. By simply uploading your manifest file, such as package-lock.json, you can check if your application is affected by this vulnerability.
Yes, the vulnerability affects the Linux packages in Debian 13 and Debian 14, specifically versions prior to 6.11.4-1.
While there are no specific workarounds, it is crucial to prioritize updating your package to mitigate the risk associated with this vulnerability.
Detailed information can be found in the Debian CVE database or by visiting the Vulert website for real-time monitoring of vulnerabilities.
References
Related vulnerabilities
Recent vulnerabilities recorded for linux.