diff options
| author | Artem Sadovnikov <[email protected]> | 2024-10-05 10:06:57 +0000 |
|---|---|---|
| committer | Dave Kleikamp <[email protected]> | 2024-10-29 22:17:43 +0000 |
| commit | d9f9d96136cba8fedd647d2c024342ce090133c2 (patch) | |
| tree | 2693d52666d610492967eb388ef744579ad5c524 /drivers/usb/cdns3/cdns3-ti.c | |
| parent | jfs: fix array-index-out-of-bounds in jfs_readdir (diff) | |
| download | kernel-d9f9d96136cba8fedd647d2c024342ce090133c2.tar.gz kernel-d9f9d96136cba8fedd647d2c024342ce090133c2.zip | |
jfs: xattr: check invalid xattr size more strictly
Commit 7c55b78818cf ("jfs: xattr: fix buffer overflow for invalid xattr")
also addresses this issue but it only fixes it for positive values, while
ea_size is an integer type and can take negative values, e.g. in case of
a corrupted filesystem. This still breaks validation and would overflow
because of implicit conversion from int to size_t in print_hex_dump().
Fix this issue by clamping the ea_size value instead.
Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
Cc: [email protected]
Signed-off-by: Artem Sadovnikov <[email protected]>
Signed-off-by: Dave Kleikamp <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions
