Bug 1842496 (CVE-2020-13659)

Summary: CVE-2020-13659 QEMU: exec: address_space_map returns NULL without setting length to zero may lead to DoS
Product: [Other] Security Response Reporter: Prasad Pandit <ppandit>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: amit, berrange, cfergeau, dwmw2, itamar, jen, jferlan, jforbes, jjoyce, jmaloy, jschluet, knoel, lhh, lpeer, m.a.young, mburns, mdeng, mkenneth, mrezanin, mst, pbonzini, ribarry, rjones, robinlee.sysu, sclewis, slinaber, virt-maint, virt-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: QEMU 5.0.1 Doc Type: If docs needed, set a value
Doc Text:
A NULL pointer dereference flaw was found in the MegaRAID SAS 8708EM2 emulator of the QEMU. This issue occurs because the address_space_map() API while mapping physical memory into the host's virtual address space, may return NULL without setting the length parameter to zero (0). This flaw allows a guest user or process to crash the QEMU process on the host resulting in a denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-15 11:33:03 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: 1842498, 1842501, 1842502, 1842503, 1842504, 1842506, 1842507, 1910692    
Bug Blocks: 1772801    

Description Prasad Pandit 2020-06-01 12:04:34 UTC
A NULL pointer dereference issue was found in the MegaRAID SAS 8708EM2 emulatior of the QEMU. This issue occurs because the address_space_map() API while mapping physical memory into host's virtual address space may return NULL, without setting the length parameter to zero(0). A guest user/process may use this flaw to crash the QEMU process on the host resulting in DoS scenario.

Upstream patch:
---------------
  -> https://lists.gnu.org/archive/html/qemu-devel/2020-05/msg07313.html

Reference:
----------
  -> https://bugs.launchpad.net/qemu/+bug/1878259
  -> https://www.openwall.com/lists/oss-security/2020/06/01/3

Comment 1 Prasad Pandit 2020-06-01 12:04:47 UTC
Acknowledgments:

Name: Alexander Bulekov

Comment 2 Prasad Pandit 2020-06-01 12:06:11 UTC
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 1842498]

Comment 7 Nick Tait 2021-03-02 20:18:05 UTC
Statement:

In Red Hat OpenStack Platform, because the flaw has a lower impact and the fix would require a substantial amount of development, no update will be provided at this time for the RHOSP qemu-kvm-rhev package.