{"id":"CVE-2025-39836","published":"2025-09-16T13:08:52Z","modified":"2026-08-05T12:05:30Z","title":"efi: stmm: Fix incorrect buffer allocation method","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nefi: stmm: Fix incorrect buffer allocation method\n\nThe communication buffer allocated by setup_mm_hdr() is later on passed\nto tee_shm_register_kernel_buf(). The latter expects those buffers to be\ncontiguous pages, but setup_mm_hdr() just uses kmalloc(). That can cause\nvarious corruptions or BUGs, specifically since commit 9aec2fb0fd5e\n(\"slab: allocate frozen pages\"), though it was broken before as well.\n\nFix this by using alloc_pages_exact() instead of kmalloc().","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00161,"percentile":0.05349,"provenance":"source"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://git.kernel.org/stable/c/77ff27ff0e4529a003c8a1c2492c111968c378d3","tags":[]},{"url":"https://git.kernel.org/stable/c/630c0e6064daf84f17aad1a7d9ca76b562e3fe47","tags":[]},{"url":"https://git.kernel.org/stable/c/c5e81e672699e0c5557b2b755cc8f7a69aa92bff","tags":[]}],"priority":{"score":6.5,"factors":[{"name":"EPSS percentile","points":1.07},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= c44b6be62e8dd4ee0a308c36a70620613e6fc55f, < 77ff27ff0e4529a003c8a1c2492c111968c378d3",">= c44b6be62e8dd4ee0a308c36a70620613e6fc55f, < 630c0e6064daf84f17aad1a7d9ca76b562e3fe47",">= c44b6be62e8dd4ee0a308c36a70620613e6fc55f, < c5e81e672699e0c5557b2b755cc8f7a69aa92bff"]},{"vendor":"Linux","product":"Linux","versions":["6.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-01-14T18:18:58.242475Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-29578","exploited":false,"provenance":"source"}}