CVE-2026-97506: crypto: ixp4xx - fix buffer chain unwind on allocation failure
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
crypto: ixp4xx - fix buffer chain unwind on allocation failure
chainup_buffers() builds a linked list of buffer descriptors for a scatterlist. If dma_pool_alloc() fails while constructing the list, the current code sets buf to NULL and later dereferences it unconditionally at the end of the function:
buf->next = NULL; buf->phys_next = 0;
This can lead to a null-pointer dereference on allocation failure.
If the failure happens after part of the descriptor chain has already been allocated and DMA-mapped, the partially constructed chain also needs to be released.
Fix this by terminating the partially constructed chain on allocation failure and letting the callers unwind it via their existing cleanup paths. Also fix ablk_perform() to preserve the hook pointers before checking for failure, so partially built chains can be freed correctly.
The Linux kernel CVE team has assigned CVE-2026-97506 to this issue.
Affected and fixed versions
===========================
Fixed in 6.12.111 with commit 04cb00106ca4d0fa9eca24cadc4eda6036e855c8 Fixed in 6.18.53 with commit 028a7f4f3d69e551f6bf9f728d547bbf4cfc707d Fixed in 7.2 with commit 25056329384010a8672552b134f609601dc4f80e
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-97506
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/crypto/intel/ixp4xx/ixp4xx_crypto.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/04cb00106ca4d0fa9eca24cadc4eda6036e855c8 https://git.kernel.org/stable/c/028a7f4f3d69e551f6bf9f728d547bbf4cfc707d https://git.kernel.org/stable/c/25056329384010a8672552b134f609601dc4f80e