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
root.io logo minimus.io logo echo.ai logo

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

NameVendorStart VersionEnd Version
GlibcGnu2.32 (including)2.32 (including)
GlibcGnu2.33 (including)2.33 (including)
Red Hat Enterprise Linux 8RedHatglibc-0:2.28-164.el8*
Red Hat Enterprise Linux 8RedHatglibc-0:2.28-164.el8*
EglibcUbuntuesm-infra-legacy/trusty*
EglibcUbuntutrusty*
EglibcUbuntutrusty/esm*
GlibcUbuntubionic*
GlibcUbuntuesm-infra/bionic*
GlibcUbuntuesm-infra/focal*
GlibcUbuntuesm-infra/xenial*
GlibcUbuntufocal*
GlibcUbuntugroovy*
GlibcUbuntuhirsute*
GlibcUbuntuupstream*
GlibcUbuntuxenial*

Potential Mitigations

References