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 DFC84144D0B for ; Tue, 21 May 2024 15:38:07 +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=1716305888; cv=none; b=lt8UYgsbp1hp4pnwr0YdvKtAUvSh0GzGZFRzNNAs9gHyrCSr0+7xxAlq2vL9jbKlLLspYmOEqVmU92Y0obg7oIE2RHv4OQ+ZJ9YnU/rj8GtL4zUG4zJ+W2JC/MC5OJ+qpmBld4Bv7KmEhi03I0t/f0LCRYXuyUBeeFZWrfgdW2M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305888; c=relaxed/simple; bh=/MR5ZlpAxDxG35QzwhAbgj1v6uQhRyAh8riO+jmqi+k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kUWSgE5GXVaispdtRwVL4ecyvI4QwJl82MP/vpo72aN9i/LgN9qjbCRkN2LymLKr6skZWtSWAQ+W9ArQrgK+an6weywpi52J/fgFbXuV/a+wYVq508dr8khQ5J4mJaNIsqB595hVneOn5fbtmY9Bn6cpxpHNH8B6UjPaizrX4zs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RVHrsPcL; 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="RVHrsPcL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A43BC2BD11; Tue, 21 May 2024 15:38:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305887; bh=/MR5ZlpAxDxG35QzwhAbgj1v6uQhRyAh8riO+jmqi+k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RVHrsPcLDHTy5zwc/f47TiG0BA+DPymcLlVi16JZq2KDs4ShCo6BMnsjRQ2I0BJWm fSstsvNbupL59Vt4Jl99i4XdGzDWrFOfmRaL023jqIGNbA7kwJz/K68AmBrcDMiTZw /qmi6d86lQRHiIzRLzoXnJitWYvaEUUj+669W5cY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52809: scsi: libfc: Fix potential NULL pointer dereference in fc_lport_ptp_setup() Date: Tue, 21 May 2024 17:31:45 +0200 Message-ID: <2024052102-CVE-2023-52809-f07c@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=2658; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/MR5ZlpAxDxG35QzwhAbgj1v6uQhRyAh8riO+jmqi+k=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++8zmzlesLclXOHO0PedK88yVfDcOKbc8tj3XEr4p6 m6Kg3FERywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk7EuGBWdOfrWfuuXU9XNy Zw+6Jtq7lu3fbsmwoLu8q8S0/7TGIh3H3eY2QiH3K6xaAA== 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: libfc: Fix potential NULL pointer dereference in fc_lport_ptp_setup() fc_lport_ptp_setup() did not check the return value of fc_rport_create() which can return NULL and would cause a NULL pointer dereference. Address this issue by checking return value of fc_rport_create() and log error message on fc_rport_create() failed. The Linux kernel CVE team has assigned CVE-2023-52809 to this issue. Affected and fixed versions =========================== Fixed in 4.14.331 with commit 930f0aaba482 Fixed in 4.19.300 with commit 77072ec41d6a Fixed in 5.4.262 with commit b549acf99982 Fixed in 5.10.202 with commit bb83f79f90e9 Fixed in 5.15.140 with commit 56d78b5495eb Fixed in 6.1.64 with commit 442fd24d7b6b Fixed in 6.5.13 with commit f6fe7261b92b Fixed in 6.6.3 with commit 6b9ecf4e1032 Fixed in 6.7 with commit 4df105f0ce9f 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-2023-52809 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/libfc/fc_lport.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/930f0aaba4820d6362de4e6ed569eaf444f1ea4e https://git.kernel.org/stable/c/77072ec41d6ab3718c3fc639bc149b8037caedfa https://git.kernel.org/stable/c/b549acf999824d4f751ca57965700372f2f3ad00 https://git.kernel.org/stable/c/bb83f79f90e92f46466adcfd4fd264a7ae0f0f01 https://git.kernel.org/stable/c/56d78b5495ebecbb9395101f3be177cd0a52450b https://git.kernel.org/stable/c/442fd24d7b6b29e4a9cd9225afba4142d5f522ba https://git.kernel.org/stable/c/f6fe7261b92b21109678747f36df9fdab1e30c34 https://git.kernel.org/stable/c/6b9ecf4e1032e645873933e5b43cbb84cac19106 https://git.kernel.org/stable/c/4df105f0ce9f6f30cda4e99f577150d23f0c9c5f