---
title: "CVE-2021-3682"
canonical_url: "https://pkgseek.com/security/CVE-2021-3682"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2021-3682

A flaw was found in the USB redirector device emulation of QEMU in versions prior to 6.1.0-rc2. It occurs when dropping packets during a bulk transfer from a SPICE client due to the packet queue being full. A malicious SPICE client could use this flaw to make QEMU call free() with faked heap chunk metadata, resulting in a crash of QEMU or potential code execution with the privileges of the QEMU process on the host.

CVE-2021-3682 严重级别为 HIGH (8.5)，共索引 28 条受影响软件包构建记录，涉及 1 个发行版。

- **级别 / 评分**: HIGH (8.5)
- **受影响构建数**: 28
- **涉及发行版**: 1
- **已标明修复版本发行版**: Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Ubuntu | focal | qemu | 1:4.2-3ubuntu6 | 1:4.2-3ubuntu6.21 |
| Ubuntu | focal | qemu-block-extra | 1:4.2-3ubuntu6 | 1:4.2-3ubuntu6.21 |
| Ubuntu | focal | qemu-kvm | 1:4.2-3ubuntu6 | 1:4.2-3ubuntu6.21 |
| Ubuntu | focal | qemu-system | 1:4.2-3ubuntu6 | 1:4.2-3ubuntu6.21 |
| Ubuntu | focal | qemu-system-arm | 1:4.2-3ubuntu6 | 1:4.2-3ubuntu6.21 |
| Ubuntu | focal | qemu-system-common | 1:4.2-3ubuntu6 | 1:4.2-3ubuntu6.21 |
| Ubuntu | focal | qemu-system-data | 1:4.2-3ubuntu6 | 1:4.2-3ubuntu6.21 |
| Ubuntu | focal | qemu-system-gui | 1:4.2-3ubuntu6 | 1:4.2-3ubuntu6.21 |
| Ubuntu | focal | qemu-system-mips | 1:4.2-3ubuntu6 | 1:4.2-3ubuntu6.21 |
| Ubuntu | focal | qemu-system-misc | 1:4.2-3ubuntu6 | 1:4.2-3ubuntu6.21 |
| Ubuntu | focal | qemu-system-ppc | 1:4.2-3ubuntu6 | 1:4.2-3ubuntu6.21 |
| Ubuntu | focal | qemu-system-s390x | 1:4.2-3ubuntu6 | 1:4.2-3ubuntu6.21 |
| Ubuntu | focal | qemu-system-sparc | 1:4.2-3ubuntu6 | 1:4.2-3ubuntu6.21 |
| Ubuntu | focal | qemu-system-x86 | 1:4.2-3ubuntu6 | 1:4.2-3ubuntu6.21 |
| Ubuntu | focal | qemu-utils | 1:4.2-3ubuntu6 | 1:4.2-3ubuntu6.21 |
| Ubuntu | jammy | qemu-block-extra | 1:6.2+dfsg-2ubuntu6 | 1:6.2+dfsg-2ubuntu6.6 |
| Ubuntu | jammy | qemu-system | 1:6.2+dfsg-2ubuntu6 | 1:6.2+dfsg-2ubuntu6.6 |
| Ubuntu | jammy | qemu-system-arm | 1:6.2+dfsg-2ubuntu6 | 1:6.2+dfsg-2ubuntu6.6 |
| Ubuntu | jammy | qemu-system-common | 1:6.2+dfsg-2ubuntu6 | 1:6.2+dfsg-2ubuntu6.6 |
| Ubuntu | jammy | qemu-system-data | 1:6.2+dfsg-2ubuntu6 | 1:6.2+dfsg-2ubuntu6.6 |
| Ubuntu | jammy | qemu-system-gui | 1:6.2+dfsg-2ubuntu6 | 1:6.2+dfsg-2ubuntu6.6 |
| Ubuntu | jammy | qemu-system-mips | 1:6.2+dfsg-2ubuntu6 | 1:6.2+dfsg-2ubuntu6.6 |
| Ubuntu | jammy | qemu-system-misc | 1:6.2+dfsg-2ubuntu6 | 1:6.2+dfsg-2ubuntu6.6 |
| Ubuntu | jammy | qemu-system-ppc | 1:6.2+dfsg-2ubuntu6 | 1:6.2+dfsg-2ubuntu6.6 |
| Ubuntu | jammy | qemu-system-s390x | 1:6.2+dfsg-2ubuntu6 | 1:6.2+dfsg-2ubuntu6.6 |
| Ubuntu | jammy | qemu-system-sparc | 1:6.2+dfsg-2ubuntu6 | 1:6.2+dfsg-2ubuntu6.6 |
| Ubuntu | jammy | qemu-system-x86 | 1:6.2+dfsg-2ubuntu6 | 1:6.2+dfsg-2ubuntu6.6 |
| Ubuntu | jammy | qemu-utils | 1:6.2+dfsg-2ubuntu6 | 1:6.2+dfsg-2ubuntu6.6 |
