Bug 2220893 (CVE-2023-31248, ZDI-CAN-20717) - CVE-2023-31248 kernel: nf_tables: use-after-free in nft_chain_lookup_byid()
Summary: CVE-2023-31248 kernel: nf_tables: use-after-free in nft_chain_lookup_byid()
Keywords:
Status: NEW
Alias: CVE-2023-31248, ZDI-CAN-20717
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2221049 2221779 2221780 2221781 2221782 2221783 2221784 2221785 2221786 2221048 2221778
Blocks: 2220897
TreeView+ depends on / blocked
 
Reported: 2023-07-06 13:01 UTC by TEJ RATHI
Modified: 2023-07-11 14:41 UTC (History)
49 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A use-after-free flaw was found in the Linux kernel's Netfilter module in net/netfilter/nf_tables_api.c in nft_chain_lookup_byid. This flaw allows a local attacker to cause a local privilege escalation issue due to a missing cleanup.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description TEJ RATHI 2023-07-06 13:01:35 UTC
Linux Kernel nftables Use-After-Free Local Privilege Escalation Vulnerability; `nft_chain_lookup_byid()` failed to check whether a chain was active and CAP_NET_ADMIN is in any user or network namespace

https://lore.kernel.org/netfilter-devel/20230705121627.GC19489@breakpoint.cc/T/
https://www.openwall.com/lists/oss-security/2023/07/05/2
http://www.openwall.com/lists/oss-security/2023/07/05/2

Comment 5 Rohit Keshri 2023-07-10 18:32:27 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2221778]


Note You need to log in before you can comment on or make changes to this bug.