Skip to main content
← All vulnerabilities
CVE-2025-40336

drm/gpusvm: fix hmm_pfn_to_map_order() usage

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.17.8
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

In the Linux kernel, the following vulnerability has been resolved: drm/gpusvm: fix hmm_pfn_to_map_order() usage Handle the case where the hmm range partially covers a huge page (like 2M), otherwise we can potentially end up doing something nasty like mapping memory which is outside the range, and maybe not even mapped by the mm. Fix is based on the xe userptr code, which in a future patch will directly use gpusvm, so needs alignment here. v2: • Add kernel-doc (Matt B) • s/fls/ilog2/ (Thomas)

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • Linux Linux

    From 99624bdff8670795b678eafa6509aaad3a5c0175 · fixed in 08e9fd78ba1b9e95141181c69cc51795c9888157; From 99624bdff8670795b678eafa6509aaad3a5c0175 · fixed in c50729c68aaf93611c855752b00e49ce1fdd1558

  • Linux Linux

    6.15

  • KernelLinux

    From 6.15.0 · fixed in 6.17.8

References 2

git.kernel.org