CVE-2025-40336
Awaiting Analysis Awaiting Analysis - Queue

BaseFortify

Vulnerability report for CVE-2025-40336, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

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-07-06
AI Q&A
2025-12-09
EPSS Evaluated
2026-07-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 Quick Actions

Instant insights powered by AI
Executive Summary

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.

Impact Analysis

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.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-40336. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart