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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:40:11 +0000 (09:40 +0100)
commit384aa697d8f2a28b5e962f5292cdfd2e528b5df7
treea1b778d0a980014e68d5b9198a5614f543cc1028
parent2b28a7d261cb309912596d6a2d383ca370483527
scsi: ses: Fix possible addl_desc_ptr out-of-bounds accesses

commit db95d4df71cb55506425b6e4a5f8d68e3a765b63 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/ses.c