Paolo Bonzini
57dbb58d80
scsi-generic: avoid out-of-bounds access to VPD page list
...
A device can report an excessive number of VPD pages when asked for a
list; this can cause an out-of-bounds access to buf in
scsi_generic_set_vpd_bl_emulation. It should not happen, but
it is technically not incorrect so handle it: do not check any byte
past the allocation length that was sent to the INQUIRY command.
Reported-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2018-11-06 21:35:05 +01:00
..
2018-10-19 14:51:34 +02:00
2018-09-24 18:49:11 +01:00
2018-02-09 13:50:17 +01:00
2018-10-24 06:44:59 -03:00
2018-11-02 14:11:31 +00:00
2018-10-29 13:50:15 +01:00
2018-08-15 12:50:39 +02:00
2018-01-22 09:51:00 +01:00
2018-11-02 14:03:33 +00:00
2018-10-25 20:17:12 +01:00
2018-08-24 13:17:34 +01:00
2018-07-02 15:41:15 +02:00
2018-10-29 12:59:15 +00:00
2018-08-20 11:24:33 +01:00
2018-06-01 15:14:31 +02:00
2018-10-24 06:44:59 -03:00
2018-10-19 13:44:14 +02:00
2018-10-15 09:57:33 +02:00
2018-10-24 06:44:59 -03:00
2018-10-02 19:09:13 +02:00
2018-10-02 18:47:55 +02:00
2018-10-24 07:50:16 +01:00
2018-07-02 15:41:12 +02:00
2018-08-23 18:46:25 +02:00
2018-10-24 07:33:44 +01:00
2018-07-02 15:41:15 +02:00
2018-07-02 15:41:14 +02:00
2018-11-06 21:35:05 +01:00
2018-07-23 15:21:25 +01:00
2018-10-24 06:44:59 -03:00
2018-11-06 21:35:05 +01:00
2018-10-02 19:08:49 +02:00
2018-10-30 15:49:55 +00:00
2018-07-02 15:41:15 +02:00
2018-10-30 09:12:09 +01:00
2018-04-26 13:57:00 +01:00
2018-10-11 19:58:26 +01:00
2018-09-07 17:05:18 -04:00
2018-11-06 21:35:05 +01:00
2016-01-29 15:07:25 +00:00
2018-10-24 06:44:59 -03:00
2018-08-18 18:01:34 +03:00
2018-10-17 13:02:30 -07:00
2018-10-12 11:32:19 +02:00
2018-11-06 21:35:05 +01:00
2018-10-24 07:50:16 +01:00
2018-10-24 06:44:59 -03:00
2018-10-19 14:51:34 +02:00
2018-08-20 19:18:31 +01:00
2018-10-24 06:44:59 -03:00
2018-10-24 06:44:59 -03:00
2018-10-24 06:44:59 -03:00
2018-10-30 17:34:22 -04:00
2018-07-02 15:41:14 +02:00
2018-03-12 16:12:48 +01:00
2018-10-30 13:32:38 +00:00
2018-11-05 09:55:01 +01:00
2018-10-23 17:20:23 +01:00
2018-08-28 18:21:38 +02:00
2018-10-26 17:17:32 +02:00
2018-07-02 15:41:13 +02:00
2018-07-02 15:41:14 +02:00
2018-10-24 06:44:59 -03:00