CVE Vulnerabilities

CVE-2021-33574

Use After Free

Published: May 25, 2021 | Modified: Nov 21, 2024
CVSS 3.x
9.8
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
7.5 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
5.9 LOW
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
LOW

The mq_notify function in the GNU C Library (aka glibc) versions 2.32 and 2.33 has a use-after-free. It may use the notification thread attributes object (passed through its struct sigevent parameter) after it has been freed by the caller, leading to a denial of service (application crash) or possibly unspecified other impact.

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
Glibc Gnu 2.32 (including) 2.32 (including)
Glibc Gnu 2.33 (including) 2.33 (including)
Red Hat Enterprise Linux 8 RedHat glibc-0:2.28-164.el8 *
Red Hat Enterprise Linux 8 RedHat glibc-0:2.28-164.el8 *
Eglibc Ubuntu esm-infra-legacy/trusty *
Eglibc Ubuntu trusty *
Eglibc Ubuntu trusty/esm *
Glibc Ubuntu bionic *
Glibc Ubuntu esm-infra/bionic *
Glibc Ubuntu esm-infra/focal *
Glibc Ubuntu esm-infra/xenial *
Glibc Ubuntu focal *
Glibc Ubuntu groovy *
Glibc Ubuntu hirsute *
Glibc Ubuntu upstream *
Glibc Ubuntu xenial *

Potential Mitigations

References