{"id":"CVE-2026-23288","state":"PUBLISHED","title":"accel/amdxdna: Fix out-of-bounds memset in command slot handling","description":"In the Linux kernel, the following vulnerability has been resolved:\n\naccel/amdxdna: Fix out-of-bounds memset in command slot handling\n\nThe remaining space in a command slot may be smaller than the size of\nthe command header. Clearing the command header with memset() before\nverifying the available slot space can result in an out-of-bounds write\nand memory corruption.\n\nFix this by moving the memset() call after the size validation.","publishedAt":"2026-03-25T10:26:47.458Z","updatedAt":"2026-08-05T12:21:09.253Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"13ae1a6000f7d8b09478e3128e87d45e89c7282f","status":"affected","lessThan":"cca770d710d5e03bc814af585cd6975eb6d74074","versionType":"git"},{"version":"3d32eb7a5ecff92d83a5fd34c45c171c17d3d5d0","status":"affected","lessThan":"1110a949675ebd56b3f0286e664ea543f745801c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/amdxdna/aie2_message.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6.19.4","status":"affected","lessThan":"6.19.7","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/amdxdna/aie2_message.c"]}],"references":["https://git.kernel.org/stable/c/cca770d710d5e03bc814af585cd6975eb6d74074","https://git.kernel.org/stable/c/1110a949675ebd56b3f0286e664ea543f745801c"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/23xxx/CVE-2026-23288.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-23288","state":"PUBLISHED","datePublished":"2026-03-25T10:26:47.458Z","dateUpdated":"2026-08-05T12:21:09.253Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-01-13T15:37:45.992Z"},"containers":{"cna":{"title":"accel/amdxdna: Fix out-of-bounds memset in command slot handling","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\naccel/amdxdna: Fix out-of-bounds memset in command slot handling\n\nThe remaining space in a command slot may be smaller than the size of\nthe command header. Clearing the command header with memset() before\nverifying the available slot space can result in an out-of-bounds write\nand memory corruption.\n\nFix this by moving the memset() call after the size validation."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"13ae1a6000f7d8b09478e3128e87d45e89c7282f","status":"affected","lessThan":"cca770d710d5e03bc814af585cd6975eb6d74074","versionType":"git"},{"version":"3d32eb7a5ecff92d83a5fd34c45c171c17d3d5d0","status":"affected","lessThan":"1110a949675ebd56b3f0286e664ea543f745801c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/amdxdna/aie2_message.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6.19.4","status":"affected","lessThan":"6.19.7","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/accel/amdxdna/aie2_message.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/cca770d710d5e03bc814af585cd6975eb6d74074"},{"url":"https://git.kernel.org/stable/c/1110a949675ebd56b3f0286e664ea543f745801c"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - Triggered via DRM ioctl (AMDXDNA_EXEC_CMD) on the local /dev/accel device node. This is a PCI accelerator driver, not network-reachable.\nAC:L - The attacker can reliably trigger the OOB write by crafting a command chain that exhausts buffer space before the final slot. No race condition or special conditions required.\nPR:L - Requires opening the accelerator device file (/dev/accel/accel*). The ioctl has no DRM_MASTER requirement (flags=0), so any local user with device access can trigger it. No root or special capabilities needed.\nUI:N - No user interaction required. The attacker directly submits malicious commands through the DRM ioctl interface.\nS:U - The vulnerability stays within the kernel's security authority. No VM escape, IOMMU bypass, or sandbox boundary crossing is involved.\nC:H - The ~52-byte heap zero-fill corrupts adjacent kernel objects. This memory corruption can be leveraged through heap shaping to corrupt length fields or create UAF conditions, potentially enabling arbitrary memory reads.\nI:H - Out-of-bounds write of zeros into kernel heap memory corrupts adjacent objects. This can overwrite function pointers, metadata, or security-critical fields, potentially enabling code execution.\nA:H - The out-of-bounds memset corrupts kernel heap metadata and adjacent objects, reliably causing kernel crashes or oops when the corrupted data is subsequently accessed."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:21:09.253Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19.4","versionEndExcluding":"6.19.7"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}