Bug 1961300 (CVE-2021-33033)

Summary: CVE-2021-33033 kernel: use-after-free in cipso_v4_genopt in net/ipv4/cipso_ipv4.c
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, adscvr, airlied, alciregi, allarkin, atenart, bdettelb, bhu, blc, bmasney, brdeoliv, bskeggs, chwhite, crwood, dhoward, dvlasenk, fhrbata, fpacheco, hdegoede, hkrzesin, jarodwilson, jeremy, jforbes, jglisse, jlelli, jonathan, josef, jshortt, jstancek, jwboyer, kcarcia, kernel-maint, kernel-mgr, lgoncalv, linville, masami256, mchehab, mlangsdo, nmurray, ptalbert, qzhao, rvrbovsk, steved, tomckay, walters, wcosta, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Kernel 5.12 Doc Type: If docs needed, set a value
Doc Text:
A flaw use-after-free in the Linux kernel CIPSO network packet labeling protocol functionality was found in the way user open local network connection with the usage of the security labeling that is IP option number 134. A local user could use this flaw to crash the system or possibly escalate their privileges on the system.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-21 03:54:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1966980, 1961301, 1967720, 1967721, 1967722, 1967723, 1967724, 1967725    
Bug Blocks: 1961302    

Description Guilherme de Almeida Suckevicz 2021-05-17 16:31:57 UTC
The Linux kernel before 5.11.14 has a use-after-free in cipso_v4_genopt in net/ipv4/cipso_ipv4.c because the CIPSO and CALIPSO refcounting for the DOI definitions is mishandled. This leads to writing an arbitrary value.


Upstream patches:

Comment 1 Guilherme de Almeida Suckevicz 2021-05-17 16:32:34 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1961301]

Comment 2 Justin M. Forbes 2021-05-17 20:31:42 UTC
This was fixed for Fedora users with the 5.11.14 stable kernel updates.

Comment 28 errata-xmlrpc 2021-07-21 01:07:49 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2021:2725 https://access.redhat.com/errata/RHSA-2021:2725

Comment 29 errata-xmlrpc 2021-07-21 01:08:23 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2021:2726 https://access.redhat.com/errata/RHSA-2021:2726

Comment 30 Product Security DevOps Team 2021-07-21 03:54:44 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):