Bug 28075 - Out-of-bounds static buffer read in nis_local_domain
Summary: Out-of-bounds static buffer read in nis_local_domain
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: nis (show other bugs)
Version: 2.34
: P2 normal
Target Milestone: 2.34
Assignee: Florian Weimer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-11 13:10 UTC by Florian Weimer
Modified: 2021-07-12 06:06 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Weimer 2021-07-11 13:10:10 UTC
If NIS_GROUP is the empty string, nis_local_domain access __nisgroup[-1].
Comment 1 Florian Weimer 2021-07-12 06:06:27 UTC
Fixed for glibc 2.34 by:

commit 70099c7763b8c47a4bb1eef1c41601c602a83270
Author: Florian Weimer <fweimer@redhat.com>
Date:   Mon Jul 12 07:58:07 2021 +0200

    nis: nis_local_group may read from __nisgroup[-1] (bug 28075)
    
    Reviewed-by: Carlos O'Donell <carlos@redhat.com>

(This does not fix the build breakage with current GCC 12, though, due to the linked GCC PR.)