Mauro Matteo Cascella b3af7fdf9c hw/scsi/scsi-disk: MODE_PAGE_ALLS not allowed in MODE SELECT commands
This avoids an off-by-one read of 'mode_sense_valid' buffer in
hw/scsi/scsi-disk.c:mode_sense_page().

Fixes: CVE-2021-3930
Cc: qemu-stable@nongnu.org
Reported-by: Alexander Bulekov <alxndr@bu.edu>
Fixes: a8f4bbe2900 ("scsi-disk: store valid mode pages in a table")
Fixes: #546
Reported-by: Qiuhao Li <Qiuhao.Li@outlook.com>
Signed-off-by: Mauro Matteo Cascella <mcascell@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-11-08 08:55:29 +01:00
..
2021-10-27 14:45:22 +02:00
2021-11-01 18:49:10 -04:00
2021-10-12 08:20:08 +02:00
2021-11-05 11:32:00 +08:00
2021-10-12 08:20:08 +02:00
2021-11-03 13:07:30 -04:00
2021-10-18 00:41:36 +02:00
2021-11-02 17:24:18 +01:00
2021-11-05 11:31:42 +08:00
2021-11-02 14:14:55 -04:00
2021-11-02 19:24:17 -04:00