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 80BC83F9C5 for ; Fri, 27 Dec 2024 13:53: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=1735307626; cv=none; b=cRvD6UR4UYQRhK9T/ZDp0mBwrhwUFuo9L03CgdfoN1X0QiDbGS3PTTKHzhRh6T46G8LUfzBrWITlVMZP8eQbgA7PoBe8H+jaB5b7xog825TYnBpfFe60q/9KmYlSYQd7ek2lpxBxcSCdIdR/oRWytJylG69JHSULYctG7R6pvZs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735307626; c=relaxed/simple; bh=kFc51n2RM4icuHNFCCcl2F5/k+Kaw3wZxKgZF16ORLI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TJN+GHHIeztjHXYodhd8ORkd6UovWZ0qd533uEnz+KCQ446eN3kH0DQ3w/82qFh9Y7ZXYHfb0sDY9wW+qAcHxMT7fkrLQJwBm0wWSH1u2nnvzb0GCs30xTqONcaGqvQhQ3rGXZkll4RVWxU+HOSW9bI//Fo8o6lkzPltN7NfY6Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2MXdQhJi; 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="2MXdQhJi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9DB8C4CED0; Fri, 27 Dec 2024 13:53:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735307626; bh=kFc51n2RM4icuHNFCCcl2F5/k+Kaw3wZxKgZF16ORLI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2MXdQhJiH89tb0YyHhBcb6JdqVXK5Oz5nA5x8UDawjafESL1WBteMkYCTDlHtlQNU OWLo+mFL0/pl0Vs1KG0JbpdbWZFXBVHQIbqw8bEBsG1+LlM4nTeYdAZdwoPSf95E2e Zg2XfM94Ga/C9QMb2gTAI3mpqgGBm3YKyWxH+vh8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53173: NFSv4.0: Fix a use-after-free problem in the asynchronous open() Date: Fri, 27 Dec 2024 14:52:19 +0100 Message-ID: <2024122717-CVE-2024-53173-b3c7@gregkh> X-Mailer: git-send-email 2.47.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=3874; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kFc51n2RM4icuHNFCCcl2F5/k+Kaw3wZxKgZF16ORLI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5GwWtp7hfm9NRu+hWqfKe70vknfYa/BM9KRKRc3Cy2 fXcdn2xjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI2w2G+THP14n8F416OWdP UMnPsG/KE+YtesKw4FLiO8klDMu7nrfu2adQdMDjzRMhIwA= 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: NFSv4.0: Fix a use-after-free problem in the asynchronous open() Yang Erkun reports that when two threads are opening files at the same time, and are forced to abort before a reply is seen, then the call to nfs_release_seqid() in nfs4_opendata_free() can result in a use-after-free of the pointer to the defunct rpc task of the other thread. The fix is to ensure that if the RPC call is aborted before the call to nfs_wait_on_sequence() is complete, then we must call nfs_release_seqid() in nfs4_open_release() before the rpc_task is freed. The Linux kernel CVE team has assigned CVE-2024-53173 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.16 with commit 24ac23ab88df5b21b5b2df8cde748bf99b289099 and fixed in 4.19.325 with commit 1cfae9575296f5040cdc84b0730e79078c081d2d Issue introduced in 2.6.16 with commit 24ac23ab88df5b21b5b2df8cde748bf99b289099 and fixed in 5.4.287 with commit 7bf6bf130af8ee7d93a99c28a7512df3017ec759 Issue introduced in 2.6.16 with commit 24ac23ab88df5b21b5b2df8cde748bf99b289099 and fixed in 5.10.231 with commit 5237a297ffd374a1c4157a53543b7a69d7bbbc03 Issue introduced in 2.6.16 with commit 24ac23ab88df5b21b5b2df8cde748bf99b289099 and fixed in 5.15.174 with commit 2ab9639f16b05d948066a6c4cf19a0fdc61046ff Issue introduced in 2.6.16 with commit 24ac23ab88df5b21b5b2df8cde748bf99b289099 and fixed in 6.1.120 with commit ba6e6c04f60fe52d91520ac4d749d372d4c74521 Issue introduced in 2.6.16 with commit 24ac23ab88df5b21b5b2df8cde748bf99b289099 and fixed in 6.6.64 with commit 229a30ed42bb87bcb044c5523fabd9e4f0e75648 Issue introduced in 2.6.16 with commit 24ac23ab88df5b21b5b2df8cde748bf99b289099 and fixed in 6.11.11 with commit e2277a1d9d5cd0d625a4fd7c04fce2b53e66df77 Issue introduced in 2.6.16 with commit 24ac23ab88df5b21b5b2df8cde748bf99b289099 and fixed in 6.12.2 with commit b56ae8e715557b4fc227c9381d2e681ffafe7b15 Issue introduced in 2.6.16 with commit 24ac23ab88df5b21b5b2df8cde748bf99b289099 and fixed in 6.13-rc1 with commit 2fdb05dc0931250574f0cb0ebeb5ed8e20f4a889 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-53173 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: fs/nfs/nfs4proc.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/1cfae9575296f5040cdc84b0730e79078c081d2d https://git.kernel.org/stable/c/7bf6bf130af8ee7d93a99c28a7512df3017ec759 https://git.kernel.org/stable/c/5237a297ffd374a1c4157a53543b7a69d7bbbc03 https://git.kernel.org/stable/c/2ab9639f16b05d948066a6c4cf19a0fdc61046ff https://git.kernel.org/stable/c/ba6e6c04f60fe52d91520ac4d749d372d4c74521 https://git.kernel.org/stable/c/229a30ed42bb87bcb044c5523fabd9e4f0e75648 https://git.kernel.org/stable/c/e2277a1d9d5cd0d625a4fd7c04fce2b53e66df77 https://git.kernel.org/stable/c/b56ae8e715557b4fc227c9381d2e681ffafe7b15 https://git.kernel.org/stable/c/2fdb05dc0931250574f0cb0ebeb5ed8e20f4a889