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 BFBFF17C6DF for ; Mon, 25 Mar 2024 09:17:57 +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=1711358277; cv=none; b=kr4ehvYFZRpstv5/n/BgKNJf3g5TBIEuOSwsgLeCBC1PlCJ8zsegfSDVqUFJm4aOAQUw2dlMYBYeZ3z6A5/TXMmc2nzLgsnGF8LFxv2MEOFhPzRQMi6NDo34NPaNejLql85d+RAoUnV9mK3MmiEMadXzrsyV25twFhBVWKp1tn0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711358277; c=relaxed/simple; bh=nuFl2MV2dlzF8yKOUpaB8bniHZ0cKu/Y8Zz8B0hfozE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Xoi6O0jgqGBmMnOmSld1e5iWt2y49gQAFM4wMK6Co4g5bNIrF0SKJ9TtfIJHmHBmNKtG+DLYl7AcfjMfDlH+7ag/Fznzv+xi7zvmPVma7t7uPTupOsyNrDWOAljAZMr0DRSywAX1DQLV7Wk28mG6H37T66HJFjEEdp5G56vSM0o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pud42wWX; 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="pud42wWX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2B1DC433C7; Mon, 25 Mar 2024 09:17:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711358277; bh=nuFl2MV2dlzF8yKOUpaB8bniHZ0cKu/Y8Zz8B0hfozE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pud42wWXFypUy6BnWUXuhDfl9I6INggSc4RrNitkrcH8sEy1FeOW1i/zkU1dN6C2z 9K5UT/pRGyRAqQysoK/I3PuciA5OFlK9FPP+y2UYKvzA1eFYUtYm+snS/QVkrkmhlk K8MLdbeh2pC2MCLipyPATL0eJxKLgwOseCVErYi8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47166: NFS: Don't corrupt the value of pg_bytes_written in nfs_do_recoalesce() Date: Mon, 25 Mar 2024 10:16:42 +0100 Message-ID: <2024032535-CVE-2021-47166-6ab7@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=2819; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nuFl2MV2dlzF8yKOUpaB8bniHZ0cKu/Y8Zz8B0hfozE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmMDp+36ScfVDA746Ai2/JV8f/bTtZP91YlLjPNFcpac 6Z5pvXTjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIRCLD/OhnJuZx+79GBYSk cn/qavsRNLe7jmF+VNDMHSJZ8TvYdwWFMdd8+9x3YcIqAA== 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: Don't corrupt the value of pg_bytes_written in nfs_do_recoalesce() The value of mirror->pg_bytes_written should only be updated after a successful attempt to flush out the requests on the list. The Linux kernel CVE team has assigned CVE-2021-47166 to this issue. Affected and fixed versions =========================== Issue introduced in 4.0 with commit a7d42ddb3099 and fixed in 4.4.271 with commit e8b8418ce14a Issue introduced in 4.0 with commit a7d42ddb3099 and fixed in 4.9.271 with commit b291baae24f8 Issue introduced in 4.0 with commit a7d42ddb3099 and fixed in 4.14.235 with commit c757c1f1e65d Issue introduced in 4.0 with commit a7d42ddb3099 and fixed in 4.19.193 with commit 40f139a6d50c Issue introduced in 4.0 with commit a7d42ddb3099 and fixed in 5.4.124 with commit 785917316b25 Issue introduced in 4.0 with commit a7d42ddb3099 and fixed in 5.10.42 with commit 7087db95c0a0 Issue introduced in 4.0 with commit a7d42ddb3099 and fixed in 5.12.9 with commit 2fe1cac336b5 Issue introduced in 4.0 with commit a7d42ddb3099 and fixed in 5.13 with commit 0d0ea309357d 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-47166 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/e8b8418ce14ae66ee55179901edd12191ab06a9e https://git.kernel.org/stable/c/b291baae24f876acd5a5dd57d0bb2bbac8a68b0c https://git.kernel.org/stable/c/c757c1f1e65d89429db1409429436cf40d47c008 https://git.kernel.org/stable/c/40f139a6d50c232c0d1fd1c5e65a845c62db0ede https://git.kernel.org/stable/c/785917316b25685c9b3a2a88f933139f2de75e33 https://git.kernel.org/stable/c/7087db95c0a06ab201b8ebfac6a7ec1e34257997 https://git.kernel.org/stable/c/2fe1cac336b55a1f79e603e9ce3552c3623e90eb https://git.kernel.org/stable/c/0d0ea309357dea0d85a82815f02157eb7fcda39f