Bug 2104423 (CVE-2022-34918)

Summary: CVE-2022-34918 kernel: heap overflow in nft_set_elem_init()
Product: [Other] Security Response Reporter: Alex <allarkin>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: acaringi, adscvr, airlied, alciregi, bdettelb, bhu, bskeggs, chwhite, crwood, ddepaula, dhoward, dvlasenk, fhrbata, hdegoede, hkrzesin, hpa, jarod, jarodwilson, jburrell, jfaracco, jferlan, jforbes, jglisse, jlelli, joe.lawrence, jonathan, josef, jpoimboe, jshortt, jstancek, jwboyer, jwyatt, kcarcia, kernel-maint, kernel-mgr, kpatch-maint, lgoncalv, linville, lzampier, masami256, mchehab, nmurray, ptalbert, qzhao, rhandlin, rvrbovsk, scweaver, steved, tyberry, vkumar, walters, williams, ycote
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Linux kernel 5.19-rc6 Doc Type: If docs needed, set a value
Doc Text:
A heap buffer overflow flaw was found in the Linux kernel’s Netfilter subsystem in the way a user provides incorrect input of the NFT_DATA_VERDICT type. This flaw allows a local user to crash or potentially escalate their privileges on the system.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-05 18:34:22 UTC 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: 2104586, 2104591, 2104592, 2104593, 2104594, 2106306, 2106307    
Bug Blocks: 2104138    

Description Alex 2022-07-06 08:45:11 UTC
A heap buffer overflow vulnerability was identified within the netfilter subsystem which can be exploited to achieve privilege escalation to root. In order to trigger the issue it requires the ability to create user/net namespaces. The reason of the vulnerability is the type confusion bug in nft_set_elem_init, and it is different vulnerability than similar CVE-2022-32250.

Reference:

https://lore.kernel.org/netfilter-devel/cd9428b6-7ffb-dd22-d949-d86f4869f452@randorisec.fr/T/

Comment 1 Alex 2022-07-06 16:30:07 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2104586]

Comment 3 Justin M. Forbes 2022-07-06 18:50:11 UTC
So I guess they decided against the embargo...

Comment 4 Alex 2022-07-07 08:24:23 UTC
In reply to comment #3:
> So I guess they decided against the embargo...

If patch already public for Upstream (and both description public), then embargo doesn't make sense. First description became public by mistake and then patch became public too.

Comment 13 errata-xmlrpc 2022-09-20 12:15:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2022:6592 https://access.redhat.com/errata/RHSA-2022:6592

Comment 14 errata-xmlrpc 2022-09-20 13:36:59 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2022:6582 https://access.redhat.com/errata/RHSA-2022:6582

Comment 15 errata-xmlrpc 2022-09-20 14:19:07 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2022:6610 https://access.redhat.com/errata/RHSA-2022:6610

Comment 16 Product Security DevOps Team 2022-12-05 18:34:20 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-34918