Vulnerability in Linux 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-1000783: mm, hugetlb: fix simple resv_huge_pages underflow on UFFDIO_COPY. Affects Kernel versions >= 8fb5debc5fcd450470cdd789c2d80ef95ebb8cf4, < 2eb4ec9c2c3535b9755c484183cc5c4d90fd37ff. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Linux Kernel is a critical component of the Linux operating system, responsible for managing system resources and providing an interface between hardware and software. It is a widely used open-source package that powers numerous devices and servers. The mm subsystem within the kernel handles memory management, including the allocation and deallocation of memory pages. One specific feature of the mm subsystem is hugetlb, which allows for the allocation of large memory pages. This vulnerability affects the hugetlb functionality in the Linux Kernel.

Vulnerability Detail

The vulnerability, identified as GSD-2021-1000783, is a simple resv_huge_pages underflow on UFFDIO_COPY in the mm subsystem of the Linux Kernel. This vulnerability was introduced in version v4.11 of the kernel and was fixed in version v5.10.43. The vulnerability arises when handling userfaultfd (UFFD) copy operations, leading to an underflow in the resv_huge_pages counter. An attacker could potentially exploit this vulnerability to gain elevated privileges or cause a denial-of-service (DoS) condition. The impact and attack plausibility of this vulnerability have not been proven yet.

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.

Conclusion

In conclusion, the vulnerability in the Linux Kernel's mm subsystem, specifically in the hugetlb functionality, could potentially allow an attacker to gain elevated privileges or cause a denial-of-service (DoS) condition. It is crucial to update the Linux Kernel to version v5.10.43 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 impact of this vulnerability could potentially allow an attacker to gain elevated privileges or cause a denial-of-service (DoS) condition.

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 to the playground, and it will provide real-time monitoring and alerts for open-source vulnerabilities, including this one.

At the time of this report, there is no known exploit for this vulnerability. However, it is important to apply the recommended fix to mitigate any potential risks.

The exact attack vector and exploitability of this vulnerability have not been proven yet. It is advisable to update the Linux Kernel to the latest version to ensure the system is protected against potential remote exploitation.

The recommended solution is to update the Linux Kernel to version v5.10.43 or later. It is not advisable to rely on alternative solutions or workarounds, as they may not provide comprehensive protection against the vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

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