Shellfeed logo Shellfeed

CVE-2026-89858 · UNKNOWN

Summary: scsi: qla2xxx: Bound image count in qla2x00_update_fru_versions()

Details

In the Linux kernel, the following vulnerability has been resolved:

scsi: qla2xxx: Bound image count in qla2x00_update_fru_versions()

qla2x00_update_fru_versions() copies the user-supplied BSG request into
a fixed 256-byte stack buffer (bsg[DMA_POOL_SIZE]) and then iterates
list->count times over the qla_image_version array embedded in that
buffer, advancing the image pointer each iteration. count is taken
directly from user input with no upper bound, while only (DMA_POOL_SIZE
- sizeof(list->count)) / sizeof(struct qla_image_version) = 6 entries
actually fit. A larger count walks the image pointer off the end of the
stack buffer, reading adjacent kernel stack memory and sending it to the
device via qla2x00_write_sfp().

Reject requests whose declared count does not fit in the buffer.

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [697a4bc69159c3396035b0506ffa55c4b2d0b1f4 – af733bbfcf667af1871a2735fba2835b0da71efb]
  • Linux Kernel [3.2.0 – 5.10.270] [5.11.0 – 5.15.221] [5.16.0 – 6.1.188] [6.2.0 – 6.6.157] [6.7.0 – 6.12.110] [6.13.0 – 6.18.51] [6.19.0 – 7.2.5]

References