CVE-2025-40336: drm/gpusvm: fix hmm_pfn_to_map_order() usage

Published Dec 9, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

drm/gpusvm: fix hmmpfntomaporder() 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)

Affected Software

1 affected component
linux/kernel

Event History

Dec 9, 2025
CVE Published
via MITRE·04:09 AM
Data Sourced
via MITRE·04:09 AM
DescriptionSeverity
Data Sourced
via NVD·04:17 PM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2025-40336?

CVE-2025-40336 is classified as a moderate severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-40336?

To fix CVE-2025-40336, users should update their Linux kernel to the latest patched version.

3

What impact does CVE-2025-40336 have on systems?

CVE-2025-40336 may lead to incorrect memory mapping, potentially exposing sensitive information or causing instability.

4

Which versions of Linux are affected by CVE-2025-40336?

CVE-2025-40336 affects multiple versions of the Linux kernel that implement drm/gpusvm functionality.

5

Is CVE-2025-40336 actively being exploited?

As of now, there are no reports indicating that CVE-2025-40336 is actively being exploited in the wild.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203