cve.bz

CVE-2021-33574 Use After Free

9.8 criticalExploit referenceEPSS 3.5%

Critical (9.8). EPSS 3.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
3.5% (unchanged from 3.5% a week ago; 3.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-33574 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-33574?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-33574?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-33574 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-33574

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-33574](https://cve.bz/cve/badge/CVE-2021-33574.svg)](https://cve.bz/cve/CVE-2021-33574)

HTML:

<a href="https://cve.bz/cve/CVE-2021-33574"><img src="https://cve.bz/cve/badge/CVE-2021-33574.svg" alt="CVE-2021-33574"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:glibc2.32
gnu:glibc2.33
fedoraproject:fedora33
fedoraproject:fedora34
netapp:e-series_santricity_os_controllerfrom 11.0 through 11.70.1
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10glibc2.28-10+deb10u2DLA-3152-1
Debian12, 13, 14glibc2.32-1DEBIAN-CVE-2021-33574
UbuntuPro:14.04:LTSeglibcno fix listedUBUNTU-CVE-2021-33574
UbuntuPro:16.04:LTS, Pro:18.04:LTS, Pro:20.04:LTSglibcno fix listedUBUNTU-CVE-2021-33574
Red Hatenterprise_linux:8::appstreamglibc-utils, glibc-debuginfo, glibc-debuginfo-common and 1 more0:2.28-164.el8RHSA-2021:4358
Red Hatenterprise_linux:8::baseosnscd, glibc, libnsl and 205 more0:2.28-164.el8RHSA-2021:4358
Red Hatenterprise_linux:8::crbnss_hesiod, glibc-static, glibc-debuginfo and 3 more0:2.28-164.el8RHSA-2021:4358
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 10 moreglibc2.26-13.59.1SUSE-SU-2021:3385-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 4 moreglibc2.22-116.1SUSE-SU-2021:3289-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Development Tools 15 SP3glibc2.31-9.3.2SUSE-SU-2021:3291-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSSglibc2.11.3-17.110.37.1SUSE-SU-2021:14822-1
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP4 and 4 moreglibc2.22-114.15.1SUSE-SU-2021:3290-1
openSUSELeap 15.2glibc, glibc-testsuite-src2.26-lp152.26.9.1openSUSE-SU-2021:1374-1
openSUSELeap 15.3glibc2.31-9.3.2openSUSE-SU-2021:3291-1
openSUSETumbleweedglibc2.34-1.2openSUSE-SU-2024:10792-1
AlmaLinux8nss_hesiod, glibc-utils, glibc-static and 3 more2.28-164.el8ALSA-2021:4358
Rocky Linux8glibc0:2.28-164.el8RLSA-2021:4358

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's statement

In order to mount a minimal attack using this flaw, an attacker needs many pre-requisites to be able to even crash a program using this mq_notify bug:

1. The program call to mq_notify needs to be controlled by the attacker

2. The program must provide attributes to control creation of the notification thread in mq_notify

3. The program must have the race condition where it may potentially destroy the notification thread attributes before the notification thread is created

4. The program must set CPU affinity of the notification thread to actually cause the use-after-free dereference

There are no known applications that have *all* these pre-requisites.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8glibc-0:2.28-164.el8Fixed 2021-11-09RHSA-2021:4358
Red Hat Enterprise Linux 6compat-glibcOut of support scope
Red Hat Enterprise Linux 6glibcOut of support scope
Red Hat Enterprise Linux 7compat-glibcOut of support scope
Red Hat Enterprise Linux 7glibcOut of support scope
Red Hat Enterprise Linux 9glibcNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-33574.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed
ICSA-23-166-10Siemens SIMATIC S7-1500 TM MFP BIOS2023-06-13MultipleSIMATIC S7-1500 TM MFP - BIOSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON