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 C80612192EF for ; Thu, 10 Jul 2025 07:43:03 +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=1752133383; cv=none; b=pKSfBa5zSUiY6jQAPDSjwMPbPWd7Pakv6ttKh0vsHLG/rSjM9hcLNaRtjnth9ap9B1/fQv6bZBx7PSsqdAyP1RJxVJV+SmQTbtOTcTcOS377fvbJs5Y9MFiSXgMwK4wd26vUfeZ/qpUpiHv5UbK0eCGDkJBqMTQbylzMoYZXQ0I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752133383; c=relaxed/simple; bh=prayXVsP5Xfa1wmmhoDJaMljuUos/iEWRgAkE6TpXI0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=l52e5/67pyhJ3Hds1lGzfVgwl0fBcgVYXWRB5SO+jAxKJuWwT4CY2xXQfNt+bs2HJnvs+GI8+ruItLy3QiBHfnAAH/j9c8jUX6TKGWHgNkyvc+95UhviG3D2e3m9X5vqgTH9ANBQEHH8RpmCk1IRVYAPn37tvD7kToDOdytyIuw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KPPykjJY; 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="KPPykjJY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55D8FC4CEE3; Thu, 10 Jul 2025 07:43:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752133383; bh=prayXVsP5Xfa1wmmhoDJaMljuUos/iEWRgAkE6TpXI0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KPPykjJYVCzOlbW7lvK8CsaJcPHx5xcW2qBb/feHASaqoILY0RBmq1H5+oc65H37b xGuvQvZlsJ9UrgdcbFjMy1j0cKPPElvtPhSTzQo0t+rj++TdxIXBJYDu87bt9jXyNk zO4uTqTlx+yXW8i9N205qxxumAukTDkSsKmeQxCo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38289: scsi: lpfc: Avoid potential ndlp use-after-free in dev_loss_tmo_callbk Date: Thu, 10 Jul 2025 09:42:30 +0200 Message-ID: <2025071011-CVE-2025-38289-0d93@gregkh> X-Mailer: git-send-email 2.50.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=2121; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=06k0HXY0riGmUZGKmj9re4cBLk06zanRX2d8YD7gfE0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBn5eZe7zPkqGZ+arV0obd99sfSmktrxCbxTPCezuS/Ji 9n814ylI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYSu5ZhwU23CrP0Fh9Wh5MG QTlRbxZzxop2MCw466lVf/2F/gThZKNfO4wPr/4ufygPAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Avoid potential ndlp use-after-free in dev_loss_tmo_callbk Smatch detected a potential use-after-free of an ndlp oject in dev_loss_tmo_callbk during driver unload or fatal error handling. Fix by reordering code to avoid potential use-after-free if initial nodelist reference has been previously removed. The Linux kernel CVE team has assigned CVE-2025-38289 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 4281f44ea8bfedd25938a0031bebba1473ece9ad and fixed in 6.15.3 with commit 4f09940b5581e44069eb31a66cf7f05c3c35ed04 Issue introduced in 6.13 with commit 4281f44ea8bfedd25938a0031bebba1473ece9ad and fixed in 6.16-rc1 with commit b5162bb6aa1ec04dff4509b025883524b6d7e7ca Issue introduced in 6.12.5 with commit e4913d4bc59227fbdfe6b8f5541f49aaea1cb41c 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-38289 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_hbadisc.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/4f09940b5581e44069eb31a66cf7f05c3c35ed04 https://git.kernel.org/stable/c/b5162bb6aa1ec04dff4509b025883524b6d7e7ca