]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: Fix out of bounds reads on bad NTFS Master File Table
authorAlden Tondettar <alden.tondettar@gmail.com>
Tue, 24 Jan 2017 06:27:59 +0000 (23:27 -0700)
committerKarel Zak <kzak@redhat.com>
Wed, 25 Jan 2017 10:39:10 +0000 (11:39 +0100)
commit999a2ffec92fdecbc1bc85f521057215bcc5ba84
tree4fb6dd2e5992bb19496b40c06246a9d14954afa7
parenta7caeabadf49c4d81e53823e1dff340bca792fb9
libblkid: Fix out of bounds reads on bad NTFS Master File Table

The NTFS prober does not validate certain fields in struct file_attribute,
and could attempt to read the disk label from outside the space allocated
for the Master File Table.  Perform the appropriate checks.

Note that one variable (attr_off) is now 64-bit, so a check for integer
overflow has been removed as unneeded/confusing.

Signed-off-by: Alden Tondettar <alden.tondettar@gmail.com>
libblkid/src/superblocks/ntfs.c