Code:  toomany(struct magic_set *ms, const char *name, uint16_t num)
 {
	if (file_printf(ms, ", too many %s header sections (%u)", name, num
 	    ) == -1)
 		return -1;
 	return 0;
}

Vulnerability Type: DoS 
CWE ID: CWE-399
Summary: The ELF parser in file 5.08 through 5.21 allows remote attackers to cause a denial of service via a large number of notes.
Commit Message: - Add a limit to the number of ELF notes processed (Suggested by Alexander
  Cherepanov)
- Restructure ELF note printing so that we don't print the same message
  multiple times on repeated notes of the same kind.