Linux
accel/amdxdna: Fix out-of-bounds memset in command slot handling
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 13ae1a6000f7d8b09478e3128e87d45e89c7282f, < cca770d710d5e03bc814af585cd6975eb6d74074
- >= 3d32eb7a5ecff92d83a5fd34c45c171c17d3d5d0, < 1110a949675ebd56b3f0286e664ea543f745801c
Fixed in cca770d710d5e03bc814af585cd6975eb6d74074, 1110a949675ebd56b3f0286e664ea543f745801c
- >= 6.19.4, < 6.19.7
Fixed in 6.19.7
Mitigation
Upgrade Linux to cca770d710d5e03bc814af585cd6975eb6d74074 or 1110a949675ebd56b3f0286e664ea543f745801c or later.
Upgrade Linux to 6.19.7 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.