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 B135B2D0C81 for ; Thu, 3 Jul 2025 08:36:23 +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=1751531783; cv=none; b=TjdS7IdhzbqvU6BALuGRSM+cSUVLVAzQCYUb9h/23WOfnHlPzPo3cBXnuZ6g/uAVLYAlnyaBB9tQgd1cnFF8L5CGBoY0JekHdchSsSZRZriJf4dYlM0b/hH3YaQ3My02T3OZ/YzG6ABLsEtYFvaEyBrWUwOM5Zb/ZF1d7b3KyXo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751531783; c=relaxed/simple; bh=jgs1A/tOTsB/G3+IQQKJXwtjmnFpt9oZ7WuMgL4zVyA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Mrh7V9Xzlohu+zJ3/rIw7TlWSbXL0Az81rH8sCcrGbbcQNzfLmMS4WtCuZDGk0kp95fePk1pQjfrZ29QsJqQjFyuWKxR4W+mB5wfbZrZHT02XpzU57p9RvMBpwo6LPGQs/ckF5zqeXpCMxEan7FFQJEh88G7W104zfrBBKEsnxY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ajNFuKp4; 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="ajNFuKp4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C77FEC4CEE3; Thu, 3 Jul 2025 08:36:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751531783; bh=jgs1A/tOTsB/G3+IQQKJXwtjmnFpt9oZ7WuMgL4zVyA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ajNFuKp4rxskoR7jpkuqyMu3RdJrWzHktPv3PGmmpkir6hCt3avFEhTK4n97CJdeW 8EB6P/4t907W/wylPAWKsY6sroha6ScP5BM1ybRUy4S6d1O5nFPtFKHJk3x/hFb20v PAhj38o9as5ymRtSaXhowNn/PblLsx3IUClJCJaM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38120: netfilter: nf_set_pipapo_avx2: fix initial map fill Date: Thu, 3 Jul 2025 10:35:37 +0200 Message-ID: <2025070327-CVE-2025-38120-4498@gregkh> X-Mailer: git-send-email 2.50.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=3072; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4bEZIgOsYZSzq/bUQouAlO6u2+kR5n9xSnzcq/sr6rI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlpDudX/PD48rJ2cVzD5eoMiR0Bb+w4/m31qVNc1bTkZ sxcGbUjHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRr1EMC6ZPciyYx6cYcfGo /xunlK2mm4PCExnmu+Y8ZDFut956Zo/c7Z4jLxfOmyz/AgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_set_pipapo_avx2: fix initial map fill If the first field doesn't cover the entire start map, then we must zero out the remainder, else we leak those bits into the next match round map. The early fix was incomplete and did only fix up the generic C implementation. A followup patch adds a test case to nft_concat_range.sh. The Linux kernel CVE team has assigned CVE-2025-38120 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15.165 with commit 957a4d1c4c5849e4515c9fb4db21bf85318103dc and fixed in 5.15.186 with commit b5ad58285f9217d68cd5ea2ad86ce254a3fe7c4d Issue introduced in 6.1.103 with commit 9625c46ce6fd4f922595a4b32b1de5066d70464f and fixed in 6.1.142 with commit 90bc7f5a244aadee4292b28098b7c98aadd4b3aa Issue introduced in 6.6.44 with commit 69b6a67f7052905e928d75a0c5871de50e686986 and fixed in 6.6.94 with commit 39bab2d3517b5b50c609b4f8c66129bf619fffa0 Issue introduced in 6.11 with commit 791a615b7ad2258c560f91852be54b0480837c93 and fixed in 6.12.34 with commit 251496ce1728c9fd47bd2b20a7b21b20b9a020ca Issue introduced in 6.11 with commit 791a615b7ad2258c560f91852be54b0480837c93 and fixed in 6.15.3 with commit 8068e1e42b46518ce680dc6470bcd710efc3fa0a Issue introduced in 6.11 with commit 791a615b7ad2258c560f91852be54b0480837c93 and fixed in 6.16-rc1 with commit ea77c397bff8b6d59f6d83dae1425b08f465e8b5 Issue introduced in 6.10.3 with commit 8058c88ac0df21239daee54b5934d5c80ca9685f 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-38120 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/nft_set_pipapo_avx2.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/b5ad58285f9217d68cd5ea2ad86ce254a3fe7c4d https://git.kernel.org/stable/c/90bc7f5a244aadee4292b28098b7c98aadd4b3aa https://git.kernel.org/stable/c/39bab2d3517b5b50c609b4f8c66129bf619fffa0 https://git.kernel.org/stable/c/251496ce1728c9fd47bd2b20a7b21b20b9a020ca https://git.kernel.org/stable/c/8068e1e42b46518ce680dc6470bcd710efc3fa0a https://git.kernel.org/stable/c/ea77c397bff8b6d59f6d83dae1425b08f465e8b5