Linux Kernel UAF in netfilter nft_pipapo_remove for local privilege escalation
CVE-2023-4004 Published on July 31, 2023
Kernel: netfilter: use-after-free due to improper element removal in nft_pipapo_remove()
A use-after-free flaw was found in the Linux kernel's netfilter in the way a user triggers the nft_pipapo_remove function with the element, without a NFT_SET_EXT_KEY_END. This issue could allow a local user to crash the system or potentially escalate their privileges on the system.
Vulnerability Analysis
CVE-2023-4004 is exploitable with local system access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be very high.
Timeline
Reported to Red Hat.
Made public.
Weakness Type
What is a Dangling pointer Vulnerability?
Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code.
CVE-2023-4004 has been classified to as a Dangling pointer vulnerability or weakness.
Products Associated with CVE-2023-4004
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2023-4004 are published in these products:
Affected Versions
Red Hat Enterprise Linux 8:- Version 0:4.18.0-477.27.1.rt7.290.el8_8 and below * is unaffected.
- Version 0:4.18.0-477.27.1.el8_8 and below * is unaffected.
- Version 0:4.18.0-193.119.1.el8_2 and below * is unaffected.
- Version 0:4.18.0-193.119.1.rt13.170.el8_2 and below * is unaffected.
- Version 0:4.18.0-193.119.1.el8_2 and below * is unaffected.
- Version 0:4.18.0-193.119.1.el8_2 and below * is unaffected.
- Version 0:4.18.0-305.103.1.el8_4 and below * is unaffected.
- Version 0:4.18.0-305.103.1.rt7.178.el8_4 and below * is unaffected.
- Version 0:4.18.0-305.103.1.el8_4 and below * is unaffected.
- Version 0:4.18.0-305.103.1.el8_4 and below * is unaffected.
- Version 0:4.18.0-372.75.1.el8_6 and below * is unaffected.
- Version 0:5.14.0-284.30.1.el9_2 and below * is unaffected.
- Version 0:5.14.0-284.30.1.rt14.315.el9_2 and below * is unaffected.
- Version 0:5.14.0-284.30.1.el9_2 and below * is unaffected.
- Version 0:5.14.0-70.80.1.el9_0 and below * is unaffected.
- Version 0:5.14.0-70.80.1.rt21.151.el9_0 and below * is unaffected.
- Version 0:4.18.0-372.75.1.el8_6 and below * is unaffected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.