DescriptionEugene Teo (Security Response)
2011-12-08 09:34:56 UTC
If read was not fully successful we have to fail whole bio to prevent
information leak of old pages
dd if=/dev/zero of=./file bs=1M count=1
losetup /dev/loop0 ./file -o 4096
truncate -s 0 ./file
OOps loop offset is now beyond i_size, so read will silently fail.
So bio's pages would not be cleared, may which result in information leak.
hexdump -C /dev/loop0
Upstream commit:
http://git.kernel.org/linus/3bb9068278ea524581237abadd41377a14717e7d (v3.2-rc3)
Comment 3Eugene Teo (Security Response)
2012-01-05 04:21:40 UTC
Not a security issue; fixing this as normal bugs.
Comment 4Eugene Teo (Security Response)
2012-01-05 04:23:00 UTC
$ ll /dev/loop*
brw-rw----. 1 root disk 7, 0 Dec 7 12:28 /dev/loop0
brw-rw----. 1 root disk 7, 1 Nov 22 18:58 /dev/loop1
brw-rw----. 1 root disk 7, 2 Nov 22 18:58 /dev/loop2
brw-rw----. 1 root disk 7, 3 Nov 22 18:58 /dev/loop3
Comment 5Eugene Teo (Security Response)
2012-01-18 07:14:27 UTC
Created kernel tracking bugs for this issue
Affects: fedora-all [bug 782687]