CVE-2019-13105: ext4: fix double-free in ext4_cache_read
authorPaul Emge <paulemge@forallsecure.com>
Mon, 8 Jul 2019 23:37:04 +0000 (16:37 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 18 Jul 2019 15:31:28 +0000 (11:31 -0400)
commit6e5a79de658cb1c8012c86e0837379aa6eabd024
tree29fae8aea17e98fed0adbf28815066e5c2594db0
parent232e2f4fd9a24bf08215ddc8c53ccadffc841fb5
CVE-2019-13105: ext4: fix double-free in ext4_cache_read

ext_cache_read doesn't null cache->buf, after freeing, which results
in a later function double-freeing it. This patch fixes
ext_cache_read to call ext_cache_fini instead of free.

Signed-off-by: Paul Emge <paulemge@forallsecure.com>
fs/ext4/ext4fs.c