Bug 2293228 (CVE-2021-47598)

Summary: CVE-2021-47598 kernel: sch_cake: do not call cake_destroy() from cake_init()
Product: [Other] Security Response Reporter: Avinash Hanwate <ahanwate>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dfreiber, drow, jburrell, vkumar, ymittal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 4.19.222, kernel 5.4.168, kernel 5.10.88, kernel 5.15.11, kernel 5.16 Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was discovered in the Linux kernel in the cake_init() function where if memory allocation fails the function calls its own cleanup function, cake_destroy(). This can lead to a use-after-free scenario because there may be other parts of code attempting to access the newly freed resources, which could result in crashes or undefined behavior.
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:    
Bug Blocks: 2293209    

Description Avinash Hanwate 2024-06-20 10:37:13 UTC
In the Linux kernel, the following vulnerability has been resolved:

sch_cake: do not call cake_destroy() from cake_init()

The Linux kernel CVE team has assigned CVE-2021-47598 to this issue.

Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024061921-CVE-2021-47598-3fad@gregkh/T