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 A82FF186E38 for ; Thu, 30 May 2024 15:07:32 +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=1717081652; cv=none; b=tBJgovHUK6AZFYznRKNLrsvwFDNnpFtzUoNLCb1blB3Md0rA3vdg682bIw2serMWv7EcyaISRVEvWffp9PdBZ8abRZ+66NEhnQ2ZPzOQlIXNKiN36F9rkAVzrA/nAFxemJ/0R4xakTSgw59ad1dqE6FNVd3g9RFEaP1f0r3lmfU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717081652; c=relaxed/simple; bh=EW9myq77dpTFNvZAD3jobvdIUXC5MHwmxl4xqYS4JCY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=p5wkbQSuFI/NUxYSEUiHv6FrNEjbXSxzd8R8geaAeBfIyS2mPGW2WLEUzQX4f4QfFRbYgF7ccWRKc1tD80CpY58b5b2KRy5IJRtRxSzLLL2reF4wQlK7DFeavIYnkl5LkM5vqic+BUv9gRjBiPWchTFo7vjj1NPoy02/WWQCnZQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=l+zqNBxJ; 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="l+zqNBxJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 342D6C2BBFC; Thu, 30 May 2024 15:07:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717081652; bh=EW9myq77dpTFNvZAD3jobvdIUXC5MHwmxl4xqYS4JCY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=l+zqNBxJCQe44gL6/B9iaOpVRJP2KYo953QtwtNWrpzvmEw3+yNA+e3yjLclWKdiH WqgMk1FPE0+8xh8jUWCApyb9++hezqb7KqoFGU3hoYo403BNX94i0aA6uQtngQ4Km7 3CaAyztvIjnNY7Kld858MkUETZJ2S09tuZfPmUmQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36025: scsi: qla2xxx: Fix off by one in qla_edif_app_getstats() Date: Thu, 30 May 2024 17:07:35 +0200 Message-ID: <2024053034-CVE-2024-36025-95e0@gregkh> X-Mailer: git-send-email 2.45.1 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=2350; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EW9myq77dpTFNvZAD3jobvdIUXC5MHwmxl4xqYS4JCY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkR08y8TM8Zf263nSHPvLnQ+emT99GLF33ctKPqwYfZn 3dwLgyI6IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJKN9gWND4SnKGXfZf3iOt dq6LlYLcXz0ySmVYcMF6vc0190RTN8UF0Ru+9+xU+Ni0FgA= 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: qla2xxx: Fix off by one in qla_edif_app_getstats() The app_reply->elem[] array is allocated earlier in this function and it has app_req.num_ports elements. Thus this > comparison needs to be >= to prevent memory corruption. The Linux kernel CVE team has assigned CVE-2024-36025 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 7878f22a2e03 and fixed in 5.15.156 with commit 8c820f7c8e9b Issue introduced in 5.15 with commit 7878f22a2e03 and fixed in 6.1.87 with commit 9fc74e367be4 Issue introduced in 5.15 with commit 7878f22a2e03 and fixed in 6.6.28 with commit 60b87b5ecbe0 Issue introduced in 5.15 with commit 7878f22a2e03 and fixed in 6.8.7 with commit ea8ac95c22c9 Issue introduced in 5.15 with commit 7878f22a2e03 and fixed in 6.9 with commit 4406e4176f47 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-2024-36025 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/qla2xxx/qla_edif.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/8c820f7c8e9b46238d277c575392fe9930207aab https://git.kernel.org/stable/c/9fc74e367be4247a5ac39bb8ec41eaa73fade510 https://git.kernel.org/stable/c/60b87b5ecbe07d70897d35947b0bb3e76ccd1b3a https://git.kernel.org/stable/c/ea8ac95c22c93acecb710209a7fd10b851afe817 https://git.kernel.org/stable/c/4406e4176f47177f5e51b4cc7e6a7a2ff3dbfbbd