diff options
author | Pan Bian <bianpan2016@163.com> | 2018-11-25 08:58:02 +0800 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2018-11-27 10:21:15 +0100 |
commit | ecebf55d27a11538ea84aee0be643dd953f830d5 (patch) | |
tree | 5f017acb4a15f183e2c0bbb28ffe4487824c6493 /firmware | |
parent | e5f5b717983bccfa033282e9886811635602510e (diff) | |
download | linux-stable-ecebf55d27a11538ea84aee0be643dd953f830d5.tar.gz linux-stable-ecebf55d27a11538ea84aee0be643dd953f830d5.tar.bz2 linux-stable-ecebf55d27a11538ea84aee0be643dd953f830d5.zip |
ext2: fix potential use after free
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>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions