Integer Overflow or Wraparound Affecting qemu package, versions <2.0.0+dfsg-2ubuntu1.44


Severity

Recommended
medium

Based on Ubuntu security rating

    Threat Intelligence

    Exploit Maturity
    Mature
    EPSS
    14.12% (96th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-UBUNTU1404-QEMU-427563
  • published 21 Jun 2018
  • disclosed 21 Jun 2018

How to fix?

Upgrade Ubuntu:14.04 qemu to version 2.0.0+dfsg-2ubuntu1.44 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream qemu package and not the qemu package as distributed by Ubuntu. See How to fix? for Ubuntu:14.04 relevant fixed versions and status.

qmp_guest_file_read in qga/commands-posix.c and qga/commands-win32.c in qemu-ga (aka QEMU Guest Agent) in QEMU 2.12.50 has an integer overflow causing a g_malloc0() call to trigger a segmentation fault when trying to allocate a large memory chunk. The vulnerability can be exploited by sending a crafted QMP command (including guest-file-read with a large count value) to the agent via the listening socket.

CVSS Scores

version 3.1
Expand this section

NVD

7.5 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    None
  • Availability (A)
    High