CVE-2025-39910
mm/vmalloc, mm/kasan: respect gfp mask in kasan_populate_vmalloc()
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/[email protected] 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.
INFO
Published Date :
Oct. 1, 2025, 8:15 a.m.
Last Modified :
Oct. 30, 2026, 1:18 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | 134c704f-9b21-4f2e-91b3-4a467353bcc0 |
Solution
- Update the Linux kernel.
- Apply patches for kasan_populate_vmalloc.
- Ensure correct gfp_mask propagation.
- Use memalloc scope for page table allocations.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-39910.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-39910 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-39910
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-39910 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-39910 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 30, 2026
Action Type Old Value New Value Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/39xxx/CVE-2025-39910.json">CVE-2025-39910</a> Added Reference https://git.kernel.org/stable/c/c136f2e4f2edd58a62a3425d4dd373d82834d1f9 -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 21, 2026
Action Type Old Value New Value Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/39xxx/CVE-2025-39910.json">CVE-2025-39910</a> Added Reference https://git.kernel.org/stable/c/33b95d90427cb4babf32059e323a6d0c027610fe Added Reference https://git.kernel.org/stable/c/79357cd06d41d0f5a11b17d7c86176e395d10ef2 Added Reference https://git.kernel.org/stable/c/9598c83a50a5f9d57fd0c12fc08d9425c1ce9537 Added Reference https://git.kernel.org/stable/c/aa1b4b7a1b92743297f9da741424df4703a8e11b Removed Reference https://git.kernel.org/stable/c/33b95d90427cb4babf32059e323a6d0c027610fe Removed Reference https://git.kernel.org/stable/c/79357cd06d41d0f5a11b17d7c86176e395d10ef2 Removed Reference Type https://git.kernel.org/stable/c/33b95d90427cb4babf32059e323a6d0c027610fe Types: Patch Removed Reference Type https://git.kernel.org/stable/c/79357cd06d41d0f5a11b17d7c86176e395d10ef2 Types: Patch -
CVE Translated by [email protected]
Oct. 19, 2026
Action Type Old Value New Value Added Translation Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: mm/vmalloc, mm/kasan: respetar la máscara gfp en kasan_populate_vmalloc() kasan_populate_vmalloc() y sus funciones auxiliares ignoran la gfp_mask del llamador y siempre asignan memoria utilizando la bandera GFP_KERNEL codificada. Esto los hace inconsistentes con vmalloc(), que fue extendida recientemente para soportar asignaciones GFP_NOFS y GFP_NOIO. Las asignaciones de tablas de páginas realizadas durante la población de sombra también ignoran la gfp_mask externa. Para preservar la semántica prevista de GFP_NOFS y GFP_NOIO, envuelva las llamadas a apply_to_page_range() dentro del ámbito memalloc apropiado. xfs llama a vmalloc con GFP_NOFS, por lo que este error podría llevar a un interbloqueo. Hubo un informe aquí https://lkml.kernel.org/r/[email protected] Este parche: - Extiende kasan_populate_vmalloc() y sus funciones auxiliares para que acepten gfp_mask; - Pasa gfp_mask a alloc_pages_bulk() y __get_free_page(); - Aplica la semántica de GFP_NOFS/NOIO con memalloc_*_save()/restore() alrededor de apply_to_page_range(); - Actualiza los sitios de llamada del asignador vmalloc.c y percpu en consecuencia. -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2025-39910', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-01-14T17:42:43.252504Z'} -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '451769ebb7e792c3404db53b3c2a422990de654e', 'lessThan': '33b95d90427cb4babf32059e323a6d0c027610fe', 'versionType': 'git'}, {'status': 'affected', 'version': '451769ebb7e792c3404db53b3c2a422990de654e', 'lessThan': '79357cd06d41d0f5a11b17d7c86176e395d10ef2', 'versionType': 'git'}], 'programFiles': ['include/linux/kasan.h', 'mm/kasan/shadow.c', 'mm/vmalloc.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.17'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.17', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.16.8', 'versionType': 'semver', 'lessThanOrEqual': '6.16.*'}, {'status': 'unaffected', 'version': '6.17', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['include/linux/kasan.h', 'mm/kasan/shadow.c', 'mm/vmalloc.c'], 'defaultStatus': 'affected'}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jan. 14, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE CWE-667 -
Initial Analysis by [email protected]
Dec. 12, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE CWE-667 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.17 up to (excluding) 6.16.8 Added Reference Type kernel.org: https://git.kernel.org/stable/c/33b95d90427cb4babf32059e323a6d0c027610fe Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/79357cd06d41d0f5a11b17d7c86176e395d10ef2 Types: Patch -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 01, 2025
Action Type Old Value New Value Added 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/[email protected] 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. Added Reference https://git.kernel.org/stable/c/33b95d90427cb4babf32059e323a6d0c027610fe Added Reference https://git.kernel.org/stable/c/79357cd06d41d0f5a11b17d7c86176e395d10ef2