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 7DF952D63F1 for ; Fri, 4 Jul 2025 13:42:53 +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=1751636573; cv=none; b=THu4sB3+DlDII4EjRTSO8sQo5TKZmFJUis4cOxogpRC3fCaWxSf1oWgZ7OBtNLXDI6cBh+HUIb9CHkXN2qKS9eGIvvMPRbOhPReNc9J9qvSDmkaDxucXlEqwiFe8RhtoPz63FnVGdvcyySp85vhKOhY0n5VTdOo7mJ1+2pLlMnw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751636573; c=relaxed/simple; bh=SrpYgyulRyQhje4QDMJnTDIFU4j3VgPyHrJHbeDRc+8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IVlr64+61WibNosEzX5tAuXST44P7JXIOU5yY8sdxQPlfcAnEpJEgi1uO5XV0cX2vu3m0N33xXgp9EYeRhoOOSq79j/HkmFpEAIGQBR3tx0S2KVDhtNm8caa0l0tM6Gxy6VdUruipgqlKiLG7NRztrdl8uWidxVSszcGqDhg+8o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IClpUYx1; 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="IClpUYx1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E2A1C4CEE3; Fri, 4 Jul 2025 13:42:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751636573; bh=SrpYgyulRyQhje4QDMJnTDIFU4j3VgPyHrJHbeDRc+8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IClpUYx1L9cn2m2XoQrBhWTNITLzDOLJq8zYcNgPk4sBB1YW50jy7WTgfY4cdFs/9 6XjxM3YS1M6rcK55MPWKNqkadWIwEKtzSD4d7EANA4QSYCGda00OIQu83NH63Dm51Z tG7y1umYvQPn1LK7pFkOtWzQjqDCXpKfmpG/nsqo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38201: netfilter: nft_set_pipapo: clamp maximum map bucket size to INT_MAX Date: Fri, 4 Jul 2025 15:37:30 +0200 Message-ID: <2025070418-CVE-2025-38201-9575@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=1996; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=d2OGveEKo3GSmy/49SDwQsFx4eE4qRY+F9j+4xiL9Ww=; b=kA0DAAIRMUfUDdst+ykByyZiAGhn2Q7I8FMAK0B/evLf+Lqds1C/Qe3SboLnV2tlW6mHl0fEh 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmhn2Q4ACgkQMUfUDdst+yndxwCfUtym 6UaV0RKLSGkAIYzaXbOFz5oAn1e13FZ8GeRS1K8aRAw4AjG3naUx 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: nft_set_pipapo: clamp maximum map bucket size to INT_MAX Otherwise, it is possible to hit WARN_ON_ONCE in __kvmalloc_node_noprof() when resizing hashtable because __GFP_NOWARN is unset. Similar to: b541ba7d1f5a ("netfilter: conntrack: clamp maximum hashtable size to INT_MAX") The Linux kernel CVE team has assigned CVE-2025-38201 to this issue. Affected and fixed versions =========================== Fixed in 6.12.35 with commit 0ab3de047808f375a36cd345225572eb3366f3c6 Fixed in 6.15.4 with commit d2768016f091f8a5264076b433fd7c3fabb6eb97 Fixed in 6.16-rc1 with commit b85e3367a5716ed3662a4fe266525190d2af76df 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-38201 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.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/0ab3de047808f375a36cd345225572eb3366f3c6 https://git.kernel.org/stable/c/d2768016f091f8a5264076b433fd7c3fabb6eb97 https://git.kernel.org/stable/c/b85e3367a5716ed3662a4fe266525190d2af76df