Skip to contentSkip to conversation

CVE-2026-23288: accel/amdxdna: Fix out-of-bounds memset in command slot handling

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 25

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-23288 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.19.4 with commit 13ae1a6000f7d8b09478e3128e87d45e89c7282f and fixed in 6.19.7 with commit cca770d710d5e03bc814af585cd6975eb6d74074
	Issue introduced in 7.0-rc1 with commit 3d32eb7a5ecff92d83a5fd34c45c171c17d3d5d0 and fixed in 7.0-rc2 with commit 1110a949675ebd56b3f0286e664ea543f745801c

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-23288

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/accel/amdxdna/aie2_message.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/cca770d710d5e03bc814af585cd6975eb6d74074
	https://git.kernel.org/stable/c/1110a949675ebd56b3f0286e664ea543f745801c