Skip to contentSkip to conversation

CVE-2025-21957: scsi: qla1280: Fix kernel oops when debug level > 2

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 1, 2025

lore
Share & tools
lore
#0 lore raw

Description
===========

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

scsi: qla1280: Fix kernel oops when debug level > 2

A null dereference or oops exception will eventually occur when qla1280.c driver is compiled with DEBUG_QLA1280 enabled and ql_debug_level > 2. I think its clear from the code that the intention here is sg_dma_len(s) not length of sg_next(s) when printing the debug info.

The Linux kernel CVE team has assigned CVE-2025-21957 to this issue.

Affected and fixed versions
===========================

	Fixed in 6.1.132 with commit 24602e2664c515a4f2950d7b52c3d5997463418c
	Fixed in 6.6.84 with commit ea371d1cdefb0951c7127a33bcd7eb931cf44571
	Fixed in 6.12.20 with commit af71ba921d08c241a817010f96458dc5e5e26762
	Fixed in 6.13.8 with commit 7ac2473e727d67a38266b2b7e55c752402ab588c
	Fixed in 6.14 with commit 5233e3235dec3065ccc632729675575dbe3c6b8a

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-2025-21957

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/scsi/qla1280.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/24602e2664c515a4f2950d7b52c3d5997463418c
	https://git.kernel.org/stable/c/ea371d1cdefb0951c7127a33bcd7eb931cf44571
	https://git.kernel.org/stable/c/af71ba921d08c241a817010f96458dc5e5e26762
	https://git.kernel.org/stable/c/7ac2473e727d67a38266b2b7e55c752402ab588c
	https://git.kernel.org/stable/c/5233e3235dec3065ccc632729675575dbe3c6b8a