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 34DD7199242 for ; Tue, 16 Jul 2024 11:47:31 +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=1721130451; cv=none; b=CXwJd00igSPrZy1xWQgv4+T2KAjoaJPdoJ5oIvvRcoo2c1Op+R9HIo3n4vcgTxuWz7C+meCVN5FH53UOjPwsCpPZPyTX+UYH8yGVHJ5WHOa7ZNgPwiLh9f9vczkP+kROusJ7xXpPuSp/G4y0sU/tuJBEaPBg8QHpacMlHkgaA0I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721130451; c=relaxed/simple; bh=bgBq3gAxub7cgQH87B1KBePYSFEkkViIowKCbvFq/bk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QT0uoFUBTxGDlaJ0OXaVsyzBQBjBCnJtbniDr/dPUJ+djsjl2UQpPwm7TT4D52hIqIprLx6f22byLzSz6m+vGwmhEnK39WJB5PpUDFSd1hnl8kmaXfGjlNR3+xMHUBL2+nxUO2f53faMRftpIX16+7ueaKbEhPuwdUWnygAHO7k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ozflp63/; 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="Ozflp63/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B005EC116B1; Tue, 16 Jul 2024 11:47:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721130451; bh=bgBq3gAxub7cgQH87B1KBePYSFEkkViIowKCbvFq/bk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Ozflp63/Ya2C/1bcOlRKBr/rImf8kfFyjO6/woUIpp4Sgw6CAAjm0YPP4IL1AVU9U zQq5XI8JL/ac+Niub9eYHYhQMI9QalQGb7Nybd08vay8BTz2YPhPMTUXDN7j+zKZ/y I6QqOgTDRsGWlGw+RSzBbDdzXndqTNBigjCLryLk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48824: scsi: myrs: Fix crash in error case Date: Tue, 16 Jul 2024 13:46:16 +0200 Message-ID: <2024071651-CVE-2022-48824-2c1e@gregkh> X-Mailer: git-send-email 2.45.2 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=2489; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bgBq3gAxub7cgQH87B1KBePYSFEkkViIowKCbvFq/bk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnTYvPPBf3e65C/+MbSDoV3jiaiS7L/xi+8uuhY2kGBL fE2NTMUO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiDVoM81M43qivX7CjIrI6 VmAq03eWgIqr9gzza5pbr7XWqOeGLnGqbM49rDxpylkBAA== 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: myrs: Fix crash in error case In myrs_detect(), cs->disable_intr is NULL when privdata->hw_init() fails with non-zero. In this case, myrs_cleanup(cs) will call a NULL ptr and crash the kernel. [ 1.105606] myrs 0000:00:03.0: Unknown Initialization Error 5A [ 1.105872] myrs 0000:00:03.0: Failed to initialize Controller [ 1.106082] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 1.110774] Call Trace: [ 1.110950] myrs_cleanup+0xe4/0x150 [myrs] [ 1.111135] myrs_probe.cold+0x91/0x56a [myrs] [ 1.111302] ? DAC960_GEM_intr_handler+0x1f0/0x1f0 [myrs] [ 1.111500] local_pci_probe+0x48/0x90 The Linux kernel CVE team has assigned CVE-2022-48824 to this issue. Affected and fixed versions =========================== Fixed in 5.4.180 with commit 5c5ceea00c8c Fixed in 5.10.101 with commit 0e42c4a3d732 Fixed in 5.15.24 with commit 6207f35c213f Fixed in 5.16.10 with commit 1d6cd26605b4 Fixed in 5.17 with commit 4db09593af0b 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-2022-48824 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/myrs.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/5c5ceea00c8c9df150708e66cb9f2891192c1162 https://git.kernel.org/stable/c/0e42c4a3d732517edc3766dd45a14e60d29dd929 https://git.kernel.org/stable/c/6207f35c213f6cb2fc3f13b5e77f08c710e1de19 https://git.kernel.org/stable/c/1d6cd26605b4d662063a83c15c776b5299a1cb23 https://git.kernel.org/stable/c/4db09593af0b0b4d7d4805ebb3273df51d7cc30d