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 B852F2E54D7 for ; Tue, 7 Oct 2025 15:25:24 +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=1759850724; cv=none; b=bsLaUne74AxSLax9tcJdL1hoaC0c2Xmo8VOY+ZsKYn1TCe4QcbeC6bcBZHAdcLlTzPH5tDEaAGBG2Ik1uwbwmK/N2q6By1rkmB94ijCfQSlrqk76VsmlmtV3FrdsKrUwleCsCU/oAScQV4XLqao8g6m7MZ4TWFqPBj4DNgmm960= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850724; c=relaxed/simple; bh=8eA8wcD1T17kXtBIQWFurQV61iQJRNG8gZS2aJdjI7Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=B8FwV/icpPNB1awMgIMGJ/sVatG0swktmxzPp8wohYCLRqPX9ltLUPcTpv6AVLnI6tzPohcX6RGvzZYxpuARgv0QNKdProfFcAADlEYx0goG3KJrqFCtXp+pbPiwvCTGcoBkyaLmTXJghrRm242YthKC+NzekoWLg86o2OrPvIE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NUiHQAno; 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="NUiHQAno" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42B31C4CEF1; Tue, 7 Oct 2025 15:25:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850724; bh=8eA8wcD1T17kXtBIQWFurQV61iQJRNG8gZS2aJdjI7Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NUiHQAnoopACZXa1BIiqn+2y83izJSmdNdmt4KfwgrcGWBX2pMbVybEZtAiyYp0I/ rboXuTVLnL8mrAF2ERlyhACC5+qx1ZpPCqD3FZiQG09p3WFpTiBDJoR9a4ntIIIkIG yctfZWn1m0M4JqGW7fYW3+6NJfuq1yPkmc64tG8g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53676: scsi: target: iscsi: Fix buffer overflow in lio_target_nacl_info_show() Date: Tue, 7 Oct 2025 17:21:35 +0200 Message-ID: <2025100707-CVE-2023-53676-e7fb@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=2884; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ih0MM0fDnmS5mHPy6GGFSccrLGGLBk5XnAy+akrk8aw=; b=kA0DAAIRMUfUDdst+ykByyZiAGjlL+PIL3sJLh6el0kvRuOthf1jCRLEMdxpjI2z22RYqvd67 ohdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmjlL+MACgkQMUfUDdst+ymKfgCgoLgp t/8OScMpsCCaJ2BLo69FR04AoMYQjm37B/MIBtU/kejJ31fMh46N 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: target: iscsi: Fix buffer overflow in lio_target_nacl_info_show() The function lio_target_nacl_info_show() uses sprintf() in a loop to print details for every iSCSI connection in a session without checking for the buffer length. With enough iSCSI connections it's possible to overflow the buffer provided by configfs and corrupt the memory. This patch replaces sprintf() with sysfs_emit_at() that checks for buffer boundries. The Linux kernel CVE team has assigned CVE-2023-53676 to this issue. Affected and fixed versions =========================== Fixed in 4.14.326 with commit df349e84c2cb0dd05d98c8e1189c26ab4b116083 Fixed in 4.19.295 with commit 114b44dddea1f8f99576de3c0e6e9059012002fc Fixed in 5.4.257 with commit 2cbe6a88fbdd6e8aeab358eef61472e2de43d6f6 Fixed in 5.10.197 with commit bbe3ff47bf09db8956bc2eeb49d2d514d256ad2a Fixed in 5.15.133 with commit 5353df78c22623b42a71d51226d228a8413097e2 Fixed in 6.1.55 with commit 4738bf8b2d3635c2944b81b2a84d97b8c8b0978d Fixed in 6.5.5 with commit 0cac6cbb9908309352a5d30c1876882771d3da50 Fixed in 6.6 with commit 801f287c93ff95582b0a2d2163f12870a2f076d4 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-53676 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/target/iscsi/iscsi_target_configfs.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/df349e84c2cb0dd05d98c8e1189c26ab4b116083 https://git.kernel.org/stable/c/114b44dddea1f8f99576de3c0e6e9059012002fc https://git.kernel.org/stable/c/2cbe6a88fbdd6e8aeab358eef61472e2de43d6f6 https://git.kernel.org/stable/c/bbe3ff47bf09db8956bc2eeb49d2d514d256ad2a https://git.kernel.org/stable/c/5353df78c22623b42a71d51226d228a8413097e2 https://git.kernel.org/stable/c/4738bf8b2d3635c2944b81b2a84d97b8c8b0978d https://git.kernel.org/stable/c/0cac6cbb9908309352a5d30c1876882771d3da50 https://git.kernel.org/stable/c/801f287c93ff95582b0a2d2163f12870a2f076d4