Bug 2215784 (CVE-2023-3301)

Summary: CVE-2023-3301 QEMU: net: triggerable assertion due to race condition in hot-unplug
Product: [Other] Security Response Reporter: Mauro Matteo Cascella <mcascell>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: ddepaula, eglynn, jen, jferlan, jjoyce, jmaloy, jschluet, knoel, lhh, mburns, mgarciac, mkenneth, mrezanin, mst, pbonzini, pgrist, security-response-team, virt-maint, ymankad
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: qemu 8.1.0-rc0 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in QEMU. The async nature of hot-unplug enables a race scenario where the net device backend is cleared before the virtio-net pci frontend has been unplugged. A malicious guest could use this time window to trigger an assertion and cause a denial of service.
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: 2215786, 2215787, 2215788, 2228125    
Bug Blocks: 2192993    

Description Mauro Matteo Cascella 2023-06-18 17:02:39 UTC
The async nature of the hot-unplug enables an easy to reproduce race scenario where the net device backend is cleared before the virtio-net pci frontend has been unplugged (or the ACPI unplug has been acked by the guest?). The guest can use this time window to, at least, trigger an assertion.

Comment 3 Mauro Matteo Cascella 2023-08-01 13:09:41 UTC
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 2228125]

Comment 4 Mauro Matteo Cascella 2023-08-01 13:13:01 UTC
Upstream fix:
https://github.com/qemu/qemu/commit/a0d7215e339b61c7d7a7b3fcf754954d80d93eb8

Comment 6 errata-xmlrpc 2023-11-14 15:18:19 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:6980 https://access.redhat.com/errata/RHSA-2023:6980