CVE-2025-39836
Severity CVSS v4.0:
Pending analysis
Type:
CWE-787
Out-of-bounds Write
Publication date:
16/09/2025
Last modified:
01/12/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
efi: stmm: Fix incorrect buffer allocation method<br />
<br />
The communication buffer allocated by setup_mm_hdr() is later on passed<br />
to tee_shm_register_kernel_buf(). The latter expects those buffers to be<br />
contiguous pages, but setup_mm_hdr() just uses kmalloc(). That can cause<br />
various corruptions or BUGs, specifically since commit 9aec2fb0fd5e<br />
("slab: allocate frozen pages"), though it was broken before as well.<br />
<br />
Fix this by using alloc_pages_exact() instead of kmalloc().
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.8 (including) | 6.12.45 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.13 (including) | 6.16.5 (excluding) |
| 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:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



