Tomas Henzl 578797f0c8 scsi: ses: Fix slab-out-of-bounds in ses_intf_remove()
A fix for:

BUG: KASAN: slab-out-of-bounds in ses_intf_remove+0x23f/0x270 [ses]
Read of size 8 at addr ffff88a10d32e5d8 by task rmmod/12013

When edev->components is zero, accessing edev->component[0] members is
wrong.

Link: https://lore.kernel.org/r/20230202162451.15346-5-thenzl@redhat.com
Cc: stable@vger.kernel.org
Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-02-21 17:32:04 -05:00
..
2022-12-14 08:58:51 -08:00
2022-08-04 19:47:37 -07:00
2022-05-23 23:24:10 -04:00
2023-02-08 19:02:04 -05:00
2022-02-22 21:11:02 -05:00
2023-01-13 21:34:08 -05:00
2022-06-27 22:56:21 -04:00
2022-01-25 00:09:41 -05:00
2022-02-22 21:11:02 -05:00
2022-12-14 08:58:51 -08:00
2022-12-14 08:58:51 -08:00
2022-12-14 08:58:51 -08:00
2022-12-14 08:58:51 -08:00
2022-05-08 14:28:18 -04:00
2023-01-13 21:34:09 -05:00
2022-12-22 11:22:31 -08:00
2021-12-22 23:41:13 -05:00
2023-01-13 21:34:09 -05:00
2022-10-07 12:33:18 -07:00
2022-12-14 08:58:51 -08:00