CVE-2023-3610: Use-after-free in Linux kernel's netfilter: nf_tables component
A flaw in the Linux Kernel found. A use-after-free vulnerability in the Linux kernel's netfilter: nftables component can be exploited to achieve local privilege escalation. Flaw in the error handling of bound chains causes a use-after-free in the abort path of NFTMSGNEWRULE. The vulnerability requires CAPNETADMIN to be triggered.
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=4bedf9eee016286c835e3d8fa981ddece5338795
Other sources
A use-after-free vulnerability in the Linux kernel's netfilter: nftables component can be exploited to achieve local privilege escalation.
Flaw in the error handling of bound chains causes a use-after-free in the abort path of NFTMSGNEWRULE. The vulnerability requires CAPNETADMIN to be triggered.
We recommend upgrading past commit 4bedf9eee016286c835e3d8fa981ddece5338795.
A use-after-free vulnerability was found in the netfilter: nftables component in the Linux kernel due to a missing error handling in the abort path of NFTMSGNEWRULE. This flaw allows a local attacker with CAPNETADMIN access capability to cause a local privilege escalation problem.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:5.14.0-284.30.1.el9_2 - Upgrade
Upgrade
redhat/kernel-rtto a version that resolves this vulnerability.Fixed in 0:5.14.0-284.30.1.rt14.315.el9_2 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
redhat/Kernelto a version that resolves this vulnerability.Fixed in 6.4 - Upgrade
Upgrade
Linux kernel netfilter: nf_tables (NFT_MSG_NEWRULE abort path)to a version that resolves this vulnerability.Patch 4bedf9eee016286c835e3d8fa981ddece5338795 - Configuration
On non-containerized deployments of Red Hat Enterprise Linux 8, disable unprivileged user namespaces by setting kernel.unprivileged_userns_clone to 0 (e.g., run `sysctl -w kernel.unprivileged_userns_clone=0` and persist via `/etc/sysctl.d/99-disable-unpriv-userns.conf`).
Linux kernel sysctl kernel.unprivileged_userns_clone = 0 - Configuration
On non-containerized deployments of Red Hat Enterprise Linux 8, disable user namespaces by setting user.max_user_namespaces to 0 (e.g., `echo "user.max_user_namespaces=0" > /etc/sysctl.d/userns.conf` and apply with `sysctl -p /etc/sysctl.d/userns.conf`).
Linux kernel sysctl user.max_user_namespaces = 0 - Compensating control
Because the vulnerability can be triggered by a local attacker with CAP_NET_ADMIN, ensure CAP_NET_ADMIN is not granted to untrusted users/processes (and restrict the ability for unprivileged users to create user/net namespaces where applicable).
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2023-3610?
CVE-2023-3610 is classified as a high severity vulnerability due to its potential for local privilege escalation.
How do I fix CVE-2023-3610?
To fix CVE-2023-3610, upgrade to the kernel version 0:5.14.0-284.30.1.el9_2 or related patched versions available from your distribution's repository.
Which systems are affected by CVE-2023-3610?
CVE-2023-3610 affects various versions of the Linux kernel, particularly those between 5.9 and 6.4, including specific versions in Debian and Red Hat distributions.
What type of vulnerability is CVE-2023-3610?
CVE-2023-3610 is a use-after-free vulnerability located in the netfilter: nf_tables component of the Linux kernel.
Can CVE-2023-3610 be exploited remotely?
No, CVE-2023-3610 requires local access to the system, as it is a local privilege escalation vulnerability.