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 39EE131B82B for ; Wed, 24 Dec 2025 10:59:38 +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=1766573978; cv=none; b=GdIg6fXoTkZWmw62/2fc8zuxQAplv6i3eBO9+pviniiM/s/VD8fkAGlO0pTYT2m92L+EAxMcwiqz9xgAldhgZm9IwFNBGng9XfjqBTdaON+BQR36ojBV6OHDG3VB8skzW6xuDS1cuFGKrBK7l/nKIjVmCU33fziSvl7QJbe3aBM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573978; c=relaxed/simple; bh=CsEuxrMygAdvUqOmqQmkgb6uhxLBaKCGB1PIOZXT1ds=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QO3UPn2JHrtx+exhphhlH6L94J4MnPrRTSp/HZfqq6ARUnQ3cAHmMn5F2Hi/VcuFu7tc5UjfhB2/99zEah0QC72IAyuOPzBmoFcCWmZkLty+gBNXpb6ZVgJ8u9ggYn7/ORCjNX7dHSOmRoOGpIIsL8GQP9g7aeVOGn7p/QwgtZw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y0CoUdQp; 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="y0CoUdQp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE169C16AAE; Wed, 24 Dec 2025 10:59:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766573978; bh=CsEuxrMygAdvUqOmqQmkgb6uhxLBaKCGB1PIOZXT1ds=; h=From:To:Cc:Subject:Date:Reply-To:From; b=y0CoUdQpUbkO1zKMWFikmmBH5wTTWdWdQNE6ck06GkR9hfsPcwaOi+grHUVP5e/p+ 6JS+OOlADTfFhkvGMNCpEZPJUI75MGG/QMlBiIvCKTrYTt8wgJyDqgZSMRZV9Eatx1 98FB1FwtZGnZRiFacUoaOpdatDe0fGy9ofL543ww= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54035: netfilter: nf_tables: fix underflow in chain reference counter Date: Wed, 24 Dec 2025 11:57:19 +0100 Message-ID: <2025122438-CVE-2023-54035-76a5@gregkh> X-Mailer: git-send-email 2.52.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=2872; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4cHijHtzt5LYjFokZsPyLSvQDUq8DziMCLXQdzCi2Ts=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnex55N/vqdifGX8MF17SLzvAXePpHovf4qT6XvzfmgI 85egW5LOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi3a0MC5YdVSq0ffF9BZPI PUWXjzlzfP8wBDIsmPFi5pWJh/4pnNsgvb4rye1eW+TnhQA= 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_tables: fix underflow in chain reference counter Set element addition error path decrements reference counter on chains twice: once on element release and again via nft_data_release(). Then, d6b478666ffa ("netfilter: nf_tables: fix underflow in object reference counter") incorrectly fixed this by removing the stateful object reference count decrement. Restore the stateful object decrement as in b91d90368837 ("netfilter: nf_tables: fix leaking object reference count") and let nft_data_release() decrement the chain reference counter, so this is done only once. The Linux kernel CVE team has assigned CVE-2023-54035 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 628bd3e49cba1c066228e23d71a852c23e26da73 and fixed in 6.4.4 with commit 9c959671abc7d4ffdf34eed10c64492d43cb6a3c Issue introduced in 6.4 with commit 628bd3e49cba1c066228e23d71a852c23e26da73 and fixed in 6.5 with commit b389139f12f287b8ed2e2628b72df89a081f0b59 Issue introduced in 4.19.316 with commit bc9f791d2593f17e39f87c6e2b3a36549a3705b1 Issue introduced in 5.4.262 with commit 3c7ec098e3b588434a8b07ea9b5b36f04cef1f50 Issue introduced in 5.10.188 with commit a136b7942ad2a50de708f76ea299ccb45ac7a7f9 Issue introduced in 5.15.121 with commit 25aa2ad37c2162be1c0bc4fe6397f7e4c13f00f8 Issue introduced in 6.1.36 with commit d60be2da67d172aecf866302c91ea11533eca4d9 Issue introduced in 6.3.10 with commit dc7cdf8cbcbf8b13de1df93f356ec04cdeef5c41 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-2023-54035 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/b068314fd8ce751a7f906e55bb90f3551815f1a0 https://git.kernel.org/stable/c/9c959671abc7d4ffdf34eed10c64492d43cb6a3c https://git.kernel.org/stable/c/b389139f12f287b8ed2e2628b72df89a081f0b59