Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3FCC1714B7 for ; Tue, 1 Apr 2025 15:47:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522462; cv=none; b=UEhTfzHs+brrZAc7XfFVKXCGpoIC7gEWtnPsBHMTMb6o3bDpMn2YUSiBQBFNNB8DaERmRXDnNxfDnrxhzjk6ByURzDxJu3qyq1kAlsn10OI4NkckAH6MQZqnh8HZTIC296G0o+LOk5cEcavt1Lph+6CcEMhk1PzjK+Fz7FjBFb0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522462; c=relaxed/simple; bh=IfanJ7ff3ZUuYbBXxBL6PDtMYp4OE+mAejm/dal9E8M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=firAcBxdSATkpfJGnGLLHqmh5OQbmi9AmblhDRQzXZv7A+vgMqzuP/psLJnX3twv6uVuiX0rH86j8b+F4G9Uxt5GEtsKOzchgIgcXY0h/hC6B/DsHvOaH+FW6IFNoRoww9fEC42CCfORgdndlI0Ir2RyEETQEyhXsuox9870mD4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=14EAeCi3; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="14EAeCi3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D18FEC4CEE4; Tue, 1 Apr 2025 15:47:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743522462; bh=IfanJ7ff3ZUuYbBXxBL6PDtMYp4OE+mAejm/dal9E8M=; h=From:To:Cc:Subject:Date:Reply-to:From; b=14EAeCi3S9XZKPOroCM4xV7H9aULeTRUVvbV22rq8VdeHziJXvd+f7Gvwsyjiq/5Q 3RyiWu5oOKP3VpjAULqNpil+KXR1pJhaZkXUg3Reu166k3Jy2A3WcthcNO5yqvpuG8 WIRELZDZshIX3AZ7RVgSKEbMgWt6VcvufbGtV96A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21957: scsi: qla1280: Fix kernel oops when debug level > 2 Date: Tue, 1 Apr 2025 16:45:42 +0100 Message-ID: <2025040144-CVE-2025-21957-5d2c@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2308; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IfanJ7ff3ZUuYbBXxBL6PDtMYp4OE+mAejm/dal9E8M=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlvuDTaEmrmX5rJ5hF9/6nD+fpbj9ceuPb22NzLb1dtY N2Xfd/odEcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBM5Nc9hgV7DXmEN974+vY5 89almuz//G40JB1mWDDTpOrNBI8Qi/chzJYxMREGXQ6JWwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit 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