CVE-2023-3390: Use-after-free in Linux kernel's netfilter subsystem

Published Jun 7, 2023
·
Updated

A flaw in the Linux Kernel found in the Netfilter nf_tables (net/netfilter/nf_tables_api.c). It can lead to use after free vulnerability in nftables when handling sets that are both named and anonymous in batch requests. Nftables allows creating a named set that can be also marked as anonymous by setting the NFT_SET_ANONYMOUS flag. When a rule referencing this malformed set is destroyed, the set gets destroyed as well, as the set is marked anonymous. It is possible to get nftables to destroy the rule, by mangling certain bytes within the rule's bytecode. As this is a named set, the set can be referenced in a different rule at which point it triggers a use after free. The caveat is that all of this needs to be performed in a batch transaction. This is because the reference of any set created in a batch transaction remains in the transactions list even after the set is destroyed. Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1240eb93f0616b21c675416516ff3d74798fdc97

Affected Software

16 affected componentsFixes available
Linux Linux kernel>=3.16<6.4
Linux Linux kernel>=3.16<4.14.322
Linux Linux kernel>=4.15<4.19.291
Linux Linux kernel>=4.20<5.4.251
Linux Linux kernel>=5.5<5.10.188
Linux Linux kernel>=5.11<5.15.118
Linux Linux kernel>=5.16<6.1.35
Linux Linux kernel>=6.2<6.3.9
NetApp H300s
NetApp H410c
NetApp H410s
NetApp H500s
NetApp H700s
Microsoft cbl2 kernel 5.15.122.1-2
redhat/kernel<6.4
6.4
debian/linux
5.10.223-15.10.251-56.1.170-36.1.172-16.12.86-16.12.88-17.0.7-1

Remediation

Mitigation

If not needed, disable the ability for unprivileged users to create namespaces. To do this temporarily, do: sudo sysctl -w kernel.unprivileged_userns_clone=0 To disable across reboots, do: echo kernel.unprivileged_userns_clone=0 | \ sudo tee /etc/sysctl.d/99-disable-unpriv-userns.conf

Event History

Jun 7, 2023
Data Sourced
via Red Hat·04:37 PM
DescriptionSeverityAffected Software
Jun 28, 2023
CVE Published
via MITRE·08:02 PM
Data Sourced
via MITRE·08:02 PM
DescriptionSeverityWeakness
Aug 25, 2023
Data Sourced
12:00 AM
SeverityWeakness
Feb 5, 2024
Data Sourced
via Launchpad·12:28 AM
Description
Oct 1, 2025
Data Sourced
via Microsoft·11:11 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·11:11 PM
Affected Software
Updated
via Microsoft·11:11 PM
DescriptionSeverity
May 13, 2026
Data Sourced
via Ubuntu·04:07 AM
RemedyDescriptionSeverityAffected Software
May 17, 2026
Data Sourced
via Debian·04:11 AM
DescriptionAffected 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-2023-3390?

CVE-2023-3390 has a medium severity rating, indicating a significant impact on affected systems.

2

How do I fix CVE-2023-3390?

To fix CVE-2023-3390, update your Linux Kernel to the latest versions specified in your distribution's release notes.

3

Which systems are affected by CVE-2023-3390?

CVE-2023-3390 affects various versions of the Linux Kernel, specifically those ranging from 3.16 to 6.4.

4

What type of vulnerability is CVE-2023-3390?

CVE-2023-3390 is a use-after-free vulnerability specifically occurring in the Netfilter nf_tables implementation.

5

Can CVE-2023-3390 lead to remote code execution?

Yes, CVE-2023-3390 could potentially allow an attacker to execute arbitrary code on affected systems.

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