Asias He 846424350b scsi: Allocate SCSITargetReq r->buf dynamically [CVE-2013-4344]
r->buf is hardcoded to 2056 which is (256 + 1) * 8, allowing 256 luns at
most. If more than 256 luns are specified by user, we have buffer
overflow in scsi_target_emulate_report_luns.

To fix, we allocate the buffer dynamically.

Signed-off-by: Asias He <asias@redhat.com>
Tested-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2013-10-09 17:24:18 +02:00
..
2013-06-07 14:55:33 +02:00
2013-04-29 08:27:47 -05:00
2013-07-29 21:06:28 +02:00
2013-05-01 13:06:07 +02:00
2013-07-29 21:06:27 +02:00
2013-09-30 17:15:01 -05:00
2013-08-28 10:16:47 +03:00
2013-06-27 15:38:35 -05:00
2013-08-21 00:18:39 +03:00
2013-05-01 20:55:21 +04:00
2013-04-16 10:04:23 +02:00