CVE-2025-39836
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
16/09/2025
Last modified:
17/09/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().