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 4E68E286890 for ; Tue, 16 Sep 2025 08:13:05 +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=1758010385; cv=none; b=CkYAM4rplM0q2Yn+1r8BfXatb8gQZu+HY3XHfLhBM5j+yC9AwEWOtS2jYhsW4nyKAeiPIt8pBm4wtdKSFq16uRFQdmBqBlIrpP6OzrTfGyVVAs12byiu2pEu3bDv/TLg0RG8sh0YMm84aABqBvJ8PhVLH526vefA+OefIzEP+MU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758010385; c=relaxed/simple; bh=ZFf7YppEnDLGU7WTYTAuXYphDO795p5Q41EznPhTStU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g+0qpSa9kQaOVCLt0H7nTdS8i2Mn1hwjrPde4AZ5sk3Oqt3GaoC6og/xUicx9GEZXunWeB6l56c24yulvPg8GJbEEkrMoorIAMwjMR+XMCa8iYwaU+iGMMKn5wt5kH2uytnx5MyUGmrHSiW/u6+dsGilf58lIZNHFVKcfIs8p4Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Re5ilDeb; 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="Re5ilDeb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B42DCC4CEF7; Tue, 16 Sep 2025 08:13:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758010385; bh=ZFf7YppEnDLGU7WTYTAuXYphDO795p5Q41EznPhTStU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Re5ilDebmt3Wt4Sf+DPgByeDuBUujrF3kO62lec8lOW5+NPfwZrJbeodnhSjezRl6 a87YFEcYd2FELGKCeD9B/lI1Sa77aw7uITfXooeQXRan5hoLVvwMpqjt1HlvmrIQ5u v0Lb/7Uai4GxlBOItt3xlhnqVaShqmrcoU6uAJPI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53282: scsi: lpfc: Fix use-after-free KFENCE violation during sysfs firmware write Date: Tue, 16 Sep 2025 10:11:32 +0200 Message-ID: <2025091624-CVE-2023-53282-ee67@gregkh> X-Mailer: git-send-email 2.51.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=2853; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tzdkdOS+f125U+4AYYtmOThlF8gxuPiQKa6AH2RH1pg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknpdconz4ptG2h007d/aH7l5juF/UQPTPnsF8M4+7Z3 xQyniXu64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJcIcxzGJ6429QWcTdxWS7 6kW5ftvCyYJyMxnmexXM6iy+8esn+6uuSP97BlxPHyoZAgA= 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: Fix use-after-free KFENCE violation during sysfs firmware write During the sysfs firmware write process, a use-after-free read warning is logged from the lpfc_wr_object() routine: BUG: KFENCE: use-after-free read in lpfc_wr_object+0x235/0x310 [lpfc] Use-after-free read at 0x0000000000cf164d (in kfence-#111): lpfc_wr_object+0x235/0x310 [lpfc] lpfc_write_firmware.cold+0x206/0x30d [lpfc] lpfc_sli4_request_firmware_update+0xa6/0x100 [lpfc] lpfc_request_firmware_upgrade_store+0x66/0xb0 [lpfc] kernfs_fop_write_iter+0x121/0x1b0 new_sync_write+0x11c/0x1b0 vfs_write+0x1ef/0x280 ksys_write+0x5f/0xe0 do_syscall_64+0x59/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd The driver accessed wr_object pointer data, which was initialized into mailbox payload memory, after the mailbox object was released back to the mailbox pool. Fix by moving the mailbox free calls to the end of the routine ensuring that we don't reference internal mailbox memory after release. The Linux kernel CVE team has assigned CVE-2023-53282 to this issue. Affected and fixed versions =========================== Fixed in 5.15.99 with commit 51ab4eb1a25e73c7fc2ad9026520c4d8369c93cc Fixed in 6.1.16 with commit 8dfefa8f424ab208e552df1bfd008b732f3d0ad1 Fixed in 6.2.3 with commit 8becb97918f04bb177bc9c4e00c2bdb302e00944 Fixed in 6.3 with commit 21681b81b9ae548c5dae7ae00d931197a27f480c 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-53282 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_sli.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/51ab4eb1a25e73c7fc2ad9026520c4d8369c93cc https://git.kernel.org/stable/c/8dfefa8f424ab208e552df1bfd008b732f3d0ad1 https://git.kernel.org/stable/c/8becb97918f04bb177bc9c4e00c2bdb302e00944 https://git.kernel.org/stable/c/21681b81b9ae548c5dae7ae00d931197a27f480c