CVE-2026-97506

crypto: ixp4xx - fix buffer chain unwind on allocation failure

State
Published
Severity
Not scored
Published
Sep 24, 2026
Updated
Oct 3, 2026
Reserved
Sep 24, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0d44dc59b2b434b29aafeae581d06f81efac7c83 to before d4007867be42d71795b78fa7f8ce7514dda9ca83Affected
  • 0d44dc59b2b434b29aafeae581d06f81efac7c83 to before 4918b0bd7d2baafb45d87dca9e322137c96005c2Affected
  • 0d44dc59b2b434b29aafeae581d06f81efac7c83 to before 8c37bc8d6a6f77bf9593fb1bcab6c14c7cf02991Affected
  • 0d44dc59b2b434b29aafeae581d06f81efac7c83 to before 04cb00106ca4d0fa9eca24cadc4eda6036e855c8Affected
  • 0d44dc59b2b434b29aafeae581d06f81efac7c83 to before 028a7f4f3d69e551f6bf9f728d547bbf4cfc707dAffected
  • 0d44dc59b2b434b29aafeae581d06f81efac7c83 to before 25056329384010a8672552b134f609601dc4f80eAffected
  • 5a80273150a8a1725fa70418d106eb1f2ee8fd2fAffected
  • 82a8becb9c2c52fc5e67057a43aeded1f0731e7bAffected
  • 68845515c8b11791b547a2838e22c27dfa3115eeAffected
  • 2.6.27.22 to before 2.6.28Affected
  • 2.6.28.10 to before 2.6.29Affected
  • 2.6.29.3 to before 2.6.30Affected
LinuxLinux
  • 2.6.30Affected
  • before 2.6.30Not affected
  • 5.15.222 through 5.15.*Not affected
  • 6.1.189 through 6.1.*Not affected
  • 6.6.158 through 6.6.*Not affected
  • 6.12.111 through 6.12.*Not affected
  • 6.18.53 through 6.18.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.