CVE-2025-40340 Details
Description
In the Linux kernel, the following vulnerability has been resolved: drm/xe: Fix oops in xe_gem_fault when running core_hotunplug test. I saw an oops in xe_gem_fault when running the xe-fast-feedback testlist against the realtime kernel without debug options enabled. The panic happens after core_hotunplug unbind-rebind finishes. Presumably what happens is that a process mmaps, unlocks because of the FAULT_FLAG_RETRY_NOWAIT logic, has no process memory left, causing ttm_bo_vm_dummy_page() to return VM_FAULT_NOPAGE, since there was nothing left to populate, and then oopses in "mem_type_is_vram(tbo->resource->mem_type)" because tbo->resource is NULL. It's convoluted, but fits the data and explains the oops after the test exits.
A vulnerability in the Linux kernel's DRM/XE component has been addressed, which caused a kernel oops in the xe_gem_fault function. This issue emerged while running the xe-fast-feedback test list on the real-time kernel, without debug options. The problem occurred after the core_hotunplug unbind-rebind process, when a mapped process, having no memory left, triggered a fault that returned VM_FAULT_NOPAGE. This led to a null resource reference, causing the oops. The vulnerability is linked to memory management flaws in the handling of virtual memory pages, particularly with graphics buffer objects.
Users can apply the latest patches from the Linux kernel stable tree to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 9, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1cda3c755bb7770be07d75949bb0f45fb88651f6 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/29a3064f9c5a908aaf0b39cd6ed30374db11840d | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/99428bd6123d5676209dfb1d7a8f176cc830b665 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 14, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 9, 2025 | New CVE Received | kernel.org |
Volerion