{"id":"CVE-2025-39836","aliases":["CVE-2025-39836"],"related":[],"kind":"vulnerability","state":"published","title":"efi: stmm: Fix incorrect buffer allocation method","summary":"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().","summarySource":"cvelist","descriptions":[{"lang":"en","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().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nefi: stmm: Corrección del método incorrecto de asignación de búfer\n\nEl búfer de comunicación asignado por setup_mm_hdr() se pasa posteriormente a tee_shm_register_kernel_buf(). Este último espera que esos búferes sean páginas contiguas, pero setup_mm_hdr() simplemente usa kmalloc(). Esto puede causar varias corrupciones o BUGs, específicamente desde el commit 9aec2fb0fd5e ('slab: allocate frozen pages'), aunque ya estaba roto antes también.\n\nSolucione esto utilizando alloc_pages_exact() en lugar de kmalloc().","source":"nvd"}],"published":"2025-09-16T13:08:52.326Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"c44b6be62e8dd4ee0a308c36a70620613e6fc55f","fixed":"77ff27ff0e4529a003c8a1c2492c111968c378d3","status":"affected"},{"type":"git","introduced":"c44b6be62e8dd4ee0a308c36a70620613e6fc55f","fixed":"630c0e6064daf84f17aad1a7d9ca76b562e3fe47","status":"affected"},{"type":"git","introduced":"c44b6be62e8dd4ee0a308c36a70620613e6fc55f","fixed":"c5e81e672699e0c5557b2b755cc8f7a69aa92bff","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.8","status":"unaffected"},{"type":"semver","introduced":"6.12.45","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.5","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.8","fixed":"6.12.45"},{"status":"affected","introduced":"6.13","fixed":"6.16.5"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/77ff27ff0e4529a003c8a1c2492c111968c378d3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/630c0e6064daf84f17aad1a7d9ca76b562e3fe47","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c5e81e672699e0c5557b2b755cc8f7a69aa92bff","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-01-14T18:18:58.242Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39836","url":"https://www.cve.org/CVERecord?id=CVE-2025-39836","licence":"CVE Terms of Use","modified":"2026-08-05T12:05:30.423Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39836","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39836","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:04.740Z","epss":{"score":0.00161,"percentile":0.05482,"date":"2026-12-01T12:00:22.000Z"}}