CVE-2024-36000: linux-libc-dev - Missing hugetlb_lock for resv uncharge
Summary
CVE-2024-36000: In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb: fix missing hugetlb_lock for resv uncharge There is a recent report on UFFDIO_COPY over hugetlb: https://lore.kernel.org/all/000000000000ee0... 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
linux-libc-dev is a package in the Linux kernel that provides the C library headers for the Linux system. These headers define the system calls and data structures used by programs that interact with the kernel. The linux-libc-dev package is essential for compiling and building software on a Linux system. However, a vulnerability has been discovered in the package that could lead to a security issue.
Vulnerability Detail
The vulnerability in linux-libc-dev, identified as CVE-2024-36000, is related to the handling of hugetlb (huge page) operations. Specifically, there is a missing hugetlb_lock for resv uncharge, which can be triggered in an userfault context. This vulnerability can be exploited by two threads modifying the resv map simultaneously, leading to a potential security breach. The issue has been addressed with a fix in the hugetlb_cgroup_uncharge_folio_rsvd() function, which now properly handles the locking criteria.
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
There is no specific workaround mentioned for this vulnerability. It is advised to apply the recommended fix by updating the linux-libc-dev package.
Conclusion
The linux-libc-dev package is vulnerable to a missing hugetlb_lock for resv uncharge issue, which could potentially be exploited by attackers. It is crucial to update the package to the latest version to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for linux →
FAQ
linux-libc-dev is a package in the Linux kernel that provides the C library headers for the Linux system. These headers define the system calls and data structures used by programs that interact with the kernel.
This vulnerability could potentially be exploited by malicious actors to gain unauthorized access or perform other malicious activities on a system running the affected version of linux-libc-dev.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and the tool will provide real-time alerts for any open-source vulnerabilities, including this one.
Yes, a fix has been released for this vulnerability. It is recommended to update the linux-libc-dev package to version 6.1.90-1 or later to mitigate the risk.
You can find more information about this vulnerability on the Debian Security Tracker (https://salsa.debian.org/security-tracker-team/security-tracker) and the National Vulnerability Database (https://nvd.nist.gov/vuln/detail/CVE-2024-36000).
Related vulnerabilities
Recent vulnerabilities recorded for linux.