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 D19A15644E for ; Thu, 21 Mar 2024 10:44:02 +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=1711017843; cv=none; b=Mt2J6kKMthviFcqXZ7uF3kRDzn4fPERSxrRfQrs+J6vNirVUTI/kMhQSoZgpj/6gas3Y8LxJkk1t5tL6400fAHZkfsxY9toSN7T6Yy4djb1a8R03EHZuxBHMIfhEUeIfrMRLaDYmOhiW0koLtzwHHTZ2e26hIOGyyQ7CyECqRNQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711017843; c=relaxed/simple; bh=LZ7KSzv0gEaheJiU66c2JAGeF9vBkfTSiFAaWWmzdb8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IX2XmDtbD+ipO3r/4t3Kbr3LhImxso8XWvne4V9PPqO+Xp4Kyt2+ZpkbMCpMTI5IBaq0zUFnE6WVNaYLkUrKMTfwoW+/axoXfisNoPvGlIQTxdSAh15N+O/cobx2zS3D0F4wLcz31B8wTwCSp7juNJf5evsZxWvGXXfnHQSmK/Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Agj9PRFy; 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="Agj9PRFy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08C04C433F1; Thu, 21 Mar 2024 10:44:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711017842; bh=LZ7KSzv0gEaheJiU66c2JAGeF9vBkfTSiFAaWWmzdb8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Agj9PRFyxqXFgX3gVY4sz/OzkePdLzX7bI8bzeTld6etOmnW/jVOycyxF8TLw1ujM 56YOIvDKMSZCA81ydWGcni5XlQMHBDnZU0llDBjCiJ5FFaMDdXLeztBmOQ40u9dEEk xQm6Len3aT/Wtxq6xsfA6V03JpaTtu9d58TfqYFc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26643: netfilter: nf_tables: mark set as dead when unbinding anonymous set with timeout Date: Thu, 21 Mar 2024 11:43:50 +0100 Message-ID: <2024032150-CVE-2024-26643-4f9d@gregkh> X-Mailer: git-send-email 2.44.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=2237; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LZ7KSzv0gEaheJiU66c2JAGeF9vBkfTSiFAaWWmzdb8=; b=owGbwMvMwCRo6H6F97bub03G02pJDKl/+NMkZ91qYujzjeL3eWeYHGJqEu/j9lu6/+q+vWGbh RK2BXd0xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQcuhgWLOAtZDb9OedYBats csniKf+Tz0s+YljQdEskzE7ugP6lhvc61/9GZHWtXjcJAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: mark set as dead when unbinding anonymous set with timeout While the rhashtable set gc runs asynchronously, a race allows it to collect elements from anonymous sets with timeouts while it is being released from the commit path. Mingi Cho originally reported this issue in a different path in 6.1.x with a pipapo set with low timeouts which is not possible upstream since 7395dfacfff6 ("netfilter: nf_tables: use timestamp to check for set element timeout"). Fix this by setting on the dead flag for anonymous sets to skip async gc in this case. According to 08e4c8c5919f ("netfilter: nf_tables: mark newset as dead on transaction abort"), Florian plans to accelerate abort path by releasing objects via workqueue, therefore, this sets on the dead flag for abort path too. The Linux kernel CVE team has assigned CVE-2024-26643 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit 5f68718b34a5 and fixed in 6.8 with commit 552705a3650b 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-2024-26643 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/nf_tables_api.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/552705a3650bbf46a22b1adedc1b04181490fc36