LiveActive security incident?Get immediate response
CVE Record

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

In the Linux kernel, the following vulnerability has been resolved: efi: stmm: Fix incorrect buffer allocation method The communication buffer allocated by setup_mm_hdr() is later on passed to tee_shm_register_kernel_buf(). The latter expects those buffers to be contiguous pages, but setup_mm_hdr() just uses kmalloc(). That can cause various corruptions or BUGs, specifically since commit 9aec2fb0fd5e ("slab: allocate frozen pages"), though it was broken before as well. Fix this by using alloc_pages_exact() instead of kmalloc().

HighCVSS 7.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

A Linux kernel memory-allocation flaw can trigger memory corruption or kernel failures when the EFI STMM communication path is used. The supplied CVSS rates potential confidentiality, integrity, and availability impacts as high, but exploitation requires local, low-privileged access.

Executive priority

Prioritize remediation on systems that use EFI STMM and permit local user access. Treat this as a high-impact kernel issue, but not as an internet-wide emergency because the supplied evidence indicates local access and no active exploitation.

Technical view

setup_mm_hdr() allocated a communication buffer with kmalloc(), while tee_shm_register_kernel_buf() requires contiguous pages. This mismatch can cause corruption or kernel BUG conditions. The documented correction replaces kmalloc() with alloc_pages_exact().

Likely exposure

Exposure is limited to Linux systems running an affected kernel and exercising the EFI STMM code path. The bundle identifies 6.8, 6.12.45, 6.16.5, and 6.17, but does not provide sufficiently clear version ranges for broader conclusions.

Exploitation context

The CVSS vector indicates local access, low privileges, low complexity, and no user interaction. The bundle reports no KEV listing and provides no evidence of active exploitation or a public exploit.

Researcher notes

The corruption reportedly became especially apparent after commit 9aec2fb0fd5e, although the allocation contract was already broken. The supplied version data is ambiguous and includes an unexplained “0,” so distribution-specific advisories are necessary for reliable package-level exposure decisions.

Mitigation direction

  • Apply a vendor-supported kernel update containing the applicable cited stable fix.
  • Prioritize systems where the EFI STMM communication path is enabled or used.
  • Consult distribution or appliance vendor guidance for precise affected and corrected versions.
  • Restrict local account access until affected systems are updated.

Validation and detection

  • Inventory installed kernel versions across Linux systems.
  • Confirm whether each system uses the EFI STMM code path.
  • Map vendor kernel packages to the cited upstream stable fixes.
  • After updating, verify the running kernel matches the installed corrected package.
  • Review kernel logs for unexplained corruption or BUG events without treating them as proof of exploitation.
Prepared
Confidence
medium
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-787: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2025-39836 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

2CVSS vectors
3Timeline events
1ADP providers
4Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total

CVSS vector scores

2 official scores

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.8CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H1.85.9Linux
7.8CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H1.85.9CISA-ADP

Vulnerability scoring details

Base CVSS 3.1 score

7.8High
CVSS 3.1 vector shape for CVE-2025-39836Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
cvssV3_1other:ssvc
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinuxc44b6be62e8dd4ee0a308c36a70620613e6fc55f, c44b6be62e8dd4ee0a308c36a70620613e6fc55f, c44b6be62e8dd4ee0a308c36a70620613e6fc55funaffected
LinuxLinux6.8, 0, 6.12.45, 6.16.5, 6.17affected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-787 · source CWE mapping

Out-of-bounds Write

Out-of-bounds Write represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.