Critical Race Condition in Linux Kernel Affecting Memory Management

linux Updated 02 Oct 2025

Summary

18/09/2024
N/A
No i
Medium
4.7

CVE-2024-46787: In the Linux kernel, the following vulnerability has been resolved: userfaultfd: fix checks for huge PMDs Patch series "userfaultfd: fix races around pmd_trans_huge() check", v2. Affects linux versions 5.10.103-1 – 6.9.9-1. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux kernel is the core component of many operating systems, managing hardware resources and providing essential services for software applications. It is known for its robustness and flexibility, supporting a wide range of hardware architectures. However, vulnerabilities can arise, impacting system stability and security. This specific vulnerability affects the memory management subsystem, particularly in handling page table entries, which are crucial for efficient memory allocation and access.

Vulnerability Detail

The vulnerability, identified as CVE-2024-46787, arises from a race condition in the userfaultfd mechanism of the Linux kernel. This issue can lead to a situation where the kernel mistakenly treats a huge page as a regular page table, potentially causing a kernel oops or crash. The problem is exacerbated by the pmd_trans_huge() check being insufficient for detecting certain types of page mappings, particularly in older kernel versions. The vulnerability can be triggered under specific race conditions, leading to undefined behavior and system instability.

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 avoid triggering the vulnerability by minimizing the use of userfaultfd in their applications until the kernel is updated. Additionally, implementing delays in memory management operations may help reduce the likelihood of hitting the race condition, although this is not a permanent solution.

Conclusion

CVE-2024-46787 presents a significant risk to systems running affected versions of the Linux kernel due to a race condition in memory management. Updating to the latest kernel version is crucial for maintaining system stability and security. Users are encouraged to monitor their systems and apply the necessary patches as soon as they become available.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2024-46787 is a vulnerability in the Linux kernel that involves a race condition in the userfaultfd mechanism, potentially leading to system crashes.

The vulnerability affects multiple versions of the Linux kernel, particularly those prior to version 6.5, with varying degrees of impact.

You can use tools like Vulert, which monitors open-source vulnerabilities in your software. By uploading your manifest file, you can check for vulnerabilities without needing to install any software.

Yes, minimizing the use of userfaultfd and introducing delays in memory management operations can help mitigate the risk temporarily.

If an immediate update is not possible, consider implementing the suggested workarounds and monitor for any unusual system behavior until a patch can be applied.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

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