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 5E499199242 for ; Tue, 16 Jul 2024 11:48: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=1721130483; cv=none; b=Stns8uX8pV1GQPbGCeh1R92RfKXQH+jh9gc2G5mYjF3UzS9oZRrqHSh1ShL5cgXWTkNz1zPSyWuWoyONVx0HtLpWmrciiZkRh6nQESyU2fN1t97gtvxvHcqbmMc52NBFF0IAoK86NzhQeRx87/FHW1Nmdol2aqkPzZaG3h38hoY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721130483; c=relaxed/simple; bh=RgSY3n89/ggGarl/axCvuuRVpF+uUhJkdLVAh5uVt0Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XL0LtXMOiBFiLnweS4t3JjjC0qrb7ge5SNaRPXapxJjrvmoMMJLtRgW0Dd89X3RIWFc/R4Vcpcn9fS0Fbip8I394NdazPJxXHyqX4z0KFtghfdLiGj8Hn/Ouj6+ZYX677eQqJNN4ttbOuboyByednHA/fYDo+6J4QLZh9f7BwRE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wUZTu6lu; 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="wUZTu6lu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8243C116B1; Tue, 16 Jul 2024 11:48:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721130483; bh=RgSY3n89/ggGarl/axCvuuRVpF+uUhJkdLVAh5uVt0Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wUZTu6luyJIgV5uLd9TDVDeiZW/hTQjdXemcpVxzXBvsjAKz3HEhZO1Wl0SiaDq7v kXybLEj8PekbPU4NJuPI7gMBvGKAUTe4YiWc6bf5J65u66Uwfs2T0ZkvI3X6P0v7wt L40r82qQjsxzGw+ysRyTWbS/s9gCgzHXaUowOrMM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48829: NFSD: Fix NFSv3 SETATTR/CREATE's handling of large file sizes Date: Tue, 16 Jul 2024 13:46:21 +0200 Message-ID: <2024071652-CVE-2022-48829-2145@gregkh> X-Mailer: git-send-email 2.45.2 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=2307; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RgSY3n89/ggGarl/axCvuuRVpF+uUhJkdLVAh5uVt0Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnTYguO7kk61DjN4oP1jc7FwseWduX8Njp6+7nvkXj3Z 1vXhmle6IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJWGUyzPdRMnX5eEMv6sKd 14XrXC8uSk6aIcmwYGrzk2XtYQ4cpas+uswzvsh2WfyHIQA= 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: NFSD: Fix NFSv3 SETATTR/CREATE's handling of large file sizes iattr::ia_size is a loff_t, so these NFSv3 procedures must be careful to deal with incoming client size values that are larger than s64_max without corrupting the value. Silently capping the value results in storing a different value than the client passed in which is unexpected behavior, so remove the min_t() check in decode_sattr3(). Note that RFC 1813 permits only the WRITE procedure to return NFS3ERR_FBIG. We believe that NFSv3 reference implementations also return NFS3ERR_FBIG when ia_size is too large. The Linux kernel CVE team has assigned CVE-2022-48829 to this issue. Affected and fixed versions =========================== Fixed in 5.10.220 with commit a231ae6bb50e Fixed in 5.15.24 with commit 37f2d2cd8ead Fixed in 5.16.10 with commit aa9051ddb4b3 Fixed in 5.17 with commit a648fdeb7c0e 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-48829 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/nfsd/nfs3xdr.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/a231ae6bb50e7c0a9e9efd7b0d10687f1d71b3a3 https://git.kernel.org/stable/c/37f2d2cd8eadddbbd9c7bda327a9393399b2f89b https://git.kernel.org/stable/c/aa9051ddb4b378bd22e72a67bc77b9fc1482c5f0 https://git.kernel.org/stable/c/a648fdeb7c0e17177a2280344d015dba3fbe3314