CVE Vulnerabilities

CVE-2021-3700

Use After Free

Published: Feb 24, 2022 | Modified: Nov 21, 2024
CVSS 3.x
6.4
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
4.4 MEDIUM
AV:L/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
3.9 LOW
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L
Ubuntu
LOW
root.io logo minimus.io logo echo.ai logo

A use-after-free vulnerability was found in usbredir in versions prior to 0.11.0 in the usbredirparser_serialize() in usbredirparser/usbredirparser.c. This issue occurs when serializing large amounts of buffered write data in the case of a slow or blocked destination.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

NameVendorStart VersionEnd Version
UsbredirSpice-space*0.11.0 (excluding)
UsbredirUbuntubionic*
UsbredirUbuntuesm-infra-legacy/trusty*
UsbredirUbuntuesm-infra/bionic*
UsbredirUbuntuesm-infra/focal*
UsbredirUbuntuesm-infra/xenial*
UsbredirUbuntufocal*
UsbredirUbuntuhirsute*
UsbredirUbuntuimpish*
UsbredirUbuntutrusty*
UsbredirUbuntutrusty/esm*
UsbredirUbuntuupstream*
UsbredirUbuntuxenial*

Potential Mitigations

References