Vulnerability in Kernel: mm: khugepaged: skip huge page collapse for special files

Kernel Updated 02 Oct 2025

Summary

14/11/2021
N/A
No i
Unrated
Not published

GSD-2021-1002195: mm: khugepaged: skip huge page collapse for special files. Affects Kernel versions >= 99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0, < a4aeaa06d45e90f9b279f0b09de84bd00006e733. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 functions for memory management, process scheduling, and device drivers. The vulnerability in question affects the khugepaged module, which is responsible for transparent huge page support in the Kernel. Transparent huge pages are a feature that improves memory efficiency by using larger page sizes. However, this vulnerability allows for the skipping of huge page collapse for special files, potentially leading to memory corruption or privilege escalation.

Vulnerability Detail

The vulnerability arises from a flaw in the khugepaged module, specifically in the handling of special files. By skipping the collapse of huge pages for these files, an attacker could exploit this behavior to manipulate memory contents or gain elevated privileges. The impact of this vulnerability could range from local privilege escalation to remote code execution, depending on the attacker's capabilities and the system's configuration. It is important to note that the actual impact and attack plausibility 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

As a temporary workaround, users can disable transparent huge pages by modifying the kernel boot parameters. This can be achieved by adding the 'transparent_hugepage=never' parameter to the kernel command line. However, it is important to note that this workaround may impact system performance and memory efficiency.

Conclusion

The vulnerability in the Kernel's khugepaged module poses a potential risk of memory corruption and privilege escalation. It is crucial to update the Kernel to the latest version available and apply the necessary security patches. As always, it is recommended to follow best practices for system security and stay informed about the latest vulnerabilities and updates. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability can range from local privilege escalation to remote code execution, depending on the attacker's capabilities and the system's configuration.

To fix this vulnerability, it is recommended to update the Kernel to the latest version available. Follow the official documentation provided by the Linux distribution or use package management tools specific to the distribution.

Yes, as a temporary workaround, users can disable transparent huge pages by modifying the kernel boot parameters. Add the 'transparent_hugepage=never' parameter to the kernel command line. However, note that this workaround may impact system performance and memory efficiency.

There is no evidence of this vulnerability being exploited in the wild at the time of this report. However, it is important to apply the necessary updates and security patches to mitigate the risk.

For more information about this vulnerability, refer to the official references provided in the vulnerability details section.

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