PT-2024-33718 · Linux+2 · Linux Kernel+2

Steve Sistare

·

Published

2024-09-03

·

Updated

2025-02-28

·

CVE-2024-49873

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions: Linux kernel (affected versions not specified)
Description: The issue is related to the Linux kernel, specifically with the filemap get folios contig function when used with memfd pin folios and huge pages (THP). The problem occurs when the starting offset passed to memfd pin folios is not huge page aligned, leading to a kernel NULL pointer dereference. This is because memfd pin folios does not round the indices to huge page boundaries for THP, resulting in loading from the middle of a huge page range and seeing a sibling entry. The estimated number of potentially affected devices worldwide is not available. There is no information about real-world incidents where this issue was exploited.
Recommendations: To resolve the issue, apply the patch series "memfd-pin huge page fixes" to the Linux kernel. Specifically, the fix involves modifying the filemap get folios contig function to return the next index as the starting point for the next call when a sibling entry is encountered. As a temporary workaround, consider avoiding the use of memfd pin folios with huge pages (THP) until the patch is applied.

Exploit

Fix

NULL Pointer Dereference

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2025-13852
CVE-2024-49873
OPENSUSE-SU-2024:14500-1
OPENSUSE-SU-2025:14705-1
USN-7276-1
USN-7277-1
USN-7310-1

Affected Products

Linuxmint
Linux Kernel
Ubuntu