PT-2024-32200 · Linux+5 · Linux Kernel+5

Jann Horn

+1

·

Published

2024-09-01

·

Updated

2026-05-26

·

CVE-2024-46787

CVSS v3.1

4.7

Medium

VectorAV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to 6.5
Description The vulnerability is related to the userfaultfd feature in the Linux kernel, specifically with the pmd trans huge() code in mfill atomic(). The issue arises from a racy check that can lead to a BUG ON() or potentially worse consequences, such as accessing transhuge page contents as a page table, on older kernels (before 6.5). Additionally, pmd trans huge() is not sufficient for detecting PMDs that don't point to page tables, which can cause further issues. The problem can be triggered by winning a single, fairly wide race, and it affects kernels with versions prior to 6.5.
Recommendations To resolve the issue, update the Linux kernel to version 6.5 or later. For kernels affected by bugs 1+2, the first fix can be backported. As a temporary workaround, consider disabling the mfill atomic() function until a patch is available. Restrict access to the vulnerable pmd trans huge() function to minimize the risk of exploitation. Avoid using the UFFDIO ZEROPAGE ioctl on affected kernels until the issue is resolved.

Exploit

Fix

Race Condition

Weakness Enumeration

Related Identifiers

ALSA-2025_12746
ALSA-2025_12752
ALSA-2025_12753
ALSA-2025_16880
AZL-53265
BDU:2025-15047
CVE-2024-46787
ECHO-D12B-F225-42AD
INFSA-2025_6966
MGASA-2024-0316
MGASA-2024-0318
OESA-2024-2182
OESA-2024-2183
OESA-2024-2185
OESA-2024-2219
OPENSUSE-SU-2024_3551-1
OPENSUSE-SU-2024_3561-1
OPENSUSE-SU-2024_3564-1
OPENSUSE-SU-2024_3587-1
OPENSUSE-SU-2024_3592-1
RHSA-2025:6966
RHSA-2025_6966
SUSE-SU-2024:3551-1
SUSE-SU-2024:3553-1
SUSE-SU-2024:3559-1
SUSE-SU-2024:3561-1
SUSE-SU-2024:3564-1
SUSE-SU-2024:3566-1
SUSE-SU-2024:3569-1
SUSE-SU-2024:3587-1
SUSE-SU-2024:3591-1
SUSE-SU-2024:3592-1
SUSE-SU-2025:20073-1
SUSE-SU-2025:20077-1
USN-7154-1
USN-7154-2
USN-7155-1
USN-7156-1
USN-7196-1
USN-7607-1
USN-7607-2
USN-7607-3
USN-7608-1
USN-7608-2
USN-7608-3
USN-7608-4
USN-7608-5
USN-7608-6
USN-7608-7
USN-7627-1
USN-7627-2
USN-7655-1
USN-7671-1
USN-7671-2
USN-7671-3
USN-7686-1
USN-7712-1
USN-7712-2

Affected Products

Debian
Linuxmint
Linux Kernel
Red Hat
Suse
Ubuntu