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.
https://git.kernel.org/stable/c/cca770d710d5e03bc814af585cd6975eb6d74074
https://git.kernel.org/stable/c/1110a949675ebd56b3f0286e664ea543f745801c