glibc/nss/nss_files
Siddhesh Poyarekar d7b00f9810 Fix invalid memory access when parsing netgroup files with blank lines (BZ #16506)
The netgroups file parsing code tries to access the character before
the newline in parsed lines to see if it is a backslash (\).  This
results in an access before the block allocated for the line if the
line is blank, i.e. does not have anything other than the newline
character.  This doesn't seem like it will cause any crashes because
the byte belongs to the malloc metadata block and hence access to it
will always succeed.

There could be an invalid alteration in code flow where a blank line
is seen as a continuation due to the preceding byte *happening* to be
'\\'.  This could be done by interposing malloc, but that's not really
a security problem since one could interpose getnetgrent_r itself and
achieve a similar 'exploit'.

The possibility of actually exploiting this is remote to impossible
since it also requires the previous line to end with a '\\', which
would happen only on invalid configurations.
2014-01-27 16:49:33 +05:30
..
files-alias.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
files-ethers.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
files-grp.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
files-have_o_cloexec.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
files-hosts.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
files-init.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
files-initgroups.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
files-key.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
files-netgrp.c Fix invalid memory access when parsing netgroup files with blank lines (BZ #16506) 2014-01-27 16:49:33 +05:30
files-network.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
files-parse.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
files-proto.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
files-pwd.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
files-rpc.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
files-service.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
files-sgrp.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
files-spwd.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
files-XXX.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00