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 5C80126ED3E for ; Wed, 22 Oct 2025 13:27:24 +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=1761139645; cv=none; b=C0/FwbOyiiWZCjkRVXZLBTcKZ7QG3OWoZ3fpTTWICmEljExEo5b3dluJwidl2GKcBfce50EAIw1tt5oAC8lkh/d+fEfH3GuUrfSAn6d1mqh1vngPr8s/c9xwYPkdRYu7ExooFQVu1u6vZTMFIo7kcs7SDguOgIFmKl6aH0KQ2lU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761139645; c=relaxed/simple; bh=CJ4AjG5OMYsXZziQmbgt5Ij6eLoMhqTEPpRZQ9mLsc0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mvASxslXJSz/XmTkB0kwldHXOV37SVcWgbMdTwOh0LeB6PJCr/T4ddXpvzn9cX8xh/Nh3VN1nzyXyVa/EroakK3snhQ+rRgfOJ5wa2J6i7EcDdiNVturL+CghhhoTqvGstTWkjNGuxcCgOC2dEBhiXEFja49WnrBIntcGIXWpSI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LPM3wWsu; 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="LPM3wWsu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 793A6C4CEF5; Wed, 22 Oct 2025 13:27:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761139644; bh=CJ4AjG5OMYsXZziQmbgt5Ij6eLoMhqTEPpRZQ9mLsc0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=LPM3wWsuEWCeVoo05xPzAPcwsjYwWOIO9KKEMdzWQvUVl7sCQzWfKJuhdPVhYuV8X adygP72oODE75hzY8x3Gn7aSZGbjLmT9MmRoM170QKX4fNCfcicBcDd9ECDjiwyX7X 1pjXeXSn0KtyC3eL6ZpGA8bIb/bkD/sYFOh1UQRY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53701: netfilter: nf_tables: deactivate anonymous set from preparation phase Date: Wed, 22 Oct 2025 15:24:40 +0200 Message-ID: <2025102211-CVE-2023-53701-fb7f@gregkh> X-Mailer: git-send-email 2.51.1 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=2899; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uARNtSGa5+a2Wf0SGEG/wwVZQ7jkD1YWQ5wWGHLOx5U=; b=kA0DAAIRMUfUDdst+ykByyZiAGj42vugWVMh0yiVzMLkpaEQEVYoamQ62kwMODuNrEZwwRmbQ IhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmj42vsACgkQMUfUDdst+ynBhACeIRHh WLLczrx5zfZbatmD5xL2Q1AAn1t5vXywWINMFi4eJ79Y+ZGsu9Gv 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: deactivate anonymous set from preparation phase [ backport for 4.14 of c1592a89942e9678f7d9c8030efa777c0d57edab ] Toggle deleted anonymous sets as inactive in the next generation, so users cannot perform any update on it. Clear the generation bitmask in case the transaction is aborted. The following KASAN splat shows a set element deletion for a bound anonymous set that has been already removed in the same transaction. [ 64.921510] ================================================================== [ 64.923123] BUG: KASAN: wild-memory-access in nf_tables_commit+0xa24/0x1490 [nf_tables] [ 64.924745] Write of size 8 at addr dead000000000122 by task test/890 [ 64.927903] CPU: 3 PID: 890 Comm: test Not tainted 6.3.0+ #253 [ 64.931120] Call Trace: [ 64.932699] [ 64.934292] dump_stack_lvl+0x33/0x50 [ 64.935908] ? nf_tables_commit+0xa24/0x1490 [nf_tables] [ 64.937551] kasan_report+0xda/0x120 [ 64.939186] ? nf_tables_commit+0xa24/0x1490 [nf_tables] [ 64.940814] nf_tables_commit+0xa24/0x1490 [nf_tables] [ 64.942452] ? __kasan_slab_alloc+0x2d/0x60 [ 64.944070] ? nf_tables_setelem_notify+0x190/0x190 [nf_tables] [ 64.945710] ? kasan_set_track+0x21/0x30 [ 64.947323] nfnetlink_rcv_batch+0x709/0xd90 [nfnetlink] [ 64.948898] ? nfnetlink_rcv_msg+0x480/0x480 [nfnetlink] The Linux kernel CVE team has assigned CVE-2023-53701 to this issue. Affected and fixed versions =========================== Fixed in 4.14.315 with commit 86572872505023e3bb461b271c2f25fdaa3dfcd7 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-53701 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_tables.h net/netfilter/nf_tables_api.c net/netfilter/nft_dynset.c net/netfilter/nft_lookup.c net/netfilter/nft_objref.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/86572872505023e3bb461b271c2f25fdaa3dfcd7