drm/xe/oa: Limit num_syncs to prevent oversized allocations
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
06.12.646.18.36.19In the Linux kernel, the following vulnerability has been resolved:
drm/xe/oa: Limit num_syncs to prevent oversized allocations
The OA open parameters did not validate num_syncs, allowing userspace to pass arbitrarily large values, potentially leading to excessive allocations.
Add check to ensure that num_syncs does not exceed DRM_XE_MAX_SYNCS, returning -EINVAL when the limit is violated.
v2: use XE_IOCTL_DBG() and drop duplicated check. (Ashutosh)
(cherry picked from commit e057b2d2b8d815df3858a87dffafa2af37e5945b)
From the CVE record · Linux
The Linux kernel’s drm/xe/oa open parameters did not validate num_syncs. Local userspace could pass an arbitrarily large value, potentially causing excessive allocations. The input does not specify whether authentication is needed.
Engineers running the Linux kernel should check whether their kernel includes the drm/xe/oa fix; affected versions are not specified.