]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: zero out the unused memory region in the extent tree block
authorSriram Rajagopalan <sriramr@arista.com>
Fri, 10 May 2019 23:28:06 +0000 (19:28 -0400)
committerBrian Maly <brian.maly@oracle.com>
Wed, 17 Jul 2019 16:32:58 +0000 (12:32 -0400)
commit5e5b4c0efe32f0f07f3c7737eabd727a8bb20740
tree76ef0f1bb843847f3489c8622702941b51d9256d
parentab9d55ee1c75dc4cf3bef960984db74bc2fdaa86
ext4: zero out the unused memory region in the extent tree block

This commit zeroes out the unused memory region in the buffer_head
corresponding to the extent metablock after writing the extent header
and the corresponding extent node entries.

This is done to prevent random uninitialized data from getting into
the filesystem when the extent block is synced.

This fixes CVE-2019-11833.

Signed-off-by: Sriram Rajagopalan <sriramr@arista.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
(cherry picked from commit 592acbf16821288ecdc4192c47e3774a4c48bb64)

Orabug: 29925523
CVE: CVE-2019-11833

Reviewed-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
fs/ext4/extents.c