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 C3098143C74 for ; Tue, 21 May 2024 15:25:46 +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=1716305146; cv=none; b=YVwwU/Pn1sIkGSy5Zkja7i63WI6vWAVO1YsRitxs67w1vMpGO/B6skbM7OS8ABx7StJhEm55bi3tPRZY3L/nAVszD/fSfd8OJRnOm3o0+r1yi+uNyS51KMOp+vHnOe+xvyAr7tPxEuC9zsIp9aHORpErfqVP9a3uzJohG3mv17o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305146; c=relaxed/simple; bh=EjTFJhKsHEpMiO8Ig/x8ictoYin2r7cCPa/AQL9iqzQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rlzcBQ5hf6xKHoUztaEcVf3EkoAHtw6i8H5ewl9aoUmr4utRw6jsv17HV3YKQwDr5z72H8K1lzjGLnduhccCfXBKfqi642m9e5ZV/hM7lduyNvcs7mL1j9kgRRxmIRlxAMn8RSNP4UASXgYMTH7Z16tX1YJYHh5BZM7yvbh5g9E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oRkmYU22; 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="oRkmYU22" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C208C2BD11; Tue, 21 May 2024 15:25:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305146; bh=EjTFJhKsHEpMiO8Ig/x8ictoYin2r7cCPa/AQL9iqzQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=oRkmYU22Qrz1ua7JWYH0yz3hDzcH9nk6mBuv+e+gVS2UyO3v93toLJyfSLRifh59P pAE8leEFALe8CHaHxgm+J4gRPkSAjHKWsmKreqTe+T6IUdV5UKgtx08b0aKf4hY9UF zsHvfsunCdCGXmkUWu8+9mlSnY0BZ+8ine4CSzPU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52747: IB/hfi1: Restore allocated resources on failed copyout Date: Tue, 21 May 2024 17:23:24 +0200 Message-ID: <2024052104-CVE-2023-52747-a85f@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=2395; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EjTFJhKsHEpMiO8Ig/x8ictoYin2r7cCPa/AQL9iqzQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+eyJe7EphlG9akrek/FhajMuSE939iYUfU07dCGeVe pKt2rKrI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYik8cwP+oH1+vMYzcEbn2W vTgtY6bT+yA1VoYFi5KaN5iYVy1KKWvIUzg3dfuUcvdfAA== 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: IB/hfi1: Restore allocated resources on failed copyout Fix a resource leak if an error occurs. The Linux kernel CVE team has assigned CVE-2023-52747 to this issue. Affected and fixed versions =========================== Issue introduced in 4.15 with commit f404ca4c7ea8 and fixed in 4.19.273 with commit 00d9e212b8a3 Issue introduced in 4.15 with commit f404ca4c7ea8 and fixed in 5.4.232 with commit 7896accedf5b Issue introduced in 4.15 with commit f404ca4c7ea8 and fixed in 5.10.168 with commit 79b595d95914 Issue introduced in 4.15 with commit f404ca4c7ea8 and fixed in 5.15.94 with commit 9bae58d58b6b Issue introduced in 4.15 with commit f404ca4c7ea8 and fixed in 6.1.12 with commit 0a4f811f2e5d Issue introduced in 4.15 with commit f404ca4c7ea8 and fixed in 6.2 with commit 6601fc0d15ff 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-52747 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/infiniband/hw/hfi1/file_ops.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/00d9e212b8a39e6ffcf31b9d2e503d2bf6009d45 https://git.kernel.org/stable/c/7896accedf5bf1277d2f305718e36dc8bac7e321 https://git.kernel.org/stable/c/79b595d9591426156a9e0635a5b5115508a36fef https://git.kernel.org/stable/c/9bae58d58b6bb73b572356b31a62d2afc7378d12 https://git.kernel.org/stable/c/0a4f811f2e5d07bbd0c9226f4afb0a1270a831ae https://git.kernel.org/stable/c/6601fc0d15ffc20654e39486f9bef35567106d68