Race Condition Vulnerability in Linux Kernel's Huge Page Management

linux Updated 02 Oct 2025

Summary

28/06/2025
N/A
No i
Unrated
Not published

CVE-2025-38085: In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb: fix huge_pmd_unshare() vs GUP-fast race huge_pmd_unshare() drops a reference on a page table that may have previously been shared across pro... 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware and software interaction. It supports various functionalities, including process management, memory management, and device control. This vulnerability affects the handling of huge pages, which are used to improve memory management efficiency. The issue arises from a race condition in the huge_pmd_unshare() function, which can lead to unexpected behavior in concurrent processes.

Vulnerability Detail

In the Linux kernel, the huge_pmd_unshare() function drops a reference on a page table that may have been shared across processes. This can inadvertently convert it into a normal page table used by another process, allowing unrelated Virtual Memory Areas (VMAs) to be installed. If this occurs during a concurrent gup_fast() operation, it could lead to gup_fast() traversing the page tables of a different process. Although this does not immediately result in kernel memory corruption, it creates a confusing and unpredictable situation that could have serious implications.

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

Currently, there are no specific workarounds mentioned for this vulnerability. It is recommended to apply the patch as soon as it becomes available.

Conclusion

CVE-2025-38085 is a significant vulnerability in the Linux kernel that arises from a race condition in memory management. It is crucial for users to update their systems to mitigate potential risks. Monitoring tools like Vulert can help keep track of vulnerabilities in open-source software.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-38085 is a vulnerability in the Linux kernel related to a race condition in the huge_pmd_unshare() function, which can lead to unexpected behavior in memory management.

While it does not immediately cause memory corruption, it can lead to unpredictable behavior in concurrent processes, potentially affecting system stability.

You should update your Linux package to the latest version that includes the fix for this vulnerability.

Yes, you can use Vulert, which monitors open-source vulnerabilities in your software using a manifest file like package-lock.json. You can check for affected applications using the Vulert playground.

You can find detailed information about CVE-2025-38085 in the official Linux kernel documentation and security advisories.

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