Critical Race Condition in Linux Kernel's mremap Function - CVE-2024-50066

linux Updated 02 Oct 2025

Summary

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

DEBIAN-CVE-2024-50066: In the Linux kernel, the following vulnerability has been resolved: mm/mremap: fix move_normal_pmd/retract_page_tables race In mremap(), move_page_tables() looks at the type of the PMD entry and the specified address ran... Affects linux versions < 6.11.5-1. Fixed in 6.11.5-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 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 Linux kernel is the core component of many operating systems, responsible for managing hardware resources and providing essential services to software applications. It supports a wide range of functionalities, including process management, memory management, and device control. The vulnerability identified as CVE-2024-50066 affects the memory management subsystem, specifically the mremap function, which is used to resize memory mappings. This vulnerability can lead to serious security implications, including potential privilege escalation.

Vulnerability Detail

In the Linux kernel, a race condition exists in the mremap function due to improper handling of page table entries. When the mremap function is invoked, it attempts to move page table entries while holding the mmap_lock in write mode but without acquiring necessary rmap locks initially. This can lead to a scenario where concurrent processes can interfere with each other's operations, resulting in the creation of invalid PMD entries. Specifically, on x86 architectures, this could allow physical page 0 to be mapped as a page table, potentially leading to user-to-kernel privilege escalation. The vulnerability is particularly concerning as it can be exploited under specific conditions involving shared memory and file mappings.

How To Fix

Minimum fixed version

6.11.5-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 mentioned for this vulnerability. However, users are advised to avoid using shared memory mappings that could trigger this race condition until the kernel is updated.

Conclusion

The CVE-2024-50066 vulnerability in the Linux kernel poses significant security risks due to a race condition in the mremap function. Users are strongly encouraged to update their systems to the patched version to mitigate potential exploitation. Monitoring tools like Vulert can assist in identifying vulnerabilities in your software.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2024-50066 is a vulnerability in the Linux kernel that allows for a race condition in the mremap function, potentially leading to privilege escalation.

You can use tools like Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.

The primary risk is user-to-kernel privilege escalation, which could allow unauthorized users to gain elevated access to system resources.

Yes, a patch is available in version 6.11.5-1 of the Linux kernel. Users should update to this version or later.

While there are no specific workarounds, it is advisable to limit the use of shared memory mappings until the kernel can be updated.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.11.5-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