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 EFE6417C6C0 for ; Mon, 25 Mar 2024 09:18:03 +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=1711358284; cv=none; b=Yv0ge6Ty3jg7NrwHNuhZpj2P+4jFI0neIsrv+y3NtMhbu+nHrAjX98aGZ4Kptcn7q3ogsfZHHY/mLSxLkj8iyOShU44PyZYFYDPlcJaAcCRBPfYDx015QM3ApFW3QcCnRJ6u9M9M3rAILCBhPGw1bf2ADZo4n4HBXkC+q8AuShs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711358284; c=relaxed/simple; bh=D6jU9GtS7/EASJrZo+KYAbTtw6nInDj5etJgkHpwOFs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=C/QdTLoZB63I05QwRGGDMOaleoTBE3IVsCUt6AsxizoRFKWhI3EbKmpdL8+8c61hOrWWdkpL44/XcAyBaQyXNYMXBfrSLwUEnmT9B3VSp6hv77lKd4yJFxw61Evh/0U1p8MkOlx3SIB9+iTbHbPe8t0WEl/xBn69kGmO7ACSWHY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hWX2Rlv1; 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="hWX2Rlv1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 744C4C43394; Mon, 25 Mar 2024 09:18:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711358283; bh=D6jU9GtS7/EASJrZo+KYAbTtw6nInDj5etJgkHpwOFs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hWX2Rlv103S/ZL6DKDw+mMiQWxwlubirJ8ZWXNdSj8HZTlBg3kXvBVY4T60AaKXce NVcHZ+T/mdp8khnN0QiQbycEcz2/xR+0NnZiUIwcbsGwAnUeY3Te0Nksr8WsstzYq6 xexPIOAwFBXrqR79iNRyU9vtxFSzkPdFqscwib/k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47168: NFS: fix an incorrect limit in filelayout_decode_layout() Date: Mon, 25 Mar 2024 10:16:44 +0100 Message-ID: <2024032536-CVE-2021-47168-2916@gregkh> X-Mailer: git-send-email 2.44.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=2953; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=D6jU9GtS7/EASJrZo+KYAbTtw6nInDj5etJgkHpwOFs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmMDl88Ht22mGDVuf9sH+eWZ+9nyibYMCj5MYdNemsx+ XH61EXvO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiBx8xzOGU3RAovWLxvRkX wyrZo8uyTJ0bBRjmByRf6ZZ7VF3C+sxz6qQjc5YWZl+bDQA= 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: NFS: fix an incorrect limit in filelayout_decode_layout() The "sizeof(struct nfs_fh)" is two bytes too large and could lead to memory corruption. It should be NFS_MAXFHSIZE because that's the size of the ->data[] buffer. I reversed the size of the arguments to put the variable on the left. The Linux kernel CVE team has assigned CVE-2021-47168 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.37 with commit 16b374ca439f and fixed in 4.4.271 with commit 9d280ab53df1 Issue introduced in 2.6.37 with commit 16b374ca439f and fixed in 4.9.271 with commit b287521e9e94 Issue introduced in 2.6.37 with commit 16b374ca439f and fixed in 4.14.235 with commit f299522eda15 Issue introduced in 2.6.37 with commit 16b374ca439f and fixed in 4.19.193 with commit 945ebef99722 Issue introduced in 2.6.37 with commit 16b374ca439f and fixed in 5.4.124 with commit e411df81cd86 Issue introduced in 2.6.37 with commit 16b374ca439f and fixed in 5.10.42 with commit 9b367fe770b1 Issue introduced in 2.6.37 with commit 16b374ca439f and fixed in 5.12.9 with commit d34fb628f6ef Issue introduced in 2.6.37 with commit 16b374ca439f and fixed in 5.13 with commit 769b01ea68b6 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-2021-47168 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/filelayout/filelayout.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/9d280ab53df1d4a1043bd7a9e7c6a2f9cfbfe040 https://git.kernel.org/stable/c/b287521e9e94bb342ebe5fd8c3fd7db9aef4e6f1 https://git.kernel.org/stable/c/f299522eda1566cbfbae4b15c82970fc41b03714 https://git.kernel.org/stable/c/945ebef997227ca8c20bad7f8a8358c8ee57a84a https://git.kernel.org/stable/c/e411df81cd862ef3d5b878120b2a2fef0ca9cdb1 https://git.kernel.org/stable/c/9b367fe770b1b80d7bf64ed0d177544a44405f6e https://git.kernel.org/stable/c/d34fb628f6ef522f996205a9e578216bbee09e84 https://git.kernel.org/stable/c/769b01ea68b6c49dc3cde6adf7e53927dacbd3a8