CVE-2025-40336
Awaiting Analysis Awaiting Analysis - Queue
BaseFortify

Publication date: 2025-12-09

Last updated on: 2025-12-09

Assigner: kernel.org

Description
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)
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-09
Last Modified
2025-12-09
Generated
2026-05-07
AI Q&A
2025-12-09
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Currently, no data is known.
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability in the Linux kernel's drm/gpusvm component involves improper handling in the function hmm_pfn_to_map_order(). Specifically, when the hmm range partially covers a huge page (such as a 2MB page), the code could incorrectly map memory outside the intended range, potentially mapping memory not even mapped by the memory manager. This could lead to unintended or unsafe memory mappings. The fix aligns the handling with the xe userptr code to prevent this issue.


How can this vulnerability impact me? :

The vulnerability could cause the system to map memory regions outside the intended range, which might lead to memory corruption, data leakage, or system instability. This could potentially be exploited to access unauthorized memory areas, leading to security risks or crashes.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart