CVE details
CVE-2021-3713
An out-of-bounds write flaw was found in the UAS (USB Attached SCSI) device emulation of QEMU in versions prior to 6.2.0-rc0. The device uses the guest supplied stream number unchecked, which can lead to out-of-bounds access to the UASDevice->data3 and UASDevice->status3 fields. A malicious guest user could use this flaw to crash QEMU or potentially achieve code execution with the privileges of the QEMU process on the host.
Affected ports (2)
| Port | Package | Version | Status | Maintainer |
|---|---|---|---|---|
| emulators/qemu-cheri | qemu-cheri | 0.d20260108 | unaddressed | brooks@FreeBSD.org |
| emulators/qemu-user-static | qemu-user-static | 3.1.0_16 | unaddressed | emulation@FreeBSD.org |
Template for a VuXML entry
Range taken from the CVE record, check it before committing. make newentry in security/vuxml creates the vid.
<vuln vid="FIXME (make newentry)">
<topic>FIXME -- FIXME</topic>
<affects>
<package>
<name>qemu-cheri</name>
<range><lt>FIXME</lt></range>
</package>
<package>
<name>qemu-user-static</name>
<range><lt>FIXME</lt></range>
</package>
</affects>
<description>
<body xmlns="http://www.w3.org/1999/xhtml">
<p>An out-of-bounds write flaw was found in the UAS (USB Attached SCSI)
device emulation of QEMU in versions prior to 6.2.0-rc0. The device
uses the guest supplied stream number unchecked, which can lead to
out-of-bounds access to the UASDevice->data3 and UASDevice->status3
fields. A malicious guest user could use this flaw to crash QEMU or
potentially achieve code execution with the privileges of the QEMU
process on the host.</p>
</body>
</description>
<references>
<cvename>CVE-2021-3713</cvename>
<url>https://nvd.nist.gov/vuln/detail/CVE-2021-3713</url>
</references>
<dates>
<discovery>2021-08-25</discovery>
<entry>2026-10-25</entry>
</dates>
</vuln>