# CVE-2026-31390: drm/xe: Fix memory leak in xe_vm_madvise_ioctl

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-02)
- Published: 2026-04-03T15:15:56.035Z
- Modified: 2026-11-05T22:18:28.140Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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)

(As written by CVE List.)

## Affected

- Linux Linux: from 293032eec4baa04374d62dd44de61e355296ad32 before c3aa7b837920c844d5ae0dd3dbaeb465a461de40; from 293032eec4baa04374d62dd44de61e355296ad32 before 1c87b48a0ff040723f84a67b32892af7e6a3634f; from 293032eec4baa04374d62dd44de61e355296ad32 before 0cfe9c4838f1147713f6b5c02094cd4dc0c598fa; 6.18 (not affected: before 6.18; from 6.18.20 up to 6.18.*; from 6.19.10 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.18 before 6.18.20; from 6.19 before 6.19.10; 7.0

## References

- <https://git.kernel.org/stable/c/c3aa7b837920c844d5ae0dd3dbaeb465a461de40> (patch)
- <https://git.kernel.org/stable/c/1c87b48a0ff040723f84a67b32892af7e6a3634f> (patch)
- <https://git.kernel.org/stable/c/0cfe9c4838f1147713f6b5c02094cd4dc0c598fa> (patch)

## Sources

- CVE List: [CVE-2026-31390](https://www.cve.org/CVERecord?id=CVE-2026-31390), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2026-31390](https://nvd.nist.gov/vuln/detail/CVE-2026-31390), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2026-31390 · Whole record: https://cve.day/CVE-2026-31390.json · Rebuilt by cve.day 2026-11-25T22:59:17.899Z
