CVE-2026-23328: accel/amdxdna: Fix NULL pointer dereference of mgmt_chann
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
accel/amdxdna: Fix NULL pointer dereference of mgmt_chann
mgmt_chann may be set to NULL if the firmware returns an unexpected error in aie2_send_mgmt_msg_wait(). This can later lead to a NULL pointer dereference in aie2_hw_stop().
Fix this by introducing a dedicated helper to destroy mgmt_chann and by adding proper NULL checks before accessing it.
The Linux kernel CVE team has assigned CVE-2026-23328 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.14 with commit b87f920b934426a24d54613f12ed67c03ae05024 and fixed in 6.19.7 with commit 032ca7a9059c4ba6c329e0f1b442dab54dd9c3e5 Issue introduced in 6.14 with commit b87f920b934426a24d54613f12ed67c03ae05024 and fixed in 7.0-rc3 with commit 6270ee26e1edd862ea17e3eba148ca8fb2c99dc9
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-23328
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
drivers/accel/amdxdna/aie2_pci.c
drivers/accel/amdxdna/aie2_pci.h
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/032ca7a9059c4ba6c329e0f1b442dab54dd9c3e5 https://git.kernel.org/stable/c/6270ee26e1edd862ea17e3eba148ca8fb2c99dc9