# CVE-2025-68802: drm/xe: Limit num\_syncs to prevent oversized allocations

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 10, 2026-11-26)
- **Published:** 2026-01-13T15:29:11.079Z
- **Modified:** 2026-06-17T09:59:36.843Z

## Who should check

- Anyone running Linux \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< e281d1fd6903a081ef023c341145ae92258e38d2; \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< 1d200017f55f829b9e376093bd31dfbec92081de; \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< 8e461304009135270e9ccf2d7e2dfe29daec9b60
- Anyone running Linux 6.8

## Description

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

drm/xe: Limit num\_syncs to prevent oversized allocations

The exec and vm\_bind ioctl allow userspace to specify an arbitrary
num\_syncs value. Without bounds checking, a very large num\_syncs
can force an excessively large allocation, leading to kernel warnings
from the page allocator as below.

Introduce DRM\_XE\_MAX\_SYNCS (set to 1024) and reject any request
exceeding this limit.

"
------------\[ cut here \]------------
WARNING: CPU: 0 PID: 1217 at mm/page\_alloc.c:5124 \_\_alloc\_frozen\_pages\_noprof+0x2f8/0x2180 mm/page\_alloc.c:5124
...
Call Trace:
 \<TASK\>
 alloc\_pages\_mpol+0xe4/0x330 mm/mempolicy.c:2416
 \_\_\_kmalloc\_large\_node+0xd8/0x110 mm/slub.c:4317
 \_\_kmalloc\_large\_node\_noprof+0x18/0xe0 mm/slub.c:4348
 \_\_do\_kmalloc\_node mm/slub.c:4364 \[inline\]
 \_\_kmalloc\_noprof+0x3d4/0x4b0 mm/slub.c:4388
 kmalloc\_noprof include/linux/slab.h:909 \[inline\]
 kmalloc\_array\_noprof include/linux/slab.h:948 \[inline\]
 xe\_exec\_ioctl+0xa47/0x1e70 drivers/gpu/drm/xe/xe\_exec.c:158
 drm\_ioctl\_kernel+0x1f1/0x3e0 drivers/gpu/drm/drm\_ioctl.c:797
 drm\_ioctl+0x5e7/0xc50 drivers/gpu/drm/drm\_ioctl.c:894
 xe\_drm\_ioctl+0x10b/0x170 drivers/gpu/drm/xe/xe\_device.c:224
 vfs\_ioctl fs/ioctl.c:51 \[inline\]
 \_\_do\_sys\_ioctl fs/ioctl.c:598 \[inline\]
 \_\_se\_sys\_ioctl fs/ioctl.c:584 \[inline\]
 \_\_x64\_sys\_ioctl+0x18b/0x210 fs/ioctl.c:584
 do\_syscall\_x64 arch/x86/entry/syscall\_64.c:63 \[inline\]
 do\_syscall\_64+0xbb/0x380 arch/x86/entry/syscall\_64.c:94
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
...
"

v2: Add "Reported-by" and Cc stable kernels.
v3: Change XE\_MAX\_SYNCS from 64 to 1024. (Matt & Ashutosh)
v4: s/XE\_MAX\_SYNCS/DRM\_XE\_MAX\_SYNCS/ (Matt)
v5: Do the check at the top of the exec func. (Matt)

(cherry picked from commit b07bac9bd708ec468cd1b8a5fe70ae2ac9b0a11c)

## Affected and fixed versions

- Linux: \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< e281d1fd6903a081ef023c341145ae92258e38d2; \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< 1d200017f55f829b9e376093bd31dfbec92081de; \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< 8e461304009135270e9ccf2d7e2dfe29daec9b60 (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- Upgrade Linux to 8e461304009135270e9ccf2d7e2dfe29daec9b60 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-68802. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-68802.md
Affected: Linux >= dd08ebf6c3525a7ea2186e636df064ea47281987, < e281d1fd6903a081ef023c341145ae92258e38d2; >= dd08ebf6c3525a7ea2186e636df064ea47281987, < 1d200017f55f829b9e376093bd31dfbec92081de; >= dd08ebf6c3525a7ea2186e636df064ea47281987, < 8e461304009135270e9ccf2d7e2dfe29daec9b60; Linux 6.8
Fixed in: Linux 1d200017f55f829b9e376093bd31dfbec92081de, Linux 8e461304009135270e9ccf2d7e2dfe29daec9b60

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-68802 being exploited?

There is no confirmed exploitation: CVE-2025-68802 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-68802?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-68802?

Linux \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< e281d1fd6903a081ef023c341145ae92258e38d2; \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< 1d200017f55f829b9e376093bd31dfbec92081de; \>= dd08ebf6c3525a7ea2186e636df064ea47281987, \< 8e461304009135270e9ccf2d7e2dfe29daec9b60; Linux 6.8.

### Is there a fix for CVE-2025-68802?

Yes. Fixed in Linux 1d200017f55f829b9e376093bd31dfbec92081de, Linux 8e461304009135270e9ccf2d7e2dfe29daec9b60. Upgrade Linux to 8e461304009135270e9ccf2d7e2dfe29daec9b60 or later.

### How do I check if I'm affected by CVE-2025-68802?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/e281d1fd6903a081ef023c341145ae92258e38d2>
- other: <https://git.kernel.org/stable/c/1d200017f55f829b9e376093bd31dfbec92081de>
- other: <https://git.kernel.org/stable/c/8e461304009135270e9ccf2d7e2dfe29daec9b60>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-68802>

HTML: <https://flawdb.com/CVE-2025-68802> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-68802>
