---
id: CVE-2026-31390
title: |-
  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 r…
summary: |-
  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 r…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-401
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 6.18, < 6.18.20'
  - 'linux_kernel >= 6.19, < 6.19.10'
  - linux_kernel = 7.0
patched:
  - linux_kernel 6.19.10
published: '2026-04-03'
updated: '2026-07-24'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-31390'
references:
  - url: 'https://git.kernel.org/stable/c/0cfe9c4838f1147713f6b5c02094cd4dc0c598fa'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/1c87b48a0ff040723f84a67b32892af7e6a3634f'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/c3aa7b837920c844d5ae0dd3dbaeb465a461de40'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
epss: 0.00112
epssPercentile: 0.01584
ingestedAt: '2026-07-25T22:05:04.048Z'
---

## Overview

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)

## Affected

- `linux_kernel >= 6.18, < 6.18.20`
- `linux_kernel >= 6.19, < 6.19.10`
- `linux_kernel = 7.0`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.19.10`
