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

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

Name Vendor Start Version End Version
Usbredir Spice-space * 0.11.0 (excluding)
Usbredir Ubuntu bionic *
Usbredir Ubuntu esm-infra-legacy/trusty *
Usbredir Ubuntu esm-infra/bionic *
Usbredir Ubuntu esm-infra/focal *
Usbredir Ubuntu esm-infra/xenial *
Usbredir Ubuntu focal *
Usbredir Ubuntu hirsute *
Usbredir Ubuntu impish *
Usbredir Ubuntu trusty *
Usbredir Ubuntu trusty/esm *
Usbredir Ubuntu upstream *
Usbredir Ubuntu xenial *

Potential Mitigations

References