CVE-2026-23341: accel/amdxdna: Fix crash when destroying a suspended hardware context
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
accel/amdxdna: Fix crash when destroying a suspended hardware context
If userspace issues an ioctl to destroy a hardware context that has already been automatically suspended, the driver may crash because the mailbox channel pointer is NULL for the suspended context.
Fix this by checking the mailbox channel pointer in aie2_destroy_context() before accessing it.
The Linux kernel CVE team has assigned CVE-2026-23341 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.19.4 with commit 2611c9616cb52d3ed54a6095d72d18e645a6955a and fixed in 6.19.7 with commit a6317704edab95d66a62fc1861d9546284ab678e Issue introduced in 7.0-rc1 with commit 97f27573837ef96b4ba42af463cc800cab615c0e and fixed in 7.0-rc2 with commit 8363c02863332992a1822688da41f881d88d1631
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-23341
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/a6317704edab95d66a62fc1861d9546284ab678e https://git.kernel.org/stable/c/8363c02863332992a1822688da41f881d88d1631