Files
Pan Bian ffaaaf68be ext2: fix potential use after free
commit ecebf55d27 upstream.

The function ext2_xattr_set calls brelse(bh) to drop the reference count
of bh. After that, bh may be freed. However, following brelse(bh),
it reads bh->b_data via macro HDR(bh). This may result in a
use-after-free bug. This patch moves brelse(bh) after reading field.

CC: stable@vger.kernel.org
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-05 19:32:11 +01:00
..
…
…
2018-11-13 11:08:46 -08:00
2018-08-21 23:54:17 -04:00
…
…
2018-12-05 19:32:11 +01:00
2018-11-13 11:08:39 -08:00
2018-08-17 16:20:28 -07:00
…
2018-08-17 16:20:27 -07:00
…
…
…
2018-07-03 16:44:45 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…