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 D1E5323EA83 for ; Sat, 28 Mar 2026 07:16:27 +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=1774682187; cv=none; b=OOVpZqQXN/VS2PsW0YBaQmEjMjNzX5C4wsjkSzxJNhMPybMTYqhfWpj+9InYbJUl9GxeAJ9bf0MHw+BYJd8Gw6sZlGUduUvVzye2cWZenv6FqerbquqDQ5zYeB+T5hcgkemIvgPQU0W74kSu2b9WkX+hPeFgBc0tw3FWoNosPUs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774682187; c=relaxed/simple; bh=C3F4A6D7dDu5rzszH+C9LpKml+7HMD1na/8D/VoQWwY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=hT2fJ2g2+XhxpUpA2zAviewROovqs5dlw3aCrX1XZr4SwdkZz+3PqzclNrH56UX/l4sxnrn5Qk3dvK21W9n2pGwhIaD1ajGm9fofpjn7oe9Qf7SgAy3MZ1GR1ChYfsn+Imlib2Viu4HTSiDyfW6YDdeUvtG4xzRtArrLwOJVrKM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rUHcsNKw; 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="rUHcsNKw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED606C4CEF7; Sat, 28 Mar 2026 07:16:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774682187; bh=C3F4A6D7dDu5rzszH+C9LpKml+7HMD1na/8D/VoQWwY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=rUHcsNKwASrxm6pd9cKoxFBo+Cmlyg0IT8MQlLuld/sIBkU85JBIVupr9WjxO6rNH g2sr9GFQAmmAe1aBkCcc+mK2fGhVXt8VfCCTa+GP9TBsLh52q3QHgV+hgpePkQm6A+ tgoHBMXOtw9D+hV480Tq7l7yC3RlThgn3lWGAQe4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23399: nf_tables: nft_dynset: fix possible stateful expression memleak in error path Date: Sat, 28 Mar 2026 08:16:20 +0100 Message-ID: <2026032820-CVE-2026-23399-60d0@gregkh> X-Mailer: git-send-email 2.53.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=3188; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NvyWT7crk+tLFSmUL9WQxYk5c0SGEXPma8OVzU9k8/s=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnHG1ycGVTqlL55SS6+O1/BdarNy8Z7hdInj15oZMruf XlQQ1C5I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZS/YthwWHXb4pTfdazCFwI nyG4t2Zmh1ETB8M8q8OMEzZO+5Rs2F8cMrdfRGnpg9LlAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: nf_tables: nft_dynset: fix possible stateful expression memleak in error path If cloning the second stateful expression in the element via GFP_ATOMIC fails, then the first stateful expression remains in place without being released.   unreferenced object (percpu) 0x607b97e9cab8 (size 16):     comm "softirq", pid 0, jiffies 4294931867     hex dump (first 16 bytes on cpu 3):       00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00     backtrace (crc 0):       pcpu_alloc_noprof+0x453/0xd80       nft_counter_clone+0x9c/0x190 [nf_tables]       nft_expr_clone+0x8f/0x1b0 [nf_tables]       nft_dynset_new+0x2cb/0x5f0 [nf_tables]       nft_rhash_update+0x236/0x11c0 [nf_tables]       nft_dynset_eval+0x11f/0x670 [nf_tables]       nft_do_chain+0x253/0x1700 [nf_tables]       nft_do_chain_ipv4+0x18d/0x270 [nf_tables]       nf_hook_slow+0xaa/0x1e0       ip_local_deliver+0x209/0x330 The Linux kernel CVE team has assigned CVE-2026-23399 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 563125a73ac30d7036ae69ca35c40500562c1de4 and fixed in 6.12.78 with commit d1354873cbe3b344899c4311ac05897fd83e3f21 Issue introduced in 5.11 with commit 563125a73ac30d7036ae69ca35c40500562c1de4 and fixed in 6.18.20 with commit 31641c682db73353e4647e40735c7f2a75ff58ef Issue introduced in 5.11 with commit 563125a73ac30d7036ae69ca35c40500562c1de4 and fixed in 6.19.10 with commit c88a9fd26cee365bec932196f76175772a941cca Issue introduced in 5.11 with commit 563125a73ac30d7036ae69ca35c40500562c1de4 and fixed in 7.0-rc5 with commit 0548a13b5a145b16e4da0628b5936baf35f51b43 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-23399 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 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/d1354873cbe3b344899c4311ac05897fd83e3f21 https://git.kernel.org/stable/c/31641c682db73353e4647e40735c7f2a75ff58ef https://git.kernel.org/stable/c/c88a9fd26cee365bec932196f76175772a941cca https://git.kernel.org/stable/c/0548a13b5a145b16e4da0628b5936baf35f51b43