Vulnerability in Kernel: mm, hugetlb: fix simple resv_huge_pages underflow on UFFDIO_COPY

Kernel Updated 02 Oct 2025

Summary

25/06/2021
N/A
No i
Unrated
Not published

GSD-2021-1000818: mm, hugetlb: fix simple resv_huge_pages underflow on UFFDIO_COPY. Affects Kernel versions >= 8fb5debc5fcd450470cdd789c2d80ef95ebb8cf4, < 6280e8aca1e0c86a36d45032b4f17e68732b8880. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Kernel is a critical component of the Linux operating system that manages system resources and provides an interface for software applications to interact with the hardware. It is responsible for memory management, process scheduling, device drivers, and other essential functions. The vulnerability in question affects the mm (memory management) subsystem and specifically the hugetlb (huge pages) feature. Huge pages are larger memory pages that can improve performance for certain workloads. The vulnerability allows for a simple resv_huge_pages underflow on UFFDIO_COPY, potentially leading to security issues.

Vulnerability Detail

The vulnerability arises from a flaw in the mm, hugetlb subsystem of the Kernel. When performing UFFDIO_COPY, a simple resv_huge_pages underflow can occur. This underflow can have various security implications, although the exact attack vectors and impact have not been proven. The vulnerability was introduced in version v4.11 of the Linux Kernel and has been fixed in version v5.12.10 by commit 6280e8aca1e0c86a36d45032b4f17e68732b8880.

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. The recommended approach is to apply the fix by updating the Linux Kernel to the patched version.

Conclusion

In conclusion, the vulnerability in the Kernel's mm, hugetlb subsystem can lead to a simple resv_huge_pages underflow on UFFDIO_COPY, potentially resulting in security issues. It is crucial to update the Linux Kernel to version v5.12.10 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The exact impact of this vulnerability is not yet proven. However, it has the potential to be exploited for security purposes, so it is important to apply the fix to prevent any potential attacks.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will analyze and alert you in real-time if any open-source vulnerabilities, including this one, are detected.

The recommended approach is to update the Kernel to the fixed version. However, if updating is not immediately feasible, it is crucial to ensure other security measures are in place, such as network segmentation, access controls, and monitoring for any suspicious activities.

As of now, there are no known exploits for this vulnerability. However, it is always advisable to apply security patches promptly to minimize the risk of potential exploits.

You can find more information about this vulnerability, including the specific commits that introduced and fixed it, in the vulnerability database maintained by the Cloud Security Alliance. The source for this vulnerability can be accessed at: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1000xxx/GSD-2021-1000818.json

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback