Vulnerability Name:

CVE-2021-4206 (CCN-225639)

Assigned:2022-03-28
Published:2022-03-28
Updated:2022-09-23
Summary:A flaw was found in the QXL display device emulation in QEMU. An integer overflow in the cursor_alloc() function can lead to the allocation of a small cursor object followed by a subsequent heap-based buffer overflow. This flaw allows a malicious privileged guest user to crash the QEMU process on the host or potentially execute arbitrary code within the context of the QEMU process.
CVSS v3 Severity:8.2 High (CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H)
7.1 High (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): High
User Interaction (UI): None
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
6.7 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H)
5.8 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): High
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
7.5 High (REDHAT CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H)
6.5 Medium (REDHAT Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): High
Privileges Required (PR): High
User Interaction (UI): None
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
CVSS v2 Severity:4.6 Medium (CVSS v2 Vector: AV:L/AC:L/Au:N/C:P/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
6.8 Medium (CCN CVSS v2 Vector: AV:L/AC:L/Au:S/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
Vulnerability Type:CWE-190
CWE-120
CWE-131
CWE-120
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2021-4206

Source: CCN
Type: Red Hat Bugzilla - Bug 2036998
(CVE-2021-4206) - CVE-2021-4206 QEMU: QXL: integer overflow in cursor_alloc() can lead to heap buffer overflow

Source: MISC
Type: Issue Tracking, Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2036998

Source: XF
Type: UNKNOWN
qemu-cve20214206-integer-overflow(225639)

Source: CCN
Type: QEMU GIT Repository
ui/cursor: fix integer overflow in cursor_alloc (CVE-2021-4206)

Source: MLIST
Type: Mailing List, Third Party Advisory
[debian-lts-announce] 20220905 [SECURITY] [DLA 3099-1] qemu security update

Source: GENTOO
Type: Third Party Advisory
GLSA-202208-27

Source: MISC
Type: Exploit, Third Party Advisory
https://starlabs.sg/advisories/21-4206/

Source: DEBIAN
Type: Third Party Advisory
DSA-5133

Source: CCN
Type: Mend Vulnerability Database
CVE-2021-4206

Vulnerable Configuration:Configuration 1:
  • cpe:/a:qemu:qemu:*:*:*:*:*:*:*:* (Version < 7.0.0)

  • Configuration 2:
  • cpe:/o:redhat:enterprise_linux:8.0:*:*:*:advanced_virtualization:*:*:*
  • OR cpe:/o:redhat:enterprise_linux:8.0:*:*:*:-:*:*:*

  • Configuration 3:
  • cpe:/o:debian:debian_linux:10.0:*:*:*:*:*:*:*
  • OR cpe:/o:debian:debian_linux:11.0:*:*:*:*:*:*:*

  • Configuration RedHat 1:
  • cpe:/a:redhat:enterprise_linux:8:*:*:*:*:*:*:*

  • Configuration RedHat 2:
  • cpe:/a:redhat:enterprise_linux:8::appstream:*:*:*:*:*

  • Configuration RedHat 3:
  • cpe:/a:redhat:enterprise_linux:8::crb:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:qemu:qemu:-:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:7791
    P
    qemu-tools-7.1.0-150500.47.15 on GA media (Moderate)
    2023-06-12
    oval:org.opensuse.security:def:651
    P
    Security update for qemu (Important) (in QA)
    2022-10-04
    oval:com.redhat.rhsa:def:20225821
    P
    RHSA-2022:5821: virt:rhel and virt-devel:rhel security, bug fix, and enhancement update (Moderate)
    2022-08-02
    oval:org.opensuse.security:def:95248
    P
    Security update for qemu (Important)
    2022-07-04
    oval:org.opensuse.security:def:3759
    P
    Security update for qemu (Important)
    2022-07-04
    oval:org.opensuse.security:def:95392
    P
    Security update for qemu (Important)
    2022-07-04
    oval:org.opensuse.security:def:42307
    P
    Security update for qemu (Important)
    2022-07-04
    oval:org.opensuse.security:def:542
    P
    Security update for qemu (Important)
    2022-07-04
    oval:org.opensuse.security:def:42403
    P
    Security update for qemu (Important)
    2022-07-04
    oval:org.opensuse.security:def:3618
    P
    Security update for qemu (Important)
    2022-07-04
    oval:org.opensuse.security:def:929
    P
    Security update for qemu (Important) (in QA)
    2022-06-13
    oval:org.opensuse.security:def:1681
    P
    Security update for qemu (Important) (in QA)
    2022-06-13
    BACK
    qemu qemu *
    redhat enterprise linux 8.0
    redhat enterprise linux 8.0
    debian debian linux 10.0
    debian debian linux 11.0
    qemu qemu -