On Mon, Oct 30, 2017 at 01:49:53PM +0100, Tobias Stoeckmann wrote: > The utility fsck.cramfs is prone to a bus error on file systems for > big endian systems with non-standard header sizes. While calculating > the crc32 checksum, it does not properly handle a possible offset > for bootcodes, resulting in out of boundary access of mmap'ed area. > > You can trigger the issue with the following commands: > > $ mkdir -p cramfs-poc/root/subdir > $ cd cramfs-poc > $ mkfs.cramfs -p -N big root cramfs > $ echo -ne \\00\\x4c | dd of=cramfs bs=1 seek=518 count=2 conv=notrunc > $ fsck.cramfs cramfs Added between tests. > disk-utils/fsck.cramfs.c | 13 +++++++------ > 1 file changed, 7 insertions(+), 6 deletions(-) Applied, thanks. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html