CVE-2026-23231: netfilter: nf_tables: fix use-after-free in nf_tables_addchain()

Published Mar 4, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

netfilter: nftables: fix use-after-free in nftablesaddchain()

nftablesaddchain() publishes the chain to table->chains via listaddtailrcu() (in nftchainadd()) before registering hooks. If nftablesregisterhook() then fails, the error path calls nftchaindel() (listdelrcu()) followed by nftableschaindestroy() with no RCU grace period in between.

This creates two use-after-free conditions:

1) Control-plane: nftablesdumpchains() traverses table->chains under rcureadlock(). A concurrent dump can still be walking the chain when the error path frees it.

2) Packet path: for NFPROTOINET, nfregisternethook() briefly installs the IPv4 hook before IPv6 registration fails. Packets entering nftdochain() via the transient IPv4 hook can still be dereferencing chain->blobgenX when the error path frees the chain.

Add synchronizercu() between nftchaindel() and the chain destroy so that all RCU readers -- both dump threads and in-flight packet evaluation -- have finished before the chain is freed.

Affected Software

9 affected componentsFixes available
linux_kernel
Microsoft azl3 kernel 6.6.126.1-1
Linux Linux kernel>=3.16<6.1.165
Linux Linux kernel>=6.2<6.6.128
Linux Linux kernel>=6.7<6.12.75
Linux Linux kernel>=6.13<6.18.14
Linux Linux kernel>=6.19<6.19.4
debian/linux<=5.10.223-1, <=5.10.251-5
6.1.170-36.1.172-16.12.86-16.12.88-17.0.7-1
debian/linux-6.1
6.1.172-1~deb11u1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.170-3Fixed in 6.1.172-1Fixed in 6.12.86-1Fixed in 6.12.88-1Fixed in 7.0.7-1
  2. Upgrade

    Upgrade debian/linux-6.1 to a version that resolves this vulnerability.

    Fixed in 6.1.172-1~deb11u1
  3. Compensating control

    In kernel code, add synchronize_rcu() between nft_chain_del() (list_del_rcu()) and the chain destroy (nf_tables_chain_destroy()) so all RCU readers (dump threads and in-flight packet evaluation) finish before the chain is freed.

Event History

Mar 4, 2026
CVE Published
via MITRE·12:58 PM
Data Sourced
via MITRE·12:58 PM
DescriptionSeverity
Data Sourced
via NVD·01:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·02:01 PM
DescriptionSeverityAffected Software
Mar 5, 2026
Data Sourced
via Microsoft·09:04 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·09:04 AM
DescriptionSeverity
May 4, 2026
Exploit Published
via ExploitDB·12:00 AM
Known Exploited
04:44 PM
May 18, 2026
Data Sourced
via Debian·04:11 AM
DescriptionAffected Software
May 20, 2026
Data Sourced
via Ubuntu·04:11 AM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-23231?

CVE-2026-23231 is classified as a high severity vulnerability due to the potential for use-after-free exploits in the Linux kernel.

2

How do I fix CVE-2026-23231?

To fix CVE-2026-23231, update the Linux kernel to the latest patched version provided by your distribution.

3

What systems are affected by CVE-2026-23231?

CVE-2026-23231 affects systems running vulnerable versions of the Linux kernel with netfilter's nf_tables feature.

4

What are the risks associated with CVE-2026-23231?

The risks associated with CVE-2026-23231 include potential remote code execution or system crashes due to the use-after-free vulnerability.

5

How can I determine if my system is vulnerable to CVE-2026-23231?

You can determine if your system is vulnerable to CVE-2026-23231 by checking the kernel version and ensuring it has been updated to the latest secure release.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203