Skip to main content
VulnerabilityPublished Updated

CVE-2025-39836: Linux kernel · efi: stmm: Fix incorrect buffer allocation method

Source GCVE Database

0
Compare

Not known to be exploited · CVSS 7.8 High.

Data as of 21 Nov 2026, 03:45 UTC

CVSS 3.1 base score
7.8High
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 16 Sep 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

Community reviews

Loading reviews…