CVE-2025-38690CWE-617

CVE-2025-38690

Medium · published September 4, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
3.1
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

drm/xe/migrate: prevent infinite recursion

If the buf + offset is not aligned to XE_CAHELINE_BYTES we fallback to

using a bounce buffer. However the bounce buffer here is allocated on

the stack, and the only alignment requirement here is that it's

naturally aligned to u8, and not XE_CACHELINE_BYTES. If the bounce

buffer is also misaligned we then recurse back into the function again,

however the new bounce buffer might also not be aligned, and might never

be until we eventually blow through the stack, as we keep recursing.

Instead of using the stack use kmalloc, which should respect the

power-of-two alignment request here. Fixes a kernel panic when

triggering this path through eudebug.

v2 (Stuart):

- Add build bug check for power-of-two restriction

- s/EINVAL/ENOMEM/

(cherry picked from commit 38b34e928a08ba594c4bbf7118aa3aadacd62fff)

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00140 · 3.1th percentile
Weakness
CWE-617 · Reachable Assertion
Published
2025-09-04T20:15Z
Affected products (2)
ProductVersionsFixed in
linux/linux_kernel≥ 6.16, < 6.16.26.16.2
linux/linux_kernelall versions—
References (2)
EPSS history
Timeline
  • 04 SEP 15:32Z
    drm/xe/migrate: prevent infinite recursion
    cvelistv5