CVE-2024-0193 Kernel: netfilter: use-after-free in nft_trans_gc_catchall_sync leads to privilege escalation
A use-after-free in the Linux kernel netfilter subsystem allows local users with CAP_NET_ADMIN to escalate privileges.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-0193?
CVE-2024-0193 is a high-severity use after free vulnerability in Linux kernel, published on 2 Jan 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A use-after-free flaw was found in the netfilter subsystem of the Linux kernel. If the catchall element is garbage-collected when the pipapo set is removed, the element can be deactivated twice. This can cause a use-after-free issue on an NFT_CHAIN object or NFT_OBJECT object, allowing a local unprivileged user with CAP_NET_ADMIN capability to escalate their privileges on the system.
Weakness: CWE-416
Which versions are affected by CVE-2024-0193?
It affects 22 products.
Products include Linux kernel, Redhat Codeready Linux Builder, Redhat Codeready Linux Builder for Eus, Redhat Codeready Linux Builder for Ibm Z Systems, Redhat Codeready Linux Builder for Ibm Z Systems Eus, Redhat Codeready Linux Builder for Power Little Endian and 16 more.
How do I fix CVE-2024-0193?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2024-0193 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-0193 exists.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-0193, CVE-2024-0228, DEBIAN-CVE-2024-0193, GHSA-52x7-wcqq-wfjp, UBUNTU-CVE-2024-0193.