nss_compat opens its input files like this, requesting the use of mmap from fopen: ent->stream = fopen ("/etc/group", "rme"); This may result in crashes if the files are truncated while reading.
Patch posted: https://sourceware.org/pipermail/libc-alpha/2020-July/116432.html
Fixed for glibc 2.32 via: commit 23ed36735af09c258e542266aaed92cdd8571c6c Author: Florian Weimer <fweimer@redhat.com> Date: Thu Jul 16 16:21:28 2020 +0200 nss_compat: Do not use mmap to read database files (bug 26258) This avoids crashes in case the files are truncated for some reason. For typically file sizes, it is also going to be slightly faster. Using __nss_files_fopen instead mirrors what nss_files does. Tested-by: Carlos O'Donell <carlos@redhat.com> Reviewed-by: Carlos O'Donell <carlos@redhat.com>