Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 21A023EC6A8 for ; Sat, 15 Aug 2026 12:29:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786796995; cv=none; b=W13J/0rftkG/5OWJEy9b9c5Ewr7k2zy/qi3fUr52WKI6wLReFNq5JW9PLaOWz/aFgqpeMu0ePyIzq9fHg6qdx53XHNhRS9wh104TmX8Z7tIsuQXcovdoYnYNaJgWoKcigGedJn3dj1USCQNNMB0q63bfvSKyIdf/gjW7irboYAE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786796995; c=relaxed/simple; bh=TsPlEsjf2IWJeExHr+dKgJ/neMW2YCyR/d1fv9qvP2w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=D/degnOEnHoORo7wPy0Iu25BZNnQilWg7pQQaUn7DnzezX/6XA3PUNIXDfU4JIi0Uf3jeGFs4+5Z41iYwFuIeuVAaKKci8UqIOaE9oEOyUqGupmBJmswlV1YsFmElZT5wgHF1oKypCg6w/GGUFt4FWJlAw2NUh04IjkwUqMNdzs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kX1Ul2k6; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="kX1Ul2k6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 615221F000E9; Sat, 15 Aug 2026 12:29:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786796993; bh=PPEBGSxVgldIsfwgyDmTr1Ws82GvhQ7Pf85Lg8Ge8sw=; h=From:To:Cc:Subject:Date:Reply-To; b=kX1Ul2k6FP80u95LZe8hHW/EEyS6K+Sk8kPBYrfHJ0NK0uVv7guk7g54FdGKrLyPU VB0kqXcyUqffJVbrcvU2AHu7+cUnvoE3gn89hrSfoExrHB0rrDX1cex6y5AEM1Y+Y+ tv3Oo4F5YjiP5JwXgJLrPzOOrtsiCwG7oFV8Xkx4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74492: netfilter: ipset: do not update comments from kernel-side hash adds Date: Sat, 15 Aug 2026 21:26:13 +0900 Message-ID: <2026081539-CVE-2026-74492-a089@gregkh> X-Mailer: git-send-email 2.55.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=3623; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LsrwvVLmr7rvwegYgidF3aAZrx49dZUZBm7LmLm3TbQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNUYfTn5/kz2vL2iGfI/zQ9d6FE1NO8XNoRclsnNk7Y V/Qlp+RHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARPROGBVNM74pP0mP4+7yl 08TStmGXh29bB8OC65OsGBcfuXHiZnCF7G6/13oiih6PAA== 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: do not update comments from kernel-side hash adds mtype_resize() copies comment pointers with memcpy(), not the comment objects themselves. During the window after an entry has been copied but before the table swap and backlog replay, the old table is still published for packet-side updates while the replacement-table entry already holds the same ip_set_comment_rcu pointer. If xt_SET --add-set ... --exist hits that old entry in this window, mtype_add() calls ip_set_init_comment() even though packet-side adds carry no comment payload. That call frees the shared comment through the old entry, so the replacement-table entry now holds a stale pointer. When the queued add is replayed on the new table, mtype_add() calls ip_set_init_comment() again and strlen() dereferences the stale pointer. Fix this in mtype_add() by skipping ip_set_init_comment() when ext->target marks a packet-side add. Userspace adds still update comments, while packet-side adds can no longer free comment storage shared with a resize copy. The Linux kernel CVE team has assigned CVE-2026-74492 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit f66ee0410b1c3481ee75e5db9b34547b4d582465 and fixed in 6.6.151 with commit 661ff9c0cfbe07f8eed920dde9f7781491738207 Issue introduced in 5.6 with commit f66ee0410b1c3481ee75e5db9b34547b4d582465 and fixed in 6.12.103 with commit c710e9bf38e4e71a8db85d26a0f70c0674664207 Issue introduced in 5.6 with commit f66ee0410b1c3481ee75e5db9b34547b4d582465 and fixed in 6.18.44 with commit 4ae701848e4ba9e9713375fb7d82218cbd309da2 Issue introduced in 5.6 with commit f66ee0410b1c3481ee75e5db9b34547b4d582465 and fixed in 7.1.8 with commit 77dbb248a5cc7a5270cd37bbb0b635bf059a872a Issue introduced in 5.6 with commit f66ee0410b1c3481ee75e5db9b34547b4d582465 and fixed in 7.2-rc6 with commit f30415929be8aeb002d557c8d3f7ab2d2188003a Issue introduced in 5.4.24 with commit 5dd9488ae41070b69d2f4acb580f77db5705f9ca Issue introduced in 5.5.8 with commit a469bab3386aebff33c59506f3a95e35b91118fd 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-74492 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/661ff9c0cfbe07f8eed920dde9f7781491738207 https://git.kernel.org/stable/c/c710e9bf38e4e71a8db85d26a0f70c0674664207 https://git.kernel.org/stable/c/4ae701848e4ba9e9713375fb7d82218cbd309da2 https://git.kernel.org/stable/c/77dbb248a5cc7a5270cd37bbb0b635bf059a872a https://git.kernel.org/stable/c/f30415929be8aeb002d557c8d3f7ab2d2188003a