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 BD224EC2 for ; Thu, 6 Mar 2025 16:04:49 +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=1741277089; cv=none; b=rQnR0odlrXOvlmrWRp3fDwOfPC/qnSgfrfMFIh3hPBnMg7ca3IRlDKt5YcKmWVGjLcAxEpynga/khIdZryN4IKgFX4r3Wlf7L0RaIpbJfWkQnD3H56i+kgWOv5mlQOwSq9apLQZc5uEexBrksi9HxAUfFXIUY8vIgf+P/Z+S10A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741277089; c=relaxed/simple; bh=olF8ydx3dktQw1bJVjM7EqNK5VCMTeTOLkjxg/uUHl4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Nx55joC7nBD/j3CEb4mJIVpwQGG1Yh7sXjPfW6bve4Lt5DHB1CGMCD8bdDVxYNUq41tY/ac+0h1VDKrd12cwmDqlmlt7QZP1+lNBKgwxVb4dqqlJkHB/CwdvqckTwWGgFgrmpQOxfaNwVUAtqjnoZ9FkWPUA7rTvs30fXS+0GfE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tz6coyL+; 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="tz6coyL+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CF8BC4CEEC; Thu, 6 Mar 2025 16:04:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1741277089; bh=olF8ydx3dktQw1bJVjM7EqNK5VCMTeTOLkjxg/uUHl4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tz6coyL+q2Z/amLAlc4xXFKYLxakyHYqaBJnIcrjGSNxWV8r3Fbe83L6RUADVCBBf yOeU4+Mn4MB0v43rYwU6Spyb+KLmmA+iBsi2cIWO6HKZO8K8QshYaLJCHfhVhCrJyN aTCl8EyZrTd2wT9CzADtZvXhEFm9kqK0thzS1kcY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21826: netfilter: nf_tables: reject mismatching sum of field_len with set key length Date: Thu, 6 Mar 2025 17:04:31 +0100 Message-ID: <2025030630-CVE-2025-21826-c263@gregkh> X-Mailer: git-send-email 2.48.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=3198; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=olF8ydx3dktQw1bJVjM7EqNK5VCMTeTOLkjxg/uUHl4=; b=owGbwMvMwCRo6H6F97bub03G02pJDOknj/e193idVpg0W+X0GvXZrg+nHDz7dlHtQfs1DEpsd Q8djM9WdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE7lYyLFh6zNI3WDmDVSDq 6fbLJjWSdX9LPzDMz/HU9/f9te+wo7SIufguccXtkgaqAA== 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: netfilter: nf_tables: reject mismatching sum of field_len with set key length The field length description provides the length of each separated key field in the concatenation, each field gets rounded up to 32-bits to calculate the pipapo rule width from pipapo_init(). The set key length provides the total size of the key aligned to 32-bits. Register-based arithmetics still allows for combining mismatching set key length and field length description, eg. set key length 10 and field description [ 5, 4 ] leading to pipapo width of 12. The Linux kernel CVE team has assigned CVE-2025-21826 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.75 with commit 9cb084df01e198119de477ac691d682fb01e80f3 and fixed in 6.1.129 with commit 2ac254343d3cf228ae0738b2615fedf85d000752 Issue introduced in 6.6.14 with commit dc45bb00e66a33de1abb29e3d587880e1d4d9a7e and fixed in 6.6.76 with commit 82e491e085719068179ff6a5466b7387cc4bbf32 Issue introduced in 6.8 with commit 3ce67e3793f48c1b9635beb9bb71116ca1e51b58 and fixed in 6.12.13 with commit 49b7182b97bafbd5645414aff054b4a65d05823d Issue introduced in 6.8 with commit 3ce67e3793f48c1b9635beb9bb71116ca1e51b58 and fixed in 6.13.2 with commit ab50d0eff4a939d20c37721fd9766347efcdb6f6 Issue introduced in 6.8 with commit 3ce67e3793f48c1b9635beb9bb71116ca1e51b58 and fixed in 6.14-rc1 with commit 1b9335a8000fb70742f7db10af314104b6ace220 Issue introduced in 5.10.209 with commit 2d4c0798a1ef8db15b3277697ac2def4eda42312 Issue introduced in 5.15.148 with commit 77be8c495a3f841e88b46508cc20d3d7d3289da3 Issue introduced in 6.7.2 with commit ff67e3e488090908dc015ba04d7407d8bd467f7e 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-2025-21826 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: net/netfilter/nf_tables_api.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/2ac254343d3cf228ae0738b2615fedf85d000752 https://git.kernel.org/stable/c/82e491e085719068179ff6a5466b7387cc4bbf32 https://git.kernel.org/stable/c/49b7182b97bafbd5645414aff054b4a65d05823d https://git.kernel.org/stable/c/ab50d0eff4a939d20c37721fd9766347efcdb6f6 https://git.kernel.org/stable/c/1b9335a8000fb70742f7db10af314104b6ace220