Bug 1636712 (CVE-2018-17958)

Summary: CVE-2018-17958 QEMU: rtl8139: integer overflow leads to buffer overflow
Product: [Other] Security Response Reporter: Prasad Pandit <ppandit>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: amit, apevec, areis, berrange, cfergeau, chrisw, dwmw2, itamar, jasowang, jen, jforbes, jjoyce, jschluet, kbasil, knoel, lhh, lpeer, markmc, m.a.young, mburns, mkenneth, mrezanin, mst, pbonzini, ppandit, rbalakri, rbryant, rjones, robinlee.sysu, sclewis, slinaber, tdecacqu, tohidi.arash, virt-maint, virt-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
An integer overflow issue was found in the RTL8139 NIC emulation in QEMU. It could occur while receiving packets over the network if the size value is greater than INT_MAX. Such overflow would lead to stack buffer overflow issue. A user inside guest could use this flaw to crash the QEMU process, resulting in DoS scenario.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-09 01:18:18 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: 1636726, 1636727, 1636728, 1636729, 1636730, 1636731, 1636732, 1636733, 1636734, 1636735, 1636736, 1636738, 1636780    
Bug Blocks: 1581014    

Description Prasad Pandit 2018-10-07 07:06:17 UTC
Qemu emulator built with the RTL8139 NIC emulation support is vulnerable to an integer overflow, which could lead to buffer overflow issue. It could occur when receiving packets over the network.

A user inside guest could use this flaw to crash the Qemu process resulting in DoS.

Upstream fix:
-------------
  -> https://lists.gnu.org/archive/html/qemu-devel/2018-09/msg03269.html

Reference:
----------
  -> https://www.openwall.com/lists/oss-security/2018/10/08/1

Comment 1 Prasad Pandit 2018-10-07 07:06:41 UTC
Acknowledgments:

Name: Daniel Shapira (Twistlock), Arash Tohidi

Comment 2 Prasad Pandit 2018-10-07 09:30:05 UTC
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 1636729]


Created xen tracking bugs for this issue:

Affects: fedora-all [bug 1636730]

Comment 7 errata-xmlrpc 2019-08-09 00:48:26 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 10.0 (Newton)
  Red Hat OpenStack Platform 13.0 (Queens)
  Red Hat OpenStack Platform 14.0 (Rocky)

Via RHSA-2019:2425 https://access.redhat.com/errata/RHSA-2019:2425

Comment 8 Product Security DevOps Team 2019-08-09 01:18:18 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-2018-17958

Comment 9 errata-xmlrpc 2019-08-22 09:18:25 UTC
This issue has been addressed in the following products:

  Red Hat Virtualization 4 for Red Hat Enterprise Linux 7
  Red Hat Virtualization Engine 4.3

Via RHSA-2019:2553 https://access.redhat.com/errata/RHSA-2019:2553