]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ext4: zero out the unused memory region in the extent tree block
authorSriram Rajagopalan <sriramr@arista.com>
Tue, 4 Jun 2019 06:08:00 +0000 (08:08 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 2 Jul 2019 12:18:49 +0000 (14:18 +0200)
commita6a630413508f6dbb642eecc4ef7f2c6a833af14
tree5958ea784ee4cb71f86b6952e0517aa9eaad0622
parent2dae45ea8e8911f85c4b5a9bc9580b5edfed8a4c
ext4: zero out the unused memory region in the extent tree block

CVE-2019-11833

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)
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Acked-by: Connor Kuehl <connor.kuehl@canonical.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
fs/ext4/extents.c