CVE-2026-31390

drm/xe: Fix memory leak in xe_vm_madvise_ioctl

Published Apr 3, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

drm/xe: Fix memory leak in xe_vm_madvise_ioctl

When check_bo_args_are_sane() validation fails, jump to the new
free_vmas cleanup label to properly free the allocated resources.
This ensures proper cleanup in this error path.

(cherry picked from commit 29bd06faf727a4b76663e4be0f7d770e2d2a7965)

Analysis

AI-generated

Technical impact

The vulnerability was a memory leak in the Linux kernel's DRM (drm/xe) subsystem, specifically in the xe_vm_madvise_ioctl handler. When the check_bo_args_are_sane() validation fails, resources allocated for virtual memory areas (VMAs) were not properly freed, leading to a leak. This is a classic example of resource exhaustion (CWE-401, CWE-459). While it does not provide direct code execution, the accumulation of unreleased memory could degrade system performance or culminate in a denial of service.

Affected Systems

The issue affects Linux kernel builds where the drm/xe module is compiled. The impacted binaries are part of the standard Linux kernel (vendor Linux, product Linux). Specific kernel versions are not enumerated in the CVE entry, so any kernel containing the vulnerable code before the fix is susceptible. Administrative users or processes with access to the DRM subsystem could trigger the flaw.

Risk and Exploitability

The CVSS score is 5.5, indicating moderate severity, and the EPSS score is below 1%, suggesting a low probability of exploitation in the wild. The flaw is not listed in CISA's Known Exploited Vulnerabilities catalog. Based on the description, it is inferred that exploitation requires local access, such that a user or process can invoke xe_vm_madvise_ioctl and cause a validation failure. An attacker with local or elevated privileges could use this path to degrade system resources, potentially leading to a service disruption.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes the fix (commit 29bd06f or later).
  • If an immediate kernel upgrade is not possible, monitor system memory usage and restart affected services or reboot to reclaim leaked memory.
  • If the drm/xe module is not required, disable it to eliminate the risk.

Generated by OpenCVE AI on May 26, 2026 at 15:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-401
CPEs cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
Type Values Removed Values Added
Weaknesses CWE-399
Type Values Removed Values Added
Weaknesses CWE-459
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low

Type Values Removed Values Added
Weaknesses CWE-399
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: drm/xe: Fix memory leak in xe_vm_madvise_ioctl When check_bo_args_are_sane() validation fails, jump to the new free_vmas cleanup label to properly free the allocated resources. This ensures proper cleanup in this error path. (cherry picked from commit 29bd06faf727a4b76663e4be0f7d770e2d2a7965)
Title drm/xe: Fix memory leak in xe_vm_madvise_ioctl
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-459

    Incomplete Cleanup

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 5, 2026, 9:33 PM
Reserved
Mar 9, 2026, 3:48 PM
Status
Analyzed
Published
Apr 3, 2026, 4:16 PM
Modified
Nov 5, 2026, 10:18 PM
Severity
Low
Public date
Apr 3, 2026, 12:00 AM