Incomplete file type and size checks when parsing user and group files can lead to excessive memory or CPU consumption. An attacker who controls the contents of a user or group file, such as `/etc/passwd` or `/etc/group` from a container image, can cause a denial of service. The issue affects the following functions: `ParsePasswdFile()`, `ParsePasswdFileFilter()`, `GetAdditionalGroupsPath()`, `ParseSubIDFile()`, `ParseSubIDFileFilter()`, `ParseIDMapFile()`, `ParseIDMapFileFilter()`, `LookupUser()`, `LookupUid()`, `LookupGroup()`, and `LookupGid()`.