Skip to content

ses: prevent from out of bounds accesses

Tomas Henzl linux-scsi 2 versions – Applied

Status from this message: Applied to 6.3/scsi-staging, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesApplied
  2. v14 patches 1 replySuperseded

Changes from the cover letter

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4ses: fix slab-out-of-bounds reported by KASAN in ses_enclosure_data_processdrivers/scsi/ses.c+4 -20 replies
2/4ses: fix possible addl_desc_ptr out-of-bounds accesses in ses_enclosure_data_processdrivers/scsi/ses.c+26 -90 replies
3/4ses: fix possible desc_ptr out-of-bounds accesses in ses_enclosure_data_processdrivers/scsi/ses.c+9 -50 replies
4/4ses: fix slab-out-of-bounds reported by KASAN in ses_intf_removedrivers/scsi/ses.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] ses: prevent from out of bounds accesses

First patch fixes a KASAN reported problem
Second patch fixes other possible places in ses_enclosure_data_process where the max_desc_len might access memory out of bounds. 3/4 does the same for desc_ptr in ses_enclosure_data_process. The last patch fixes another KASAN report in ses_intf_remove.

Changes:
v1: cc-ed [email protected]

Tomas Henzl (4):
ses: fix slab-out-of-bounds reported by KASAN in ses_enclosure_data_process
ses: fix possible addl_desc_ptr out-of-bounds accesses in ses_enclosure_data_process
ses: fix possible desc_ptr out-of-bounds accesses in ses_enclosure_data_process
ses: fix slab-out-of-bounds reported by KASAN in ses_intf_remove

 drivers/scsi/ses.c | 58 ++++++++++++++++++++++++++++++++--------------
 1 file changed, 41 insertions(+), 17 deletions(-)
Signature · 1 line
2.38.1