Memory Management Vulnerability in Linux Kernel: Free Huge Pages Leak in Linux Package

linux Updated 02 Oct 2025

Summary

21/10/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-49964: In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb: fix memfd_pin_folios free_huge_pages leak memfd_pin_folios followed by unpin_folios fails to restore free_huge_pages if the pages were not a... Affects linux versions < 6.11.4-1. Fixed in 6.11.4-1. 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 Linux kernel is the core component of the Linux operating system, responsible for managing system resources and facilitating communication between hardware and software. It provides essential services such as process management, memory management, and device control. The vulnerability in question affects the memory management subsystem, specifically the handling of huge pages, which are used to optimize memory allocation and improve performance for large applications.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the memory management functions related to huge pages. The issue arises in the 'memfd_pin_folios' and 'unpin_folios' functions, where a failure to restore the 'free_huge_pages' count occurs if the pages were not previously faulted in. This is due to the reference count for pages created by 'memfd_alloc_folio' not reaching zero, leading to a leak of free huge pages. The technical flow indicates that the reference count is incorrectly managed, resulting in potential memory exhaustion and performance degradation.

How To Fix

Minimum fixed version

6.11.4-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds provided for this vulnerability. The best course of action is to apply the patch as soon as it is available.

Conclusion

The vulnerability in the Linux kernel related to memory management poses significant risks, including memory leaks and performance degradation. It is essential for users to update their systems to the patched version to ensure security and stability. Utilizing tools like Vulert can help in monitoring and managing open-source vulnerabilities effectively.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability can lead to a leak of free huge pages, potentially resulting in memory exhaustion and performance issues in applications that rely on huge pages.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities. By simply uploading your manifest file, such as package-lock.json, you can check if your application is affected by this vulnerability.

Yes, the vulnerability affects the Linux packages in Debian 13 and Debian 14, specifically versions prior to 6.11.4-1.

While there are no specific workarounds, it is crucial to prioritize updating your package to mitigate the risk associated with this vulnerability.

Detailed information can be found in the Debian CVE database or by visiting the Vulert website for real-time monitoring of vulnerabilities.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

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

Minimum fixed version

6.11.4-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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