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

CVE-2025-39910 is fixed in linux on 1 platform, first by DEBIAN-CVE-2025-39910, released October 1, 2025. It is not reported as exploited. Patch Radar priority: Urgent.

- Web page: https://patchblox.com/security/cve/CVE-2025-39910
- Priority: Urgent
- CVSS: 9.8 (Critical)
- EPSS: 0.0015
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Oct 1, 2025
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-39910

## Description

In the Linux kernel, the following vulnerability has been resolved:  mm/vmalloc, mm/kasan: respect gfp mask in kasan_populate_vmalloc()  kasan_populate_vmalloc() and its helpers ignore the caller's gfp_mask and always allocate memory using the hardcoded GFP_KERNEL flag.  This makes them inconsistent with vmalloc(), which was recently extended to support GFP_NOFS and GFP_NOIO allocations.  Page table allocations performed during shadow population also ignore the external gfp_mask.  To preserve the intended semantics of GFP_NOFS and GFP_NOIO, wrap the apply_to_page_range() calls into the appropriate memalloc scope.  xfs calls vmalloc with GFP_NOFS, 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 kasan_populate_vmalloc() and helpers to take gfp_mask;  - Passes gfp_mask down to alloc_pages_bulk() and __get_free_page();  - Enforces GFP_NOFS/NOIO semantics with memalloc_*_save()/restore()    around apply_to_page_range();  - Updates vmalloc.c and percpu allocator call sites accordingly.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | linux Debian 13.5 (trixie) | 6.12.115-2 | [DEBIAN-CVE-2025-39910](https://patchblox.com/security/data/fix/linux/debian-cve-2025-39910.md) | Oct 1, 2025 |
| Linux | linux Debian 14 | 6.16.8-1 | [DEBIAN-CVE-2025-39910](https://patchblox.com/security/data/fix/linux/debian-cve-2025-39910.md) | Oct 1, 2025 |

---

Data as of 2026-11-09T07:25:28Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
