Bug 2248189 (CVE-2023-5972)

Summary: CVE-2023-5972 kernel: The NFTA_INNER_NUM and NFTA_EXPR_NAME netlink attributes accessed without checking its presence in nft_inner.c
Product: [Other] Security Response Reporter: Alex <allarkin>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, allarkin, bhu, chwhite, cye, cyin, dbohanno, debarbos, dfreiber, drow, dvlasenk, ezulian, hkrzesin, jarod, jburrell, jdenham, jfaracco, jforbes, jlelli, joe.lawrence, jpoimboe, jshortt, jstancek, jwyatt, kcarcia, ldoskova, lgoncalv, lzampier, mstowell, nmurray, ptalbert, rogbas, rparrazo, rrobaina, rvrbovsk, rysulliv, scweaver, security-response-team, tglozar, tyberry, vkumar, wcosta, williams, wmealing, ycote, ykopkova, zhijwang
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A null pointer dereference flaw was found in the nft_inner.c functionality of netfilter in the Linux kernel. This issue could allow a local user to crash the system or escalate their privileges on the system.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2251249    
Bug Blocks: 2248168    

Description Alex 2023-11-06 19:19:26 UTC
Two similar flaws in the Linux Kernel found.
From v6.2-rc1 to v6.6-rc6two null pointer dereference vulnerabilities in nf_tables could happen.
The first vulnerability is in nft_inner_init() in nft_inner.c.
The NFTA_INNER_NUM netlink attribute is accessed At (0) without checking its presence before, so it may be NULL。
The second vulnerability is in nft_expr_inner_parse(), which is quite similar to the first one.
The NFTA_EXPR_NAME netlink attribute is not checked before accessing it.

Comment 2 Alex 2023-11-23 15:29:40 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2251249]

Comment 3 Justin M. Forbes 2023-11-28 18:15:30 UTC
This was fixed for Fedora with the 6.5.9 stable kernel updates.