CVE-2025-39910: mm/vmalloc, mm/kasan: respect gfp mask in kasan_populate_vmalloc()

Published Oct 1, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

mm/vmalloc, mm/kasan: respect gfp mask in kasanpopulatevmalloc()

kasanpopulatevmalloc() and its helpers ignore the caller's gfpmask and always allocate memory using the hardcoded GFPKERNEL flag. This makes them inconsistent with vmalloc(), which was recently extended to support GFPNOFS and GFPNOIO allocations.

Page table allocations performed during shadow population also ignore the external gfpmask. To preserve the intended semantics of GFPNOFS and GFPNOIO, wrap the applytopagerange() calls into the appropriate memalloc scope.

xfs calls vmalloc with GFPNOFS, so this bug could lead to deadlock.

There was a report here https://lkml.kernel.org/r/686ea951.050a0220.385921.0016.GAE@google.com

This patch: - Extends kasanpopulatevmalloc() and helpers to take gfpmask; - Passes gfpmask down to allocpagesbulk() and getfreepage(); - Enforces GFPNOFS/NOIO semantics with memallocsave()/restore() around applytopagerange(); - Updates vmalloc.c and percpu allocator call sites accordingly.

Affected Software

7 affected components
Linux Kernel
Linux Linux kernel>=5.17<6.16.8
Linux Linux kernel=6.17-rc1
Linux Linux kernel=6.17-rc2
Linux Linux kernel=6.17-rc3
Linux Linux kernel=6.17-rc4
Linux Linux kernel=6.17-rc5

Event History

Oct 1, 2025
CVE Published
via MITRE·07:44 AM
Data Sourced
via MITRE·07:44 AM
Description
Data Sourced
via NVD·08:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Oct 2, 2025
Data Sourced
via Microsoft·01:06 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2025-39910?

CVE-2025-39910 is considered a medium severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-39910?

To fix CVE-2025-39910, update your Linux kernel to the most recent version provided by your distribution.

3

What systems are affected by CVE-2025-39910?

CVE-2025-39910 affects all versions of the Linux kernel that do not incorporate the fix.

4

What is kasan_populate_vmalloc() in CVE-2025-39910?

kasan_populate_vmalloc() is a function in the Linux kernel that incorrectly ignores the caller's gfp_mask during memory allocation.

5

Are there any workarounds for CVE-2025-39910?

There are no known workarounds for CVE-2025-39910; updating the kernel is strongly recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203