CVE-2025-39836: Linux kernel · efi: stmm: Fix incorrect buffer allocation method
Source GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 21 Nov 2026, 03:45 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 16 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 20 Nov 2026.
What to do
AI-suggested
A fix is available that replaces the incorrect buffer allocation method (kmalloc()) with alloc_pages_exact() to ensure contiguous page allocation. Users should apply the official Linux kernel patch that addresses this issue. Since this is a kernel vulnerability, updating to a fixed kernel version is the recommended remediation.
Description
CVE-2025-39836 is a high-severity vulnerability in the Linux kernel related to incorrect buffer allocation in the EFI STMM subsystem. The issue arises because setup_mm_hdr() uses kmalloc() to allocate a communication buffer, but the buffer is expected to be contiguous pages by tee_shm_register_kernel_buf(). This mismatch can lead to memory corruption or kernel BUGs. The flaw has been present since before commit 9aec2fb0fd5e and was fixed by changing the allocation method to alloc_pages_exact().
References
- nvd.nist.gov/vuln/detail/CVE-2025-39836 (opens in a new tab)
- git.kernel.org/stable/c/630c0e6064daf84f17aad1a7d9ca76b562e3fe47 (opens in a new tab)
- git.kernel.org/stable/c/77ff27ff0e4529a003c8a1c2492c111968c378d3 (opens in a new tab)
- git.kernel.org/stable/c/c5e81e672699e0c5557b2b755cc8f7a69aa92bff (opens in a new tab)