From mboxrd@z Thu Jan 1 00:00:00 1970 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 9C3F0155C82 for ; Wed, 16 Apr 2025 14:15:37 +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=1744812937; cv=none; b=FKJA3Lg53T89syqMA9kBnv4kRJIQVkdx7hgZsyVAIAKYV4l5PJa2A01BBU/HHUzgkybAAegK9dwc+B3Tf7wqp5gZklQMzVE/BSH9umV6vaMdAToRDrjM3z5C0GIY5Vra6I2FFW+/Ml2RCxmZ3vhMD2PnBAVbB1Vh2ruov435onc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744812937; c=relaxed/simple; bh=vLpSRwbgjPVRUTxhbV5pvsMWBHUE8+ix3Zq4OAdM6Ko=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WH4jEIwOuqlB3A+DkFCqCqshYGtgSzGTAoIQpjmpmKs0/LGBxAsDY0XLvtoRbK3hDzcgIO3n6KUwlQkVCIhvyq1iPptcQQwGTy9+gP7+1wXkmBZtG8EGuNUHOWP7MJSRW/EbtStxrAomUbv9LUBMMh4Xz1WyF9WOFZAYvH4LkcQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IxaI8vJB; 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="IxaI8vJB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2614DC4CEE2; Wed, 16 Apr 2025 14:15:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744812937; bh=vLpSRwbgjPVRUTxhbV5pvsMWBHUE8+ix3Zq4OAdM6Ko=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IxaI8vJBtY/Ui6sIyhlF6iGVvNQIPkF+DhoJvWIph+lueUMLeS9Sr9T+kDNxrf1Rb 66kgPlcms7IPd4Ig3H4kmnxhjOTef9qisI6j5ehvPuLr5A0EOkdogP05oWS0AlFZD8 UoW6X0F371j1h6PDF8GA+zoYDkykvEJxGmhNEGF4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22064: netfilter: nf_tables: don't unregister hook when table is dormant Date: Wed, 16 Apr 2025 16:12:35 +0200 Message-ID: <2025041608-CVE-2025-22064-0afe@gregkh> X-Mailer: git-send-email 2.49.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=2819; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vLpSRwbgjPVRUTxhbV5pvsMWBHUE8+ix3Zq4OAdM6Ko=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/d+1wc510yExo4gWH049Fnb6JaB2oXneYq0JhqkfS4 09VHSYrO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiv08xLOh71Xk+87OWyBRG K8snC3rL7n/MPcCwYMGXj7pKTsxnHae6KJ7h4CxbK636HQA= 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: don't unregister hook when table is dormant When nf_tables_updchain encounters an error, hook registration needs to be rolled back. This should only be done if the hook has been registered, which won't happen when the table is flagged as dormant (inactive). Just move the assignment into the registration block. The Linux kernel CVE team has assigned CVE-2025-22064 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit b9703ed44ffbfba85c103b9de01886a225e14b38 and fixed in 6.6.87 with commit 6134d1ea1e1408e8e7c8c26545b3b301cbdf1eda Issue introduced in 6.4 with commit b9703ed44ffbfba85c103b9de01886a225e14b38 and fixed in 6.12.23 with commit feb1fa2a03a27fec7001e93e4223be4120d1784b Issue introduced in 6.4 with commit b9703ed44ffbfba85c103b9de01886a225e14b38 and fixed in 6.13.11 with commit 03d1fb457b696c18fe15661440c4f052b2374e7e Issue introduced in 6.4 with commit b9703ed44ffbfba85c103b9de01886a225e14b38 and fixed in 6.14.2 with commit ce571eba07d54e3637bf334bc48376fbfa55defe Issue introduced in 6.4 with commit b9703ed44ffbfba85c103b9de01886a225e14b38 and fixed in 6.15-rc1 with commit 688c15017d5cd5aac882400782e7213d40dc3556 Issue introduced in 6.3.3 with commit d131ce7a319d3bff68d5a9d5509bb22e4ce33946 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-22064 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/6134d1ea1e1408e8e7c8c26545b3b301cbdf1eda https://git.kernel.org/stable/c/feb1fa2a03a27fec7001e93e4223be4120d1784b https://git.kernel.org/stable/c/03d1fb457b696c18fe15661440c4f052b2374e7e https://git.kernel.org/stable/c/ce571eba07d54e3637bf334bc48376fbfa55defe https://git.kernel.org/stable/c/688c15017d5cd5aac882400782e7213d40dc3556