From: william.c.roberts@intel.com To: selinux@tycho.nsa.gov, jwcart2@tycho.nsa.gov, seandroid-list@tycho.nsa.gov, sds@tycho.nsa.gov Subject: Fix AFL Found Bugs in libsepol Date: Mon, 15 Aug 2016 08:59:07 -0700 Message-Id: <1471276754-25266-1-git-send-email-william.c.roberts@intel.com> List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: With the patches mentioned below, I have been able to run the AFL fuzzer for 3 days without issue. I didn't get much feedback in v2 of the patchset, but these should address the issues in that series. [PATCH v3 1/7] libsepol: fix invalid access of NULL on [PATCH v3 2/7] libsepol: ensure key is valid before doing search [PATCH v3 3/7] ebitmap: detect invalid bitmap [PATCH v3 4/7] genfs_read: fix use heap-use-after-free [PATCH v3 5/7] libsepol: fix overflow and 0 length allocations [PATCH v3 6/7] libsepol: bound attr_type_map access by nprim [PATCH v3 7/7] libsepol: fix unitialized jmp and invalid dereference