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 37E0433D5 for ; Sat, 17 Aug 2024 09:22:59 +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=1723886579; cv=none; b=XkUbWB6Pg75BdVz5bF33Dga9shxU63ZtYmUa1VRnfZvZsgUcl2nGBXNkQKZAu0S0uQWHrxwefcaUAEfPoucRN6RmhKBaeqf70YsBaIBUefuTi6LMLkrbJCcsDiQOsnJBgfrQ4C8HIrVKufS3d125/D303ci4Ut8Ivjc6eA/Vlb0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723886579; c=relaxed/simple; bh=QrmYWx4ZOLEs9nvpz/TIHAqvQoSsvxbpO/tChSBlpMA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=I1A7FmGn6nFjI4gy06DEZFBFARGWclW9al/Fv1VHjg/N5aJwghInVbizvZY+alAk/3w3ondammTfOaEnQE7XVziCNENYCXl0lPVm0Z/NcR9+mGvbDy0qN+vavGPRH2PGfflvLzNVlkfvnRp9EoqeM4D3Dn4IPm1d9+4syiPhv6o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Q4woeoxA; 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="Q4woeoxA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B51CFC116B1; Sat, 17 Aug 2024 09:22:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723886579; bh=QrmYWx4ZOLEs9nvpz/TIHAqvQoSsvxbpO/tChSBlpMA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Q4woeoxAMB9LNg2vCg6bVtTdh7ViIp+tWi9aFTWPGv3rjaunRB86sGqTFxCTzyyPY u235XJ8Z/oXa9yz1LjMwrr0wVOIn8H7ZOsaBGuREDWzmGCMh4YEcAj3gY3XjSDOvY4 lUdtd61I/GMY4lDQGUo5pfEu2m5oemQkjxcy8IFI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43821: scsi: lpfc: Fix a possible null pointer dereference Date: Sat, 17 Aug 2024 11:22:25 +0200 Message-ID: <2024081724-CVE-2024-43821-6ffc@gregkh> X-Mailer: git-send-email 2.46.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=2210; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QrmYWx4ZOLEs9nvpz/TIHAqvQoSsvxbpO/tChSBlpMA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHsi8Yrd4nVfom4sdZ/htzuQINxEodmO0W/vql8yNJ3 PHx1E1VHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR33cZ5pm3XK+aVGLbYLL9 zd6ZZ3l0rx1Pf8mwYOdR5W+pu37vuvc0wES5uPz3jkV6wQA= 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: lpfc: Fix a possible null pointer dereference In function lpfc_xcvr_data_show, the memory allocation with kmalloc might fail, thereby making rdp_context a null pointer. In the following context and functions that use this pointer, there are dereferencing operations, leading to null pointer dereference. To fix this issue, a null pointer check should be added. If it is null, use scnprintf to notify the user and return len. The Linux kernel CVE team has assigned CVE-2024-43821 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 479b0917e447 and fixed in 6.6.44 with commit 57600a7dd2b5 Issue introduced in 6.2 with commit 479b0917e447 and fixed in 6.10.3 with commit 45b2a23e00d4 Issue introduced in 6.2 with commit 479b0917e447 and fixed in 6.11-rc1 with commit 5e0bf3e8aec2 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-43821 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/lpfc/lpfc_attr.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/57600a7dd2b52c904f7c8d2cac0fd8c23868e680 https://git.kernel.org/stable/c/45b2a23e00d448a9e6d1f371ca3a4d4b073fe78c https://git.kernel.org/stable/c/5e0bf3e8aec2cbc51123f84b29aaacbd91fc56fa