Bug 2420416 (CVE-2025-40336) - CVE-2025-40336 kernel: drm/gpusvm: fix hmm_pfn_to_map_order() usage
Summary: CVE-2025-40336 kernel: drm/gpusvm: fix hmm_pfn_to_map_order() usage
Keywords:
Status: NEW
Alias: CVE-2025-40336
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-09 05:01 UTC by OSIDB Bzimport
Modified: 2025-12-09 23:09 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-12-09 05:01:56 UTC
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)


Note You need to log in before you can comment on or make changes to this bug.