EulerOS 2.0 SP8 : qemu-kvm (EulerOS-SA-2019-1815)

high Nessus Plugin ID 128184

Synopsis

The remote EulerOS host is missing multiple security updates.

Description

According to the versions of the qemu-kvm packages installed, the EulerOS installation on the remote host is affected by the following vulnerabilities :

- A flaw was found in QEMU's Media Transfer Protocol (MTP) where a path traversal in the in usb_mtp_write_data function in hw/usb/dev-mtp.c due to an improper file name sanitization. Reading and writing of arbitrary files is allowed when a guest device is mounted which may lead to a denial of service scenario or possibly lead to code execution on the host.(CVE-2018-16867)

- A flaw was found in QEMU's Media Transfer Protocol (MTP). The code opening files in usb_mtp_get_object and usb_mtp_get_partial_object and directories in usb_mtp_object_readdir doesn't consider that the underlying filesystem may have changed since the time lstat(2) was called in usb_mtp_object_alloc, a classical TOCTTOU problem. An attacker with write access to the host filesystem, shared with a guest, can use this property to navigate the host filesystem in the context of the QEMU process and read any file the QEMU process has access to. Access to the filesystem may be local or via a network share protocol such as CIFS.(CVE-2018-16872)

- hw/9pfs/cofile.c and hw/9pfs/9p.c in QEMU can modify an fid path while it is being accessed by a second thread, leading to (for example) a use-after-free outcome.(CVE-2018-19364)

- v9fs_wstat in hw/9pfs/9p.c in QEMU allows guest OS users to cause a denial of service (crash) because of a race condition during file renaming.(CVE-2018-19489)

- hw/rdma/vmw/pvrdma_main.c in QEMU does not implement a read operation (such as uar_read by analogy to uar_write), which allows attackers to cause a denial of service (NULL pointer dereference).(CVE-2018-20191)

- QEMU, through version 2.10 and through version 3.1.0, is vulnerable to an out-of-bounds read of up to 128 bytes in the hw/i2c/i2c-ddc.c:i2c_ddc() function. A local attacker with permission to execute i2c commands could exploit this to read stack memory of the qemu process on the host.(CVE-2019-3812)

- In QEMU 3.0.0, tcp_emu in slirp/tcp_subr.c has a heap-based buffer overflow.(CVE-2019-6778)

Note that Tenable Network Security has extracted the preceding description block directly from the EulerOS security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.

Solution

Update the affected qemu-kvm packages.

See Also

http://www.nessus.org/u?9661b617

Plugin Details

Severity: High

ID: 128184

File Name: EulerOS_SA-2019-1815.nasl

Version: 1.5

Type: local

Published: 8/27/2019

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 4.6

Temporal Score: 3.4

Vector: CVSS2#AV:L/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2019-6778

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.8

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:huawei:euleros:qemu-common, p-cpe:/a:huawei:euleros:qemu-img, p-cpe:/a:huawei:euleros:qemu-kvm, p-cpe:/a:huawei:euleros:qemu-system-aarch64, p-cpe:/a:huawei:euleros:qemu-system-aarch64-core, p-cpe:/a:huawei:euleros:qemu-ui-curses, p-cpe:/a:huawei:euleros:qemu-ui-gtk, p-cpe:/a:huawei:euleros:qemu-ui-sdl, cpe:/o:huawei:euleros:2.0, p-cpe:/a:huawei:euleros:qemu-audio-alsa, p-cpe:/a:huawei:euleros:qemu-audio-oss, p-cpe:/a:huawei:euleros:qemu-audio-pa, p-cpe:/a:huawei:euleros:qemu-audio-sdl, p-cpe:/a:huawei:euleros:qemu-block-curl, p-cpe:/a:huawei:euleros:qemu-block-dmg, p-cpe:/a:huawei:euleros:qemu-block-gluster, p-cpe:/a:huawei:euleros:qemu-block-iscsi, p-cpe:/a:huawei:euleros:qemu-block-nfs, p-cpe:/a:huawei:euleros:qemu-block-rbd, p-cpe:/a:huawei:euleros:qemu-block-ssh

Required KB Items: Host/local_checks_enabled, Host/EulerOS/release, Host/EulerOS/rpm-list, Host/EulerOS/sp

Excluded KB Items: Host/EulerOS/uvp_version

Exploit Ease: No known exploits are available

Patch Publication Date: 8/28/2019

Reference Information

CVE: CVE-2018-16867, CVE-2018-16872, CVE-2018-19364, CVE-2018-19489, CVE-2018-20191, CVE-2019-3812, CVE-2019-6778