[PATCH] nscd: Fix double free in netgroupcache [BZ #27462]
authorDJ Delorie <dj@redhat.com>
Thu, 25 Feb 2021 21:08:21 +0000 (16:08 -0500)
committerAdrian Bunk <bunk@debian.org>
Tue, 23 Apr 2024 16:23:00 +0000 (19:23 +0300)
commit57212ab7ff13ea2a42e025faf2e3e19d56de5e04
treeea6728bb58d4a2de74a9694528559c27fbc37471
parent631ab534c3bf079a5a0ec4411a7a4d2f2b06ce32
[PATCH] nscd: Fix double free in netgroupcache [BZ #27462]

In commit 745664bd798ec8fd50438605948eea594179fba1 a use-after-free
was fixed, but this led to an occasional double-free.  This patch
tracks the "live" allocation better.

Tested manually by a third party.

Related: RHBZ 1927877

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Gbp-Pq: Topic all
Gbp-Pq: Name git-CVE-2021-27645-nscd-Fix-double-free-in-netgroupcache-BZ-27462.diff
nscd/netgroupcache.c