diff options
author | Fedor Pchelkin <[email protected]> | 2023-01-17 13:52:26 +0300 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-01-31 16:44:08 -0800 |
commit | 72e544b1b28325fe78a4687b980871a7e4101f76 (patch) | |
tree | 9962f7fdd3d5c3ec02f968ce2103f085a97af802 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 6f28a2613497fc587e347afa99fa2c52230678a7 (diff) |
squashfs: harden sanity check in squashfs_read_xattr_id_table
While mounting a corrupted filesystem, a signed integer '*xattr_ids' can
become less than zero. This leads to the incorrect computation of 'len'
and 'indexes' values which can cause null-ptr-deref in copy_bio_to_actor()
or out-of-bounds accesses in the next sanity checks inside
squashfs_read_xattr_id_table().
Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 506220d2ba21 ("squashfs: add more sanity checks in xattr id lookup")
Reported-by: <[email protected]>
Signed-off-by: Fedor Pchelkin <[email protected]>
Signed-off-by: Alexey Khoroshilov <[email protected]>
Cc: Phillip Lougher <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions