CVE-2025-39836
efi: stmm: Fix incorrect buffer allocation method
Reported by linux · Published September 16, 2025
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().
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | c44b6be62e8dd4ee0a308c36a70620613e6fc55f, c44b6be62e8dd4ee0a308c36a70620613e6fc55f, c44b6be62e8dd4ee0a308c36a70620613e6fc55f |
| Linux | Linux | 6.8, 0, 6.12.45 |
| linux | linux_kernel | 6.8, 6.8, 6.8 |
| Linux | Linux | *, 6.8, 0 |
Timeline
- Sep 16, 2025 CVE Published
- Sep 17, 2025 EPSS Score (30 in total, the first dated here)
- Oct 4, 2025 Coalition ESS Score (7 in total, the first dated here)
- Oct 12, 2025 PoC Published (9 in total, the first dated here)
- Dec 5, 2025 CVE Updated
- Dec 15, 2025 Security Advisory (116 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (105 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-39836
vulnetix vdb fixes CVE-2025-39836
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-39836/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart