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 331EE17CF43 for ; Mon, 25 Mar 2024 09:18:00 +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=1711358281; cv=none; b=jCQxza4vzLI4QMaYjxRG9DAE481kk5PwwpkNdj38CxkY3OL3Z1z6vnOZPKNdEpoSwDHgRbC2tOXirhFgT314pXFs9S8KKgzZ/VQh/wrhMv+mH173D8Q5oYDEvI5EBfij5MkDEfpT/hzZNNyHnNI2BfLgZTirf+xI47I2w+iD4dY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711358281; c=relaxed/simple; bh=PnqneVCEo66rhY1SAql2aCcBw49tkyXvdYAhNZEZEvY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eHCxC3QJxfKDwJZfT8CVewAVetFkJHTj8+OLYIT4qlEFOvapUcdwXAA7saESdU2eFvA22Tp7ib2FmR+ub4XDQeslOUA18zML3NlFFoN60TKn6JULro1WKonO4y6+mmtSlLcGkZpJd+Ef+Q4Xbm/zzapYpgg1riyR2k/d8/Dwilg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WmPanFas; 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="WmPanFas" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 405AAC43601; Mon, 25 Mar 2024 09:18:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711358280; bh=PnqneVCEo66rhY1SAql2aCcBw49tkyXvdYAhNZEZEvY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=WmPanFasVxB2HsDp1gB5oTA076ptBnt3jgp4BNsN6QLZMr29pild54hWzdD8CLmGs VSKmx+NoasL7UmmjsDjIu6OfWQ3z3hdwZ0YTay2w/cIJxe1oKRxFayNsXSSzmMV/cj nNJIG15PEEL3oMifgD4CjssAOd/r77YqnjKAwKZY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47167: NFS: Fix an Oopsable condition in __nfs_pageio_add_request() Date: Mon, 25 Mar 2024 10:16:43 +0100 Message-ID: <2024032535-CVE-2021-47167-c68c@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=2290; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PnqneVCEo66rhY1SAql2aCcBw49tkyXvdYAhNZEZEvY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmMDl/+LQjNjGv9U/mmaXt01rwT5acNd3cwZ+UmTd8+t zbQPb6+I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbyOpZhwQLW1CeNx49kfkic sMkvMOlmzTm3SwyzWVOd47fvZ3y2dsKcPU9DV/DlXeVXAAA= 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 Oopsable condition in __nfs_pageio_add_request() Ensure that nfs_pageio_error_cleanup() resets the mirror array contents, so that the structure reflects the fact that it is now empty. Also change the test in nfs_pageio_do_add_request() to be more robust by checking whether or not the list is empty rather than relying on the value of pg_count. The Linux kernel CVE team has assigned CVE-2021-47167 to this issue. Affected and fixed versions =========================== Issue introduced in 4.0 with commit a7d42ddb3099 and fixed in 5.4.124 with commit 1fc5f4eb9d31 Issue introduced in 4.0 with commit a7d42ddb3099 and fixed in 5.10.42 with commit ee21cd3aa854 Issue introduced in 4.0 with commit a7d42ddb3099 and fixed in 5.12.9 with commit 15ac6f147876 Issue introduced in 4.0 with commit a7d42ddb3099 and fixed in 5.13 with commit 56517ab958b7 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-47167 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/pagelist.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/1fc5f4eb9d31268ac3ce152d74ad5501ad24ca3e https://git.kernel.org/stable/c/ee21cd3aa8548e0cbc8c67a80b62113aedd2d101 https://git.kernel.org/stable/c/15ac6f14787649e8ebd75c142e2c5d2a243c8490 https://git.kernel.org/stable/c/56517ab958b7c11030e626250c00b9b1a24b41eb