public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nss/28940] New: __nss_database_get doesn't check for allocation failure
@ 2022-03-03 15:04 tavianator at tavianator dot com
0 siblings, 0 replies; only message in thread
From: tavianator at tavianator dot com @ 2022-03-03 15:04 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28940
Bug ID: 28940
Summary: __nss_database_get doesn't check for allocation
failure
Product: glibc
Version: 2.35
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: nss
Assignee: unassigned at sourceware dot org
Reporter: tavianator at tavianator dot com
Target Milestone: ---
The implementation of __nss_database_get() is just
bool
__nss_database_get (enum nss_database db, nss_action_list *actions)
{
struct nss_database_state *local = nss_database_state_get ();
return nss_database_check_reload_and_get (local, actions, db);
}
But nss_database_state_get() can fail to allocate and return NULL. When that
happens, nss_database_check_reload_and_get() dereferences the NULL pointer and
segfaults.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-03 15:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-03 15:04 [Bug nss/28940] New: __nss_database_get doesn't check for allocation failure tavianator at tavianator dot com
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).