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 1CD521392 for ; Tue, 24 Dec 2024 11:29:37 +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=1735039778; cv=none; b=muHwXVoQG//7hMdmatEP98NphNxH2n3kVUvVcu9YiJLOqXan+ptTXcjhQld6rJ0WoCVscWS0TblafGWnX+SCO0/Bk1tyoFjgE/LE4YAf+MVHf7cYTFVA2evjqwxaKavNoTQ86saFh9yk9tg+ON8wU592hd2YLV3JrTnKZSvSBy8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735039778; c=relaxed/simple; bh=sWtXeV3aEbMQGjGG8VWg6T3wWWAK81es0tH6LR6HEEs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WvfRG/yrnApUkAWGg+opw15Tj4PKgJKqlpz08UBfRLeVvWjlzxvtqo3AIH23v45Dk1h3LPskvNprDLmDP1yNlMpbpCK85BXs/dkIYuwTjsw5kvLjgp3EHATm+IdpFtTujQZAmVAc45IaLE0H5iZuCk5nPC3Op/8Cst2QqHyTBeo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YYHNHhmf; 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="YYHNHhmf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0B54C4CED0; Tue, 24 Dec 2024 11:29:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735039777; bh=sWtXeV3aEbMQGjGG8VWg6T3wWWAK81es0tH6LR6HEEs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YYHNHhmfRXGYymmvs+LwDo2Y5TR8u8vgdu2/CjaKS/4o/vm6rzcV96JUZ6JyfTqs+ 6t8uaIxUIGtuqgERt+ju9gM6O1AEjy8ho69++6NU2lSSlUefTeJsCxRTEUXCqq5AVW 6Nf5qwWJ53D49hZonKUS0zgCG+njpnTvyAzhL3Fc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53146: NFSD: Prevent a potential integer overflow Date: Tue, 24 Dec 2024 12:29:26 +0100 Message-ID: <2024122426-CVE-2024-53146-c503@gregkh> X-Mailer: git-send-email 2.47.1 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=2878; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sWtXeV3aEbMQGjGG8VWg6T3wWWAK81es0tH6LR6HEEs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlZs8XK4n2dmNf3v+pNmSQn3VPLN0nFiEU5/5t7s/FH9 3C1JbwdsSwMgkwMsmKKLF+28RzdX3FI0cvQ9jTMHFYmkCEMXJwCMJH3FgzzkyJT7C9Jh3Vz7an8 2ei44tviIl0hhvnR4t+Lri3qP//y8Iu7QokFP/aF/7oKAA== 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: Prevent a potential integer overflow If the tag length is >= U32_MAX - 3 then the "length + 4" addition can result in an integer overflow. Address this by splitting the decoding into several steps so that decode_cb_compound4res() does not have to perform arithmetic on the unsafe length value. The Linux kernel CVE team has assigned CVE-2024-53146 to this issue. Affected and fixed versions =========================== Fixed in 4.19.325 with commit 745f7ce5a95e783ba62fe774325829466aec2aa8 Fixed in 5.4.287 with commit 90adbae9dd158da8331d9fdd32077bd1af04f553 Fixed in 5.10.231 with commit 3c5f545c9a1f8a1869246f6f3ae8c17289d6a841 Fixed in 5.15.174 with commit 842f1c27a1aef5367e535f9e85c8c3b06352151a Fixed in 6.1.120 with commit de53c5305184ca1333b87e695d329d1502d694ce Fixed in 6.6.64 with commit dde654cad08fdaac370febb161ec41eb58e9d2a2 Fixed in 6.11.11 with commit 084f797dbc7e52209a4ab6dbc7f0109268754eb9 Fixed in 6.12.2 with commit ccd3394f9a7200d6b088553bf38e688620cd27af Fixed in 6.13-rc1 with commit 7f33b92e5b18e904a481e6e208486da43e4dc841 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-2024-53146 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/nfs4callback.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/745f7ce5a95e783ba62fe774325829466aec2aa8 https://git.kernel.org/stable/c/90adbae9dd158da8331d9fdd32077bd1af04f553 https://git.kernel.org/stable/c/3c5f545c9a1f8a1869246f6f3ae8c17289d6a841 https://git.kernel.org/stable/c/842f1c27a1aef5367e535f9e85c8c3b06352151a https://git.kernel.org/stable/c/de53c5305184ca1333b87e695d329d1502d694ce https://git.kernel.org/stable/c/dde654cad08fdaac370febb161ec41eb58e9d2a2 https://git.kernel.org/stable/c/084f797dbc7e52209a4ab6dbc7f0109268754eb9 https://git.kernel.org/stable/c/ccd3394f9a7200d6b088553bf38e688620cd27af https://git.kernel.org/stable/c/7f33b92e5b18e904a481e6e208486da43e4dc841