accel/amdxdna: Fix out-of-bounds memset in command slot handling
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
| No fix yet |
Original description
In the Linux kernel, the following vulnerability has been resolved:
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
accel/amdxdna: Fix out-of-bounds memset in command slot handling
The remaining space in a command slot may be smaller than the size of the command header. Clearing the command header with memset() before verifying the available slot space can result in an out-of-bounds write and memory corruption.
Fix this by moving the memset() call after the size validation.
From the CVE record · Linux
The Linux kernel’s accel/amdxdna command slot handling can write out of bounds when the remaining slot space is smaller than a command header. This can cause memory corruption. The input does not specify how an attacker could trigger it or whether access or user interaction is required.
Engineers running Linux kernels with accel/amdxdna should check their builds; affected versions are not specified.