Vulnerability in mm/filemap Package: Handling of THPs in generic_file_buffered_read()

Kernel Updated 02 Oct 2025

Summary

18/03/2022
N/A
No i
Unrated
Not published

GSD-2022-1000821: mm/filemap: Fix handling of THPs in generic_file_buffered_read(). Affects Kernel versions >= cbd59c48ae2bcadc4a7599c29cf32fd3f9b78251, < f89903ae99bd02379e8b84d487ce302f122c4ef1. 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 mm/filemap package is a component of the Linux Kernel, which is responsible for managing memory and file mapping. It provides functions for reading and writing data from/to files. The generic_file_buffered_read() function is used for buffered file reads, where data is read into a page cache before being returned to the caller. However, a vulnerability has been discovered in the handling of Transparent Huge Pages (THPs) within this function.

Vulnerability Detail

The vulnerability arises from a flaw in the handling of THPs in the generic_file_buffered_read() function of the mm/filemap package. THPs are large memory pages that can improve performance by reducing the overhead of managing smaller pages. However, the code in question does not properly handle THPs, potentially leading to memory corruption or other security issues. An attacker may be able to exploit this vulnerability to gain unauthorized access to sensitive information or execute arbitrary code.

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 workaround, users can disable Transparent Huge Pages (THPs) by setting the 'transparent_hugepage' kernel parameter to 'never'. This can be done by adding 'transparent_hugepage=never' to the kernel command line in the bootloader configuration. However, disabling THPs may impact system performance, so it is recommended to apply the official fix as soon as possible.

Conclusion

In conclusion, a vulnerability has been discovered in the mm/filemap package of the Linux Kernel, specifically in the handling of Transparent Huge Pages (THPs) within the generic_file_buffered_read() function. This vulnerability could potentially allow an attacker to gain unauthorized access to sensitive information or execute arbitrary code. It is recommended to update the Linux Kernel to version v5.15.26 or later to fix this issue. Alternatively, users can apply a temporary workaround by disabling THPs, but it is advised to apply the official fix as soon as possible. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability could potentially allow an attacker to gain unauthorized access to sensitive information or execute arbitrary code.

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 and it will analyze the dependencies for any known vulnerabilities.

At the time of this report, there are no known public exploits for this vulnerability. However, it is always recommended to apply security patches as soon as they are available.

A temporary workaround is to disable Transparent Huge Pages (THPs) by setting the 'transparent_hugepage' kernel parameter to 'never'. However, it is strongly recommended to apply the official fix by updating the Linux Kernel to the latest version.

You can find more information about this vulnerability in the GSD-2022-1000821.json file available in the GSD database (https://github.com/cloudsecurityalliance/gsd-database).

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