Vulnerability in Kernel: mm, hugetlb: fix simple resv_huge_pages underflow on UFFDIO_COPY
Summary
UVI-2021-1000745: mm, hugetlb: fix simple resv_huge_pages underflow on UFFDIO_COPY. Affects Kernel versions >= 8fb5debc5fcd450470cdd789c2d80ef95ebb8cf4, < 7de60c2d5a2a66ef2c5d76952a5a3a9a4ea4d436. 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 Kernel is a critical component of the Linux operating system that manages system resources and facilitates communication between hardware and software. It provides essential functionalities such as memory management, process scheduling, and device drivers. The vulnerability in the Kernel, specifically in the mm and hugetlb subsystems, can lead to a simple resv_huge_pages underflow on UFFDIO_COPY. This vulnerability was introduced in version v4.11 and affects Linux Kernel versions up to v4.19.194.
Vulnerability Detail
The vulnerability arises from an underflow issue in the resv_huge_pages function when processing UFFDIO_COPY requests. An attacker could exploit this vulnerability to trigger a memory corruption or denial-of-service condition. The impact and attack plausibility of this vulnerability have not been proven yet. It is important to note that this vulnerability has been fixed in Linux Kernel version v4.19.194 by commit 7de60c2d5a2a66ef2c5d76952a5a3a9a4ea4d436.
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
No specific workaround has been mentioned for this vulnerability.
Conclusion
The vulnerability in the Kernel's mm and hugetlb subsystems, which causes a simple resv_huge_pages underflow on UFFDIO_COPY, can lead to memory corruption or denial-of-service. It is crucial to update the Linux Kernel to version v4.19.194 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The impact of this vulnerability could potentially lead to memory corruption or denial-of-service.
You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and the Vulert Playground will provide real-time alerts for open-source vulnerabilities.
At the time of this report, there is no known exploit for this vulnerability.
No, only Linux Kernel versions up to v4.19.194 are affected. Versions after v4.19.194 have the vulnerability fixed.
It is highly recommended to update the Kernel as soon as possible to mitigate the risk of exploitation.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.