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 489CF1FCCF2 for ; Wed, 26 Feb 2025 02:12:51 +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=1740535972; cv=none; b=BUbl19G+R7HTIhEZkSOdWLfXXC/BYB4khuDv1+tXtcq+CvpZEt8HtjVYZV7TOsld258pHxlMjer4HzUqm5pb0w7WyCr348IkeeOSESAz6Bz50dCS4IRhahPTcpCamEo/hTSwr/Mf01q+UFcNidgvZNQKFGBEpDiA2uM720fAu9s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535972; c=relaxed/simple; bh=XezB3vAHz2PTHSQxxWefWeGxXAzcEJWeElovAgewC4w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=D16zvPDt3nN9wkrJbrwukAvzKWjEnQ6OwkH/wmcsxvdi6Pk0cNT2FF9cqGKaF25sSauS0Pc4hrXgbUc6aUCQLecMKj+VCsetb9rNmLxZy67QqvbvDw8/UTe5U93pzRS0piVTy10RUx6WIpJy8/hvsBRLnY6hEryFYIJ9bndce0c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JOo/vbEE; 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="JOo/vbEE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8A00C4CEDD; Wed, 26 Feb 2025 02:12:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535971; bh=XezB3vAHz2PTHSQxxWefWeGxXAzcEJWeElovAgewC4w=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JOo/vbEEOvTAk6wlzU15nKKs1sUWA5bMJPjH4yXrAM3A7s/ubg2kZlAbwET0CsOKC h/7Xk50VxzCKZjlq6/FY8OLRuqc8k0jWZxJqkdDUpQPhQ0pIAwb7Gllbn7IrHjD+ml pxNJoizCUtoXqu9D+pt0CDdKUxy8JCWXnzbWPPF4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49316: NFSv4: Don't hold the layoutget locks across multiple RPC calls Date: Wed, 26 Feb 2025 03:09:50 +0100 Message-ID: <2025022636-CVE-2022-49316-3e10@gregkh> X-Mailer: git-send-email 2.48.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=2580; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XezB3vAHz2PTHSQxxWefWeGxXAzcEJWeElovAgewC4w=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yh9uNmfYWJsaoWaf+6mH+//2lo9FB0T3z/veF7Sm7 pq4o+rDjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIRAjDggOlR9f/27D5zuZo h9pLXe7zrAMm3GJYsOUW0zytm78bOC+tf+bxJ/TXadVN7gA= 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: Don't hold the layoutget locks across multiple RPC calls When doing layoutget as part of the open() compound, we have to be careful to release the layout locks before we can call any further RPC calls, such as setattr(). The reason is that those calls could trigger a recall, which could deadlock. The Linux kernel CVE team has assigned CVE-2022-49316 to this issue. Affected and fixed versions =========================== Fixed in 4.19.247 with commit 6b3fc1496e7227cd6a39a80bbfb7588ef7c7a010 Fixed in 5.4.198 with commit a2b3be930e79cc5d9d829f158e31172b2043f0cd Fixed in 5.10.122 with commit 0ee5b9644f06b4d3cdcd9544f43f63312e425a4c Fixed in 5.15.47 with commit d4c2a041ed3ba114502d5ed6ace5b1a48d637a8e Fixed in 5.17.15 with commit 08d7a26d115cc7892668baa9750f64bd8baca29b Fixed in 5.18.4 with commit ea759ae0a9ae5acee677d722129710ac89cc59c1 Fixed in 5.19 with commit 6949493884fe88500de4af182588e071cf1544ee 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-2022-49316 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/6b3fc1496e7227cd6a39a80bbfb7588ef7c7a010 https://git.kernel.org/stable/c/a2b3be930e79cc5d9d829f158e31172b2043f0cd https://git.kernel.org/stable/c/0ee5b9644f06b4d3cdcd9544f43f63312e425a4c https://git.kernel.org/stable/c/d4c2a041ed3ba114502d5ed6ace5b1a48d637a8e https://git.kernel.org/stable/c/08d7a26d115cc7892668baa9750f64bd8baca29b https://git.kernel.org/stable/c/ea759ae0a9ae5acee677d722129710ac89cc59c1 https://git.kernel.org/stable/c/6949493884fe88500de4af182588e071cf1544ee