Bug 1932827 (CVE-2021-3416)

Summary: CVE-2021-3416 QEMU: net: Infinite loop in loopback mode may lead to stack overflow
Product: [Other] Security Response Reporter: Prasad Pandit <ppandit>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: berrange, cfergeau, dbecker, gsuckevi, jen, jferlan, jforbes, jjoyce, jmaloy, jschluet, knoel, lhh, lpeer, m.a.young, mburns, mkenneth, mrezanin, mst, ondrejj, pbonzini, philmd, ribarry, rjones, robinlee.sysu, sclewis, slinaber, virt-maint, virt-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A potential stack overflow via infinite loop issue was found in various NIC emulators of QEMU. The issue occurs in loopback mode of a NIC wherein reentrant DMA checks get bypassed. A guest user/process may use this flaw to consume CPU cycles or crash the QEMU process on the host resulting in DoS scenario.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-10 19:28:14 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: 1932828, 1932829, 1932911, 1932914, 1932917, 1932919, 1985088, 1985460    
Bug Blocks: 1887771, 1932873, 1933831, 1933837    

Description Prasad Pandit 2021-02-25 11:44:06 UTC
A potential stack overflow via infinite loop issue was found in various NIC emulators of QEMU. The said issue occurs in loopback mode of a NIC wherein reentrant DMA checks get bypassed. A guest user/process may use this flaw to consume cpu cycles or crash the QEMU process on the host resulting in DoS scenario.

Upstream patch:
---------------
  -> https://lists.gnu.org/archive/html/qemu-devel/2021-02/msg07431.html

Comment 2 Prasad Pandit 2021-02-25 11:44:55 UTC
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 1932828]


Created xen tracking bugs for this issue:

Affects: fedora-all [bug 1932829]

Comment 8 Prasad Pandit 2021-02-26 14:47:31 UTC
External References:

https://www.openwall.com/lists/oss-security/2021/02/26/1

Comment 9 Mauro Matteo Cascella 2021-03-04 16:55:25 UTC
*** Bug 1933827 has been marked as a duplicate of this bug. ***

Comment 10 Mauro Matteo Cascella 2021-03-18 16:05:21 UTC
Revised patch v4 series:
https://lists.gnu.org/archive/html/qemu-devel/2021-03/msg01550.html

Comment 13 errata-xmlrpc 2021-08-10 13:50:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 14 Product Security DevOps Team 2021-08-10 19:28:14 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-2021-3416

Comment 15 errata-xmlrpc 2021-09-30 16:54:02 UTC
This issue has been addressed in the following products:

  Advanced Virtualization for RHEL 8.4.0.Z

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