public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug librt/28213] New: NULL pointer dereference due to CVE-2021-33574 fix
@ 2021-08-09 12:14 npv1310 at gmail dot com
  2021-08-09 12:29 ` [Bug librt/28213] " npv1310 at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: npv1310 at gmail dot com @ 2021-08-09 12:14 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28213

            Bug ID: 28213
           Summary: NULL pointer dereference due to CVE-2021-33574 fix
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: librt
          Assignee: unassigned at sourceware dot org
          Reporter: npv1310 at gmail dot com
  Target Milestone: ---

Hello.
While investigating the upstream fix of the recent CVE-2021-33574, i've found
following problem:
Helper thread frees copied attribute on NOTIFY_REMOVED message received from
the OS kernel. Unfortunately, it fails to check whether copied attribute
actually exists (data.attr != NULL). This worked earlier because free() checks
passed pointer before actually attempting to release corresponding memory. But
__pthread_attr_destroy assumes pointer is not NULL. So passing NULL pointer to
__pthread_attr_destroy will result in segmentation fault. This scenario is
possible if notification->sigev_notify_attributes == NULL (which means default
thread attributes should be used).
Affected file: sysdeps/unix/sysv/linux/mq_notify.c
Affected function: helper_thread
Affected lineno: 137

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-08-23  2:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-09 12:14 [Bug librt/28213] New: NULL pointer dereference due to CVE-2021-33574 fix npv1310 at gmail dot com
2021-08-09 12:29 ` [Bug librt/28213] " npv1310 at gmail dot com
2021-08-09 14:53 ` siddhesh at sourceware dot org
2021-08-12 12:10 ` siddhesh at sourceware dot org
2021-08-18  3:50 ` sam at gentoo dot org
2021-08-18  3:50 ` sam at gentoo dot org
2021-08-23  2:47 ` [Bug librt/28213] NULL pointer dereference in mq_notify (CVE-2021-38604) siddhesh at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).