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 8D0D81E9906 for ; Mon, 13 Apr 2026 13:33:55 +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=1776087235; cv=none; b=sv7mJp9Uau3J7O121Wh3bDoN6cDQ4vENTJwuDoU9BjhFLGlC2vl+WBLSE/D5/JmVs9cmVPh9EZ3D/nhEAjML4PPN/dbS2zq4cPjV9f472J0TTTOsV6rPBgRMMNUMMofZYWgmX0Cube71GAu7k+CMV3VchO6gobravJFOyvaqWFk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776087235; c=relaxed/simple; bh=8BFzkUNs+aOgznW3T1ci1UwsYdQ8Xo/eMkuByFPKIc8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ki+4Qm7nBUp5v8uE+nHNMPhUGlPBLlkubl1Y6HvMkv3PsSy9zmCLdSWAp3XRFDpKVzdIk+vtHvwJxvhbN+JxVbhYSTbPpqr4Z4V4mNlcTKSZ4lyVKN5sWk6azMnuCawoXF8ztCw02r0Ycr3x+5ifv928UHzMVI1r7EkxdPj5VXQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QJ8xqTGl; 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="QJ8xqTGl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDF9EC2BCAF; Mon, 13 Apr 2026 13:33:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776087235; bh=8BFzkUNs+aOgznW3T1ci1UwsYdQ8Xo/eMkuByFPKIc8=; h=From:To:Cc:Subject:Date:Reply-To:From; b=QJ8xqTGl3xOLBdBXuWxPaWQMNQhbfa1QqoWJY3ibru87gSsU/0m77boOZ5ugTf+lR mYYotmIygccMq5rag3hQRO3Jxuyl2AI1a5G2r9+aVp4u6mEn+hSe+e0xA+iL0zXLvT oSAK6tmWORmKT/MrwH35bSrVJKEQbcUWNzZFx1A8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31418: netfilter: ipset: drop logically empty buckets in mtype_del Date: Mon, 13 Apr 2026 15:21:13 +0200 Message-ID: <2026041311-CVE-2026-31418-e6b9@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3201; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TscFqSNJtqA7DBtlXoc3V1H0zie7+SJ8E3lo2C01sIs=; b=owGbwMvMwCRo6H6F97bub03G02pJDJl33h7/G2HrNV1NW55Zd8Lb31ea7y8Uv3qDg91bfG7GR f574Rs3dMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEPnQxzI8U/WTs6ak5p1g8 49CO0JNZRr4u5xgWrGnc1pg8vXxhg7vusphnEZEeF/VPAgA= 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: ipset: drop logically empty buckets in mtype_del mtype_del() counts empty slots below n->pos in k, but it only drops the bucket when both n->pos and k are zero. This misses buckets whose live entries have all been removed while n->pos still points past deleted slots. Treat a bucket as empty when all positions below n->pos are unused and release it directly instead of shrinking it further. The Linux kernel CVE team has assigned CVE-2026-31418 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 and fixed in 6.1.168 with commit ad92ee87462f9a3061361d392e9dbfe2e5c1c9fb Issue introduced in 5.6 with commit 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 and fixed in 6.6.134 with commit 6cea34d7ec6829b62f521a37a287f670144a2233 Issue introduced in 5.6 with commit 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 and fixed in 6.12.81 with commit b7eef00f08b92b0b9efe8ae0df6d0005e6199323 Issue introduced in 5.6 with commit 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 and fixed in 6.18.22 with commit 68ca0eea0af02bed36c5e2c13e9fa1647c31a7d4 Issue introduced in 5.6 with commit 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 and fixed in 6.19.12 with commit ceacaa76f221a6577aba945bb8873c2e640aeba4 Issue introduced in 5.6 with commit 8af1c6fbd9239877998c7f5a591cb2c88d41fb66 and fixed in 7.0 with commit 9862ef9ab0a116c6dca98842aab7de13a252ae02 Issue introduced in 5.4.24 with commit 6c717726f341fd8f39a3ec2dcf5d98d9d28a2769 Issue introduced in 5.5.8 with commit d2997d64dfa65082236bca1efd596b6c935daf5e 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-2026-31418 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/ipset/ip_set_hash_gen.h 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/ad92ee87462f9a3061361d392e9dbfe2e5c1c9fb https://git.kernel.org/stable/c/6cea34d7ec6829b62f521a37a287f670144a2233 https://git.kernel.org/stable/c/b7eef00f08b92b0b9efe8ae0df6d0005e6199323 https://git.kernel.org/stable/c/68ca0eea0af02bed36c5e2c13e9fa1647c31a7d4 https://git.kernel.org/stable/c/ceacaa76f221a6577aba945bb8873c2e640aeba4 https://git.kernel.org/stable/c/9862ef9ab0a116c6dca98842aab7de13a252ae02