mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 20:29:42 +00:00
An overlong group name in /etc/groups would have caused getgrent() to overflow the global __grdb_entry. Curiously, overflow *within* __grdb_entry seems to have no detrimental effects. However, it was possible for a malicious sysadmin(?!) to craft an /etc/group that overflows outside of the page allocated for __grdb_entry thus crash the calling process. This affected at least SystemServer and su. Now, the group name will be simply truncated. For display purposes, this is fine. In case there is an exceptionally long group, it will not be properly recognized. Also, a malicious /etc/groups might cause the caller of getgrent() to become confused, but that is unavoidable.
5.2 KiB
5.2 KiB