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 438304A2D for ; Tue, 27 Feb 2024 18:41:31 +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=1709059292; cv=none; b=uM26JiitbAGG8ElqH6lge+sFdL+wlzn061iZ77DzLmV0GkopvISP/1MoKxAK0qlJO8JjqScGFjRRp9pmNbjNBzOYKp/lyjW5fK83LCWABv7tpg649Meja6pEjQf+MCN30B0We5VOjYbn0l5TOWXTSMknopIZ0uEtURqjEOQhgD4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709059292; c=relaxed/simple; bh=bubWox2rJeyaMHFR22u3l+3w18C6ALMsXYLU1FnLhsY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lfZg+dY34bzhowmS4MgttXaArzGu/tn+RF9KqEHCPczMGcq58RffdcJcmL7Ih9ePcMR8sYDTBWaOUXE2q35Y3X5+eOxZhIIz5QjOIVjFYLEKJr/tnX172f9tA/Hr3vqYFNz2Bm2FlHdE4oEuGK2Udz+Ct4UCVnmG7vmmFOnfY1I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nqTt17fl; 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="nqTt17fl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 676EEC433F1; Tue, 27 Feb 2024 18:41:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709059291; bh=bubWox2rJeyaMHFR22u3l+3w18C6ALMsXYLU1FnLhsY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nqTt17flxLHmGjcVudK48HGoK8Cl1smoeFYqkvVFRTRTEi52K+jBYEAmhhAkdSG1Q PpQ3BknfkIyYMQDpL3dAGkQWTaoozzZgs7ymbjJop/nkze5X/jby/CfIN0AWv+NQUz eLw3i0K8POa1iXLkmU4FUtger5eTMj1wlr/al3Is= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-46952: NFS: fs_context: validate UDP retrans to prevent shift out-of-bounds Date: Tue, 27 Feb 2024 19:40:54 +0100 Message-ID: <20240227184057.2368370-17-gregkh@linuxfoundation.org> 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: , Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: NFS: fs_context: validate UDP retrans to prevent shift out-of-bounds Fix shift out-of-bounds in xprt_calc_majortimeo(). This is caused by a garbage timeout (retrans) mount option being passed to nfs mount, in this case from syzkaller. If the protocol is XPRT_TRANSPORT_UDP, then 'retrans' is a shift value for a 64-bit long integer, so 'retrans' cannot be >= 64. If it is >= 64, fail the mount and return an error. The Linux kernel CVE team has assigned CVE-2021-46952 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit 9954bf92c0cd and fixed in 5.10.36 with commit 96fa26b74cdc Issue introduced in 5.6 with commit 9954bf92c0cd and fixed in 5.11.20 with commit 2f3380121d49 Issue introduced in 5.6 with commit 9954bf92c0cd and fixed in 5.12.3 with commit 3d0163821c03 Issue introduced in 5.6 with commit 9954bf92c0cd and fixed in 5.13 with commit c09f11ef3595 Please see https://www.kernel.org or 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-46952 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/fs_context.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/96fa26b74cdcf9f5c98996bf36bec9fb5b19ffe2 https://git.kernel.org/stable/c/2f3380121d49e829fb73ba86240c181bc32ad897 https://git.kernel.org/stable/c/3d0163821c035040a46d816a42c0780f0f0a30a8 https://git.kernel.org/stable/c/c09f11ef35955785f92369e25819bf0629df2e59