{"id":"CVE-2025-40336","aliases":["CVE-2025-40336"],"related":[],"kind":"vulnerability","state":"published","title":"drm/gpusvm: fix hmm_pfn_to_map_order() usage","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/gpusvm: fix hmm_pfn_to_map_order() usage\n\nHandle the case where the hmm range partially covers a huge page (like\n2M), otherwise we can potentially end up doing something nasty like\nmapping memory which is outside the range, and maybe not even mapped by\nthe mm. Fix is based on the xe userptr code, which in a future patch\nwill directly use gpusvm, so needs alignment here.\n\nv2:\n  - Add kernel-doc (Matt B)\n  - s/fls/ilog2/ (Thomas)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/gpusvm: fix hmm_pfn_to_map_order() usage\n\nHandle the case where the hmm range partially covers a huge page (like\n2M), otherwise we can potentially end up doing something nasty like\nmapping memory which is outside the range, and maybe not even mapped by\nthe mm. Fix is based on the xe userptr code, which in a future patch\nwill directly use gpusvm, so needs alignment here.\n\nv2:\n  - Add kernel-doc (Matt B)\n  - s/fls/ilog2/ (Thomas)","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ndrm/gpusvm: corregir el uso de hmm_pfn_to_map_order()\n\nManejar el caso en que el rango hmm cubre parcialmente una página enorme (como 2M), de lo contrario podemos potencialmente terminar haciendo algo desagradable como mapear memoria que está fuera del rango, y quizás ni siquiera mapeada por el mm. La corrección se basa en el código xe userptr, que en un parche futuro usará directamente gpusvm, por lo que necesita alineación aquí.\n\nv2:\n  - Añadir kernel-doc (Matt B)\n  - s/fls/ilog2/ (Thomas)","source":"nvd"}],"published":"2025-12-09T04:09:52.845Z","modified":"2026-10-15T22:19:08.797Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"99624bdff8670795b678eafa6509aaad3a5c0175","fixed":"08e9fd78ba1b9e95141181c69cc51795c9888157","status":"affected"},{"type":"git","introduced":"99624bdff8670795b678eafa6509aaad3a5c0175","fixed":"c50729c68aaf93611c855752b00e49ce1fdd1558","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.15","status":"unaffected"},{"type":"semver","introduced":"6.17.8","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/08e9fd78ba1b9e95141181c69cc51795c9888157","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c50729c68aaf93611c855752b00e49ce1fdd1558","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:59:29.236Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40336","url":"https://www.cve.org/CVERecord?id=CVE-2025-40336","licence":"CVE Terms of Use","modified":"2026-10-15T22:02:46.189Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40336","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40336","licence":"Public domain","modified":"2026-10-15T22:19:08.797Z"}],"updatedAt":"2026-11-25T22:59:08.474Z","epss":{"score":0.00182,"percentile":0.08193,"date":"2026-12-01T12:00:22.000Z"}}