util-linux/libblkid
Alden Tondettar a157a23f6d libblkid: Fix out of bounds reads in BEFS handling
The BEFS prober is quite trusting of whatever data is fed to it and
performs almost no bounds checks. There don't seem to be any
out-of-bounds writes as far as I can tell, but there are many ways a
corrupted image could cause libblkid to read OOB and segfault, or hang
in an infinite loop.

This fix makes a few sanity-checks of the superblock, add bounds checks
wherever they seem needed, and crudely checks for cycles in the B+ tree.

Signed-off-by: Alden Tondettar <alden.tondettar@gmail.com>
2017-01-25 11:43:06 +01:00
..
docs libblkid: add blkid_probe_set_sectorsize() 2017-01-13 13:26:37 +01:00
samples misc: Fix various typos 2016-05-31 23:40:21 +02:00
src libblkid: Fix out of bounds reads in BEFS handling 2017-01-25 11:43:06 +01:00
COPYING COPYING: fix grammar of referring phrase, and indicate location better 2013-10-08 15:38:39 +02:00
Makemodule.am build-sys: expand paths at make time 2012-08-15 02:06:53 +02:00
blkid.pc.in build-sys: use top-level directory for libblkid rather than shlibs/blkid 2011-06-09 22:04:24 +02:00
libblkid.3 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00