CVE-2021-38604
In librt in the GNU C Library (aka glibc) through 2.34, sysdeps/unix/sysv/linux/mq_notify.c...
In librt in the GNU C Library (aka glibc) through 2.34, sysdeps/unix/sysv/linux/mq_notify.c mishandles certain NOTIFY_REMOVED data, leading to a NULL pointer dereference. NOTE: this vulnerability was introduced as a side effect of the CVE-2021-33574 fix.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.5
In librt in the GNU C Library (aka glibc) through 2.34, sysdeps/unix/sysv/linux/mq_notify.c mishandles certain NOTIFY_REMOVED data, leading to a NULL pointer dereference. NOTE: this vulnerability was introduced as a side effect of the CVE-2021-33574 fix.
- Record
CVE-2021-38604- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-476
- Updated
- 2026-11-02
CVE List
7.5
In librt in the GNU C Library (aka glibc) through 2.34, sysdeps/unix/sysv/linux/mq_notify.c mishandles certain NOTIFY_REMOVED data, leading to a NULL pointer dereference. NOTE: this vulnerability was introduced as a side effect of the CVE-2021-33574 fix.
- Record
CVE-2021-38604- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-476
- Updated
- 2026-11-02
EUVDEUVD-2021-25044
7.5
In librt in the GNU C Library (aka glibc) through 2.34, sysdeps/unix/sysv/linux/mq_notify.c mishandles certain NOTIFY_REMOVED data, leading to a NULL pointer dereference. NOTE: this vulnerability was introduced as a side effect of the CVE-2021-33574 fix.
- Record
EUVD-2021-25044- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-p3v7-wjmc-7fh8
7.5
In librt in the GNU C Library (aka glibc) through 2.34, sysdeps/unix/sysv/linux/mq_notify.c...
In librt in the GNU C Library (aka glibc) through 2.34, sysdeps/unix/sysv/linux/mq_notify.c mishandles certain NOTIFY_REMOVED data, leading to a NULL pointer dereference. NOTE: this vulnerability was introduced as a side effect of the CVE-2021-33574 fix.
- Record
GHSA-p3v7-wjmc-7fh8- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-476
- Updated
- 2026-11-02
OSVAZL-6442
7.5
CVE-2021-38604 affecting package glibc for versions less than 2.35-1
In librt in the GNU C Library (aka glibc) through 2.34, sysdeps/unix/sysv/linux/mq_notify.c mishandles certain NOTIFY_REMOVED data, leading to a NULL pointer dereference. NOTE: this vulnerability was introduced as a side effect of the CVE-2021-33574 fix.
- Record
AZL-6442- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2021-38604
7.5
CVE-2021-38604 does not affect BellSoft software
- Record
BELL-CVE-2021-38604- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 8 moreShow less
OSV
7.5
In librt in the GNU C Library (aka glibc) through 2.34, sysdeps/unix/sysv/linux/mq_notify.c mishandles certain NOTIFY_REMOVED data, leading to a NULL pointer dereference. NOTE: this vulnerability was introduced as a side effect of the CVE-2021-33574 fix.
- Record
CVE-2021-38604- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVOESA-2021-1328
7.5
glibc security update
The GNU C Library project provides the core libraries for the GNU system and GNU/Linux systems, as well as many other systems that use Linux as the kernel. These libraries provide critical APIs including ISO C11, POSIX.1-2008, BSD, OS-specific APIs and more. These APIs include such foundational facilities as open, read, write, malloc, printf, getaddrinfo, dlopen, pthread_create, crypt, login, exit and more.
Security Fix(es):
In librt in the GNU C Library (aka glibc) through 2.34, sysdeps/unix/sysv/linux/mq_notify.c mishandles certain NOTIFY_REMOVED data, leading to a NULL pointer dereference. NOTE: this vulnerability was introduced as a side effect of the CVE-2021-33574 fix.(CVE-2021-38604)
- Record
OESA-2021-1328- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-38604
7.5
In librt in the GNU C Library (aka glibc) through 2.34, sysdeps/unix/sysv/linux/mq_notify.c mishandles certain NOTIFY_REMOVED data, leading to a NULL pointer dereference. NOTE: this vulnerability was introduced as a side effect of the CVE-2021-33574 fix.
- Record
UBUNTU-CVE-2021-38604- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVCLSA-2021-1629395067 No score
Fix of CVE: CVE-2021-33574, CVE-2021-35942, CVE-2021-38604
- Adopt pthread_attr_copy functionality, test case is included
- CVE-2021-33574: avoid use-after-free vulnerability
- CVE-2021-35942: avoid out-of-bounds read via signed integer overflow in array index
- CVE-2021-38604: considered. No NULL pointer dereference is possible
- Record
CLSA-2021-1629395067- Updated
- 2026-11-02
OSVCLSA-2021-1634922609 No score
Fixed CVEs in glibc: CVE-2021-38604, CVE-2021-35942, CVE-2021-33574
- Adopt pthread_attr_copy functionality, test case is included
- CVE-2021-33574: avoid use-after-free vulnerability
- CVE-2021-35942: avoid out-of-bounds read via signed integer overflow in array index
- CVE-2021-38604: considered. No NULL pointer dereference is possible
- Record
CLSA-2021-1634922609- Updated
- 2026-11-02
OSVCLSA-2021-1635459187 No score
Fix CVE(s): CVE-2021-33574, CVE-2021-38604, CVE-2021-35942
- debian/patches/any/add-pthread-attr-copy.patch: adopt pthread_attr_copy functionality.
- debian/patches/any/add-test-for-pthread-attr-copy.patch: add test case for it.
- SECURITY UPDATE: Use-after-free in mq_notify
- debian/patches/any/CVE-2021-33574.patch: use __pthread_attr_copy to completely duplicate thread attribute, avoid NULL pointer dereference in helper_thread as per CVE-2021-38604.
- CVE-2021-33574
- CVE-2021-38604
- SECURITY UPDATE: Out-of-bounds read in wordexp
- debian/patches/any/CVE-2021-35942.patch: use strtoul and 'unsigned long' to prevent signed integer overflow in array index.
- CVE-2021-35942
- Record
CLSA-2021-1635459187- Updated
- 2026-11-02
OSVCLSA-2021-1635459213 No score
Fix CVE(s): CVE-2021-33574, CVE-2021-38604, CVE-2021-35942
- debian/patches/any/add-pthread-attr-copy.patch: adopt pthread_attr_copy functionality.
- debian/patches/any/add-test-for-pthread-attr-copy.patch: add test case for it.
- SECURITY UPDATE: Use-after-free in mq_notify
- debian/patches/any/CVE-2021-33574.patch: use __pthread_attr_copy to completely duplicate thread attribute, avoid NULL pointer dereference in helper_thread as per CVE-2021-38604.
- CVE-2021-33574
- CVE-2021-38604
- SECURITY UPDATE: Out-of-bounds read in wordexp
- debian/patches/any/CVE-2021-35942.patch: use strtoul and 'unsigned long' to prevent signed integer overflow in array index.
- CVE-2021-35942
- Record
CLSA-2021-1635459213- Updated
- 2026-11-02
OSVMGASA-2021-0404 No score
Updated glibc packages fix security issue
The recent fix for CVE-2021-33574 released in MGASA-2021-0308 introduced a NULL pointer dereference because mq_notify.c mishandles certain NOTIFY_REMOVED data, that will result in segmentation fault. This update adds the missing NULL pointer check to resolve this issue (CVE-2021-38604).
- Record
MGASA-2021-0404- Updated
- 2026-11-02
Affected products
- gnu glibc
- fedoraproject fedora
- oracle communications cloud native core binding support function
- oracle communications cloud native core network function cloud native environment
- oracle communications cloud native core network repository function
- oracle communications cloud native core security edge protection proxy
- oracle communications cloud native core unified data repository
- oracle enterprise operations monitor
- siemens simatic s7-1500 cpu 1518-4 pn/dp mfp
- siemens simatic s7-1500 cpu 1518f-4 pn/dp mfp
- siemens siplus s7-1500 cpu 1518-4 pn/dp mfp
Affected packages
| Package | Affected | Fixed |
|---|---|---|
glibcAzure Linux:2 |
before 2.35-1 | 2.35-1 |
glibcTuxCare:CentOS:6 |
before 2.12-2.213.el6.cloudlinux.els | 2.12-2.213.el6.cloudlinux.els |
glibc-commonTuxCare:CentOS:6 |
before 2.12-2.213.el6.cloudlinux.els | 2.12-2.213.el6.cloudlinux.els |
glibc-develTuxCare:CentOS:6 |
before 2.12-2.213.el6.cloudlinux.els | 2.12-2.213.el6.cloudlinux.els |
glibc-headersTuxCare:CentOS:6 |
before 2.12-2.213.el6.cloudlinux.els | 2.12-2.213.el6.cloudlinux.els |
glibc-staticTuxCare:CentOS:6 |
before 2.12-2.213.el6.cloudlinux.els | 2.12-2.213.el6.cloudlinux.els |
glibc-utilsTuxCare:CentOS:6 |
before 2.12-2.213.el6.cloudlinux.els | 2.12-2.213.el6.cloudlinux.els |
nscdTuxCare:CentOS:6 |
before 2.12-2.213.el6.cloudlinux.els | 2.12-2.213.el6.cloudlinux.els |
glibcTuxCare:OracleLinux:6 |
before 2.12-2.213.el6.cloudlinux.els | 2.12-2.213.el6.cloudlinux.els |
glibc-commonTuxCare:OracleLinux:6 |
before 2.12-2.213.el6.cloudlinux.els | 2.12-2.213.el6.cloudlinux.els |
Show 23 moreShow less
| Package | Affected | Fixed |
|---|---|---|
glibc-develTuxCare:OracleLinux:6 |
before 2.12-2.213.el6.cloudlinux.els | 2.12-2.213.el6.cloudlinux.els |
glibc-headersTuxCare:OracleLinux:6 |
before 2.12-2.213.el6.cloudlinux.els | 2.12-2.213.el6.cloudlinux.els |
glibc-staticTuxCare:OracleLinux:6 |
before 2.12-2.213.el6.cloudlinux.els | 2.12-2.213.el6.cloudlinux.els |
glibc-utilsTuxCare:OracleLinux:6 |
before 2.12-2.213.el6.cloudlinux.els | 2.12-2.213.el6.cloudlinux.els |
nscdTuxCare:OracleLinux:6 |
before 2.12-2.213.el6.cloudlinux.els | 2.12-2.213.el6.cloudlinux.els |
glibc-docTuxCare:Ubuntu:16.04 |
before 2.23-0ubuntu11.4 | 2.23-0ubuntu11.4 |
glibc-sourceTuxCare:Ubuntu:16.04 |
before 2.23-0ubuntu11.4 | 2.23-0ubuntu11.4 |
libc-binTuxCare:Ubuntu:16.04 |
before 2.23-0ubuntu11.4 | 2.23-0ubuntu11.4 |
libc-dev-binTuxCare:Ubuntu:16.04 |
before 2.23-0ubuntu11.4 | 2.23-0ubuntu11.4 |
libc6TuxCare:Ubuntu:16.04 |
before 2.23-0ubuntu11.4 | 2.23-0ubuntu11.4 |
libc6-devTuxCare:Ubuntu:16.04 |
before 2.23-0ubuntu11.4 | 2.23-0ubuntu11.4 |
libc6-dev-i386TuxCare:Ubuntu:16.04 |
before 2.23-0ubuntu11.4 | 2.23-0ubuntu11.4 |
libc6-dev-x32TuxCare:Ubuntu:16.04 |
before 2.23-0ubuntu11.4 | 2.23-0ubuntu11.4 |
libc6-i386TuxCare:Ubuntu:16.04 |
before 2.23-0ubuntu11.4 | 2.23-0ubuntu11.4 |
libc6-picTuxCare:Ubuntu:16.04 |
before 2.23-0ubuntu11.4 | 2.23-0ubuntu11.4 |
libc6-x32TuxCare:Ubuntu:16.04 |
before 2.23-0ubuntu11.4 | 2.23-0ubuntu11.4 |
localesTuxCare:Ubuntu:16.04 |
before 2.23-0ubuntu11.4 | 2.23-0ubuntu11.4 |
locales-allTuxCare:Ubuntu:16.04 |
before 2.23-0ubuntu11.4 | 2.23-0ubuntu11.4 |
multiarch-supportTuxCare:Ubuntu:16.04 |
before 2.23-0ubuntu11.4 | 2.23-0ubuntu11.4 |
nscdTuxCare:Ubuntu:16.04 |
before 2.23-0ubuntu11.4 | 2.23-0ubuntu11.4 |
glibcMageia:8 |
before 2.32-18.mga8 | 2.32-18.mga8 |
glibcopenEuler:20.03-LTS-SP1 |
before 2.28-77.oe1 | 2.28-77.oe1 |
glibcopenEuler:20.03-LTS-SP2 |
before 2.28-77.oe1 | 2.28-77.oe1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-38604 is a high vulnerability (CVSS 7.5) in Gnu Glibc, published August 12, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.72%, the 89th percentile. Fixed in glibc 2.35-1.
References
sourceware.org/git?p=glibc.git%3Ba=commit%3Bh=b805aebd42364fe696e417808a700fdb9800c9e8
sourceware.org/git?p=glibc.git%3Ba=commit%3Bh=4cc79c217744743077bf7a0ec5e0a4318f1e6641
sourceware.org/bugzilla/show_bug.cgi?id=28213
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GYEXYM37RCJWJ6B5KQUYQI4NZBDDYSXP
oracle.com/security-alerts/cpujul2022.html
blog.tuxcare.com/cve/tuxcare-team-identifies-cve-2021-38604-a-new-vulnerability-in-glibc
Show 19 moreShow less
security.netapp.com/advisory/ntap-20210909-0005
security.gentoo.org/glsa/202208-24
cert-portal.siemens.com/productcert/html/ssa-831302.html
cert-portal.siemens.com/productcert/html/ssa-398330.html
nvd.nist.gov/vuln/detail/CVE-2021-38604
sourceware.org/git?p=glibc.git;a=commit;h=4cc79c217744743077bf7a0ec5e0a4318f1e6641
sourceware.org/git?p=glibc.git;a=commit;h=b805aebd42364fe696e417808a700fdb9800c9e8
lists.fedoraproject.org/archives/list/[email protected]/message/GYEXYM37RCJWJ6B5KQUYQI4NZBDDYSXP
github.com/advisories/GHSA-p3v7-wjmc-7fh8
docs.bell-sw.com/security/cves/CVE-2021-38604
errata.cloudlinux.com/els6/CLSA-2021-1629395067.html
errata.cloudlinux.com/ol6/CLSA-2021-1634922609.html
errata.cloudlinux.com/ubuntu16_04/CLSA-2021-1635459187
errata.cloudlinux.com/ubuntu16_04/CLSA-2021-1635459213
advisories.mageia.org/MGASA-2021-0404.html
bugs.mageia.org/show_bug.cgi?id=29357
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1328
ubuntu.com/security/CVE-2021-38604
cve.org/CVERecord?id=CVE-2021-38604