drm/xe: Fix memory leak in exec_queue_set_hang_replay_state()
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/xe: Fix memory leak in exec_queue_set_hang_replay_state()
The q->replay_state is blindly overwritten, which can potentially leak memory that was previously allocated by vmemdup_user(). Return an error if q->replay_state is not empty.
Discovered using AI-assisted static analysis confirmed by Intel Product Security.
(cherry picked from commit f6b6cc1118bdbc4265fa8b3bdf8565b26f13e56e)
From the CVE record · Linux
The Linux kernel’s drm/xe driver can leak memory when exec_queue_set_hang_replay_state() overwrites an existing replay state. The input does not specify how an attacker could trigger this, whether authentication or user interaction is needed, or the impact beyond the potential memory leak.
Engineers running Linux kernels with the drm/xe driver should check whether their kernel includes the fix; affected versions are not specified.