Linux
accel/amdxdna: Use caller client for debug BO sync
In the Linux kernel, the following vulnerability has been resolved: accel/amdxdna: Use caller client for debug BO sync amdxdna_drm_sync_bo_ioctl() looks up args->handle in the ioctl caller's drm_file. For SYNC_DIRECT_FROM_DEVICE, it then calls amdxdna_hwctx_sync_debug_bo(), but passes abo->client. amdxdna_hwctx_sync_debug_bo() uses the passed client both as the handle namespace for debug_bo_hdl and as the owner of the hardware context xarray. Those must match the file that supplied args->handle. The BO's stored client pointer is object state, not the ioctl context. Pass filp->driver_priv instead, matching the original handle lookup.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 7ea0468380216c10b73633b976d33efa8c12d375, < 216e43d93dd49ec253052741aa476e51a8c54cd8
- >= 7ea0468380216c10b73633b976d33efa8c12d375, < 7caf2a2351d4053075670ff3e26a6815da0a9e1e
Fixed in 216e43d93dd49ec253052741aa476e51a8c54cd8, 7caf2a2351d4053075670ff3e26a6815da0a9e1e
- 6.19
Fixed in 0, 7.1.5, 7.2
Mitigation
Upgrade Linux to 216e43d93dd49ec253052741aa476e51a8c54cd8 or 7caf2a2351d4053075670ff3e26a6815da0a9e1e or later.
Upgrade Linux to 0 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.