diff options
| author | Linus Torvalds <[email protected]> | 2018-07-29 19:44:46 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2018-07-29 19:44:46 +0000 |
| commit | 01cfb7937a9af2abb1136c7e89fbf3fd92952956 (patch) | |
| tree | 2b01fbc7eb315150d5a0ed71a218e4008801138b /lib/debugobjects.c | |
| parent | Merge tag 'random_for_linus_stable' of git://git.kernel.org/pub/scm/linux/ker... (diff) | |
| download | kernel-01cfb7937a9af2abb1136c7e89fbf3fd92952956.tar.gz kernel-01cfb7937a9af2abb1136c7e89fbf3fd92952956.zip | |
squashfs: be more careful about metadata corruption
Anatoly Trosinenko reports that a corrupted squashfs image can cause a
kernel oops. It turns out that squashfs can end up being confused about
negative fragment lengths.
The regular squashfs_read_data() does check for negative lengths, but
squashfs_read_metadata() did not, and the fragment size code just
blindly trusted the on-disk value. Fix both the fragment parsing and
the metadata reading code.
Reported-by: Anatoly Trosinenko <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Phillip Lougher <[email protected]>
Cc: [email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
