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 3EA4A3B6C14 for ; Fri, 28 Aug 2026 06:53:04 +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=1787899987; cv=none; b=LQDEsyZRCsyfFJye5x70G7YVTneHHr9DUXi4TVtaDJalmARhh1qUKH6DXctjNEJHz7uTMLUohRnLmIrm+xVTrBg8EFJMoGHCaCZ6NgJOK67szQfLz9XMBSknpAvnfEfrBSfh8Ivl3m7Z9gjD1Bzi/v3b65SoeJIuJgGUYGfrHtQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787899987; c=relaxed/simple; bh=1k/+rvgqjrlM4xgyFKK2r/r3S3h7wdFf17pecGZN+s0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kYEHOdl4C1JiM8wDgX4lopWSMADA6tVHBapB0HNmUGa+HZYQy4Q62s1oFOdHUYgYJiGEGvfniw1Hv6vYTIP4tcgeSitDCXmYXhoqfjVHWehxUi0GhOl1O9m5ZNQJRau/FtoyPmYsUEfbSCO3cJZ9TJBjRRSgVir11oviMjvS5FU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qWKMJi4s; 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="qWKMJi4s" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03CAB1F000E9; Fri, 28 Aug 2026 06:53:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787899982; bh=wJg5LICZgbtdKuiJF2bpVDubQWv+tJE/Accjo77YY/I=; h=From:To:Cc:Subject:Date:Reply-To; b=qWKMJi4sX4d2MU7Zkq5wgZ+isHBLfasVoxZNfn6zf9yn5RQzuK4iaP4whBVfu1/62 feZ0n+noI8RfE+Y539sKZXJhnrUBQMqqqyvPg+CEVvf2EK7JCKKw1UqMWWikasIcTJ 3JKgGBh7QBTp0tLh3mbukGsATf7EkqLpX29OAxfg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80668: netfilter: nf_conntrack_expect: use conntrack GC to reap expectations Date: Fri, 28 Aug 2026 08:49:45 +0200 Message-ID: <2026082847-CVE-2026-80668-a443@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=4638; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=v+dcQDn5ZpFhuE541EGoQwvfEF2egjHRnsL4GpY9Fos=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkT9f3PnArbOzN7uRbDvaRuobfFelHeFQsPXVzuc+mb9 HJHwTWbOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BeAiRxkWHNt9b52b6dl9vC0h ln1btzgoey1dwrDg9PR5Hr+ZU5Umq6gl3JiX5T3ncb8mAA== 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_conntrack_expect: use conntrack GC to reap expectations This patch replaces the timer API by GC worker approach for expectations, as it already happened in many other subsystems. Use the existing conntrack GC worker to iterate over the local list of expectations in the master conntrack to reap expired expectations. Check IPS_HELPER_BIT to run GC for expectations, set it on for nft_ct expectation which nevers sets it. Hold the expectation spinlock while iterating over the master conntrack expectation list to synchronize with nf_ct_remove_expectations(). This also performs runtime packet path garbage collection through the expectation insertion and lookup functions while walking over one of the chains of the global expectation hashtables. Unconfirmed conntrack entries are skipped since ct->ext can be reallocated and dying are skipped since those will be gone soon. Set on IPS_HELPER_BIT if the helper ct extension is added, then the new GC worker does not need to bump the ct refcount to check if the ct->ext helper is available. This removes the extra bump on the refcount for expectation timers, this allows to remove several nf_ct_expect_put() calls after the unlink, after this update only refcount remains at 1 while on the expectation hashes. This patch implicitly addresses a race with the existing timer API allowing an expectation to access a stale exp->master pointer which has been already released when expectation removal loses races with an expiring timer, ie. timer_del() reporting false. Add a new NF_CT_EXPECT_DEAD flag to reap this expectation via GC. This is needed by nf_conntrack_unexpect_related() which is called in error paths to invalidate newly created expectations that has been added into the hashes. These expectactions cannot be inmediately released as GC or nf_ct_remove_expectations() could race to make it. On expectation insert, the runtime GC reaps stale expectations before checking the expectation limit set by policy. Set current timestamp in nf_ct_expect_alloc(), then add the expectation policy timeout (or custom timeout specified added on top of this) to specify the expectation lifetime. The Linux kernel CVE team has assigned CVE-2026-80668 to this issue. Affected and fixed versions =========================== Issue introduced in 7.0 with commit bffcaad9afdfe45d7fc777397d3b83c1e3ebffe5 and fixed in 7.1.5 with commit 7ec786f4230c2a9b2eaf97a2d45368933b49d2b2 Issue introduced in 7.0 with commit bffcaad9afdfe45d7fc777397d3b83c1e3ebffe5 and fixed in 7.2 with commit b8b09dc2bf35a00d4e0556b5d6308c7b917ebda2 Issue introduced in 6.1.176 with commit 9e1196d27ef496f404c76f7a9d03761142d991c4 Issue introduced in 6.6.143 with commit 5e1c1d22268ae710c238342c8030c21daf298168 Issue introduced in 6.12.94 with commit d52fa1fa7440676b8c238037a050ab008c22737f Issue introduced in 6.18.24 with commit f338ced0473849c9f6ed0b77ca99f1aab5826787 Issue introduced in 6.19.14 with commit 497f99b26fffdc5635706d1b4811f1ed8ee21a5b 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-80668 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: include/net/netfilter/nf_conntrack_expect.h include/uapi/linux/netfilter/nf_conntrack_common.h net/netfilter/nf_conntrack_core.c net/netfilter/nf_conntrack_expect.c net/netfilter/nf_conntrack_h323_main.c net/netfilter/nf_conntrack_helper.c net/netfilter/nf_conntrack_netlink.c net/netfilter/nf_conntrack_sip.c net/netfilter/nft_ct.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/7ec786f4230c2a9b2eaf97a2d45368933b49d2b2 https://git.kernel.org/stable/c/b8b09dc2bf35a00d4e0556b5d6308c7b917ebda2