Linux Kernel Hugetlb Userfault Use-After-Free Vulnerability

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's handling of userfaults for hugetlb memory. This issue arises because the vma_lock and hugetlb_fault_mutex are released before processing a userfault and then reacquired afterward. The re-acquisition of the vma_lock can lead to a use-after-free condition due to a race condition. The vulnerability is present in the Linux kernel stable tree, specifically in versions 4.14 and later.

Impact

Exploitation of this vulnerability can lead to a use-after-free condition, which may be exploited to execute arbitrary code or cause a denial-of-service condition by crashing the system.

Reproduction

The vulnerability can be reproduced by triggering a userfault in a hugetlb memory region. This can be done by using the userfaultfd mechanism to create a userfault in a virtual memory area (VMA) that is backed by hugetlbfs. The race condition can be observed by manually managing the locks or by using a tool that simulates userfaults while the kernel is processing page faults for hugetlb memory.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for downloading the patched kernel can be found on the official Linux kernel website.

Added: Dec 8, 2025, 2:48 AM
Updated: Dec 8, 2025, 2:48 AM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
3.9
remediation
7.7
relevance
1.4
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.