Memory Allocation Flaw in Linux Kernel Affects XFS Functionality
CVE-2025-39910

Currently unrated

Key Information:

Vendor

Linux

Status
Vendor
CVE Published:
1 October 2025

What is CVE-2025-39910?

A critical memory allocation vulnerability in the Linux kernel exists where the functions kasan_populate_vmalloc() and its helpers fail to respect the caller's gfp_mask. Instead, they always allocate memory using the hardcoded GFP_KERNEL flag. This inconsistency with vmalloc, which has been enhanced to handle GFP_NOFS and GFP_NOIO allocations, could lead to significant issues. Notably, page table allocations made during shadow population also overlook the external gfp_mask. This oversight risks deadlock situations, particularly when the XFS filesystem calls vmalloc with GFP_NOFS. The recent update addresses this vulnerability by extending kasan_populate_vmalloc() to accept an appropriate gfp_mask and implementing necessary changes to enforce the intended semantics of memory allocation.

Affected Version(s)

Linux 451769ebb7e792c3404db53b3c2a422990de654e < 33b95d90427cb4babf32059e323a6d0c027610fe

Linux 451769ebb7e792c3404db53b3c2a422990de654e < 79357cd06d41d0f5a11b17d7c86176e395d10ef2

Linux 5.17

References

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.
CVE-2025-39910 : Memory Allocation Flaw in Linux Kernel Affects XFS Functionality