]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ext2fs: Add some extra consistency checks for the superblock.
authorpfg <pfg@FreeBSD.org>
Fri, 25 Jan 2019 22:22:29 +0000 (22:22 +0000)
committerpfg <pfg@FreeBSD.org>
Fri, 25 Jan 2019 22:22:29 +0000 (22:22 +0000)
commit891216e34bc3aa7ea40a9b2f085e907da6f84fd1
treef2481881098311789ca91986be3682c8f29479ae
parent0af9ffb16176db77199c0486f8d4a908e58480b1
ext2fs: Add some extra consistency checks for the superblock.

Maliciously formed, or badly corrupted, filesystems can cause kernel
panics.  In general, such acts of foot-shooting can only be accomplished
by root, but in a world with VM images that is  moving towards automated
mounts it is important to have some form of prevention.

Reported by: Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert
of Fraunhofer FKIE.
Incidentaly this should also fix a memory corruption issue reported by
Dr Silvio Cesare of InfoSect.

Huge thanks to all reseachers for making us aware of the issue.

admbug: 872, 891
Reviewed by: fsu
Obtained from: NetBSD (with minor changes)
MFC after: 3 days
sys/fs/ext2fs/ext2_vfsops.c