Integer Overflow or Wraparound Affecting ivshmem-tools package, versions <10:3.1.0-8.amzn2.0.22


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.16% (38th 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 Learn

Learn about Integer Overflow or Wraparound vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN2-IVSHMEMTOOLS-13880065
  • published11 Nov 2025
  • disclosed29 Apr 2022

Introduced: 29 Apr 2022

CVE-2021-4206  (opens in a new tab)
CWE-190  (opens in a new tab)
CWE-131  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 ivshmem-tools to version 10:3.1.0-8.amzn2.0.22 or higher.
This issue was patched in ALAS2-2025-3061.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ivshmem-tools package and not the ivshmem-tools package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

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 Base Scores

version 3.1