CVE Database›CVE-2025-40340

CVE-2025-40340

kernel: drm/xe: Fix oops in xe_gem_fault when running core_hotunplug test

Loading…

Severity

Moderate

Red Hat Product Security

5.8

CVSS 3.1

Review impact separately from score.

Published · December 9, 2025

Updated · June 30, 2026

Description

A NULL pointer dereference flaw was found in the Linux kernel's Intel Xe GPU driver. In xe_gem_fault(), after a device hotplug unbind-rebind cycle, a race condition can occur where a process has memory mapped but the TTM buffer object's resource pointer becomes NULL. When the fault handler attempts to check the memory type via mem_type_is_vram(tbo->resource->mem_type), it dereferences the NULL pointer, causing a kernel panic. A local user could potentially trigger this through GPU hotplug operations.

Statement

This vulnerability affects systems with Intel discrete GPUs using the Xe driver. The issue manifests during device hotplug operations and requires specific timing conditions. Exploitation leads to a kernel crash and denial of service.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

To mitigate this issue, prevent the xe module from being loaded if Intel discrete GPU functionality is not required. See https://access.redhat.com/solutions/41278 for instructions on how to blacklist a kernel module.

CVSS / CWE

CVSS 3.1 · 5.8
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H

CWE not specified