scsi: ses: Fix possible addl_desc_ptr out-of-bounds accesses
authorTomas Henzl <thenzl@redhat.com>
Thu, 2 Feb 2023 16:24:49 +0000 (17:24 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 21 Feb 2023 22:32:03 +0000 (17:32 -0500)
commitdb95d4df71cb55506425b6e4a5f8d68e3a765b63
treef2671dcb60b3a4c54cbb11f7d3d7bfc7120d780d
parent9b4f5028e493cb353a5c8f5c45073eeea0303abd
scsi: ses: Fix possible addl_desc_ptr out-of-bounds accesses

Sanitize possible addl_desc_ptr out-of-bounds accesses in
ses_enclosure_data_process().

Link: https://lore.kernel.org/r/20230202162451.15346-3-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>
drivers/scsi/ses.c