diff -urpPX nopatch linux-2.4.33/fs/binfmt_elf.c linux/fs/binfmt_elf.c --- linux-2.4.33/fs/binfmt_elf.c Sat Aug 12 08:48:39 2006 +++ linux/fs/binfmt_elf.c Sat Aug 12 08:51:47 2006 @@ -945,8 +983,9 @@ static int load_elf_library(struct file goto out; /* First of all, some simple consistency checks */ - if (elf_ex.e_type != ET_EXEC || elf_ex.e_phnum > 2 || - !elf_check_arch(&elf_ex) || !file->f_op || !file->f_op->mmap) + if (elf_ex.e_type != ET_EXEC || + elf_ex.e_phnum < 1 || elf_ex.e_phnum > 2 || + !elf_check_arch(&elf_ex) || !file->f_op || !file->f_op->mmap) goto out; /* Now read in all of the header information */