Bug 2267175 (CVE-2021-47060)

Summary: CVE-2021-47060 kernel: KVM: use-after-free while looking for coalesced MMIO zones if the bus is destroyed
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: acaringi, allarkin, aquini, bhu, chwhite, dbohanno, debarbos, dfreiber, drow, dvlasenk, esandeen, ezulian, hkrzesin, jarod, jburrell, jfaracco, jforbes, jlelli, joe.lawrence, jshortt, jstancek, jwyatt, ldoskova, lgoncalv, mleitner, mmilgram, mstowell, nmurray, ptalbert, rparrazo, rrobaina, rvrbovsk, scweaver, sidakwo, sukulkar, tglozar, vkumar, wcosta, williams, wmealing, ycote, ykopkova
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 5.4.119, kernel 5.10.37, kernel 5.11.21, kernel 5.12.4, kernel 5.13 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel’s Kernel-based virtual machine (KVM) subsystem. The issue arises when looking for coalesced Memory-Mapped I/O (MMIO) zones if the bus is destroyed. The vulnerability is due to a failure in memory allocation for a new instance of the bus during the unregistration process. If the allocation fails, the system continues to walk through coalesced MMIO zones. This issue leads to a use-after-free scenario as the bus and devices are destroyed without notifying the caller.
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: 2267176    
Bug Blocks: 2267188    

Description Avinash Hanwate 2024-03-01 05:00:18 UTC
In the Linux kernel, the following vulnerability has been resolved:

KVM: Stop looking for coalesced MMIO zones if the bus is destroyed

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

Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024022952-CVE-2021-47060-d2ce@gregkh/T/#u

Comment 1 Avinash Hanwate 2024-03-01 05:00:55 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2267176]

Comment 2 Justin M. Forbes 2024-03-01 20:50:41 UTC
This was fixed for Fedora with the 5.12.4 stable kernel updates.

Comment 4 Alex 2024-06-09 12:54:25 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2021-47060 is: 	SKIP	No affected files built, so skip this CVE	NO			-	-	unknown (where first YES/NO value means if related sources built).