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: 2221048 2221049 2221778 2221779 2221780 2221781 2221782 2221783 2221784 2221785 2221786
Blocks: 2220897
TreeView+ depends on / blocked
 
Reported: 2023-07-06 13:01 UTC by TEJ RATHI
Modified: 2024-10-12 08:27 UTC (History)
48 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)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2023:5162 0 None None None 2023-09-14 08:11:44 UTC
Red Hat Product Errata RHSA-2023:5069 0 None None None 2023-09-12 10:14:14 UTC
Red Hat Product Errata RHSA-2023:5091 0 None None None 2023-09-12 09:50:51 UTC
Red Hat Product Errata RHSA-2023:5093 0 None None None 2023-09-12 09:52:20 UTC
Red Hat Product Errata RHSA-2023:5575 0 None None None 2023-10-10 10:13:35 UTC
Red Hat Product Errata RHSA-2023:5603 0 None None None 2023-10-10 15:25:11 UTC
Red Hat Product Errata RHSA-2023:5604 0 None None None 2023-10-10 15:33:17 UTC

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]

Comment 12 errata-xmlrpc 2023-09-12 09:50:47 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:5091 https://access.redhat.com/errata/RHSA-2023:5091

Comment 13 errata-xmlrpc 2023-09-12 09:52:16 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:5093 https://access.redhat.com/errata/RHSA-2023:5093

Comment 14 errata-xmlrpc 2023-09-12 10:14:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:5069 https://access.redhat.com/errata/RHSA-2023:5069

Comment 15 errata-xmlrpc 2023-10-10 10:13:31 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Extended Update Support

Via RHSA-2023:5575 https://access.redhat.com/errata/RHSA-2023:5575

Comment 16 errata-xmlrpc 2023-10-10 15:25:08 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Extended Update Support

Via RHSA-2023:5603 https://access.redhat.com/errata/RHSA-2023:5603

Comment 17 errata-xmlrpc 2023-10-10 15:33:13 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Extended Update Support

Via RHSA-2023:5604 https://access.redhat.com/errata/RHSA-2023:5604


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