All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] scsi-disk: fix race between WRITE SAME and MODE SELECT
@ 2026-08-26 18:17 Paolo Bonzini
  2026-08-26 18:17 ` [PATCH 1/2] scsi-disk: fix out-of-bound read in WRITE SAME Paolo Bonzini
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Paolo Bonzini @ 2026-08-26 18:17 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-stable, Mark Cave-Ayland

A guest with an attached scsi-hd can force QEMU's SCSI disk emulation
to read roughly 60 KiB past the end of a heap buffer, copying that out
of bounds host memory into the guest's own disk image.

This is due to a race between WRITE SAME and an obscure MODE SELECT
feature which can be restricted to the Q800 machine.

Paolo

Paolo Bonzini (2):
  scsi-disk: fix out-of-bound read in WRITE SAME
  scsi: hide MODE SELECT block size change behind a quirk

 include/hw/scsi/scsi.h |  1 +
 hw/m68k/q800.c         |  2 ++
 hw/scsi/scsi-disk.c    | 17 +++++++++++++----
 3 files changed, 16 insertions(+), 4 deletions(-)

-- 
2.55.0



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-08-27 20:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-26 18:17 [PATCH 0/2] scsi-disk: fix race between WRITE SAME and MODE SELECT Paolo Bonzini
2026-08-26 18:17 ` [PATCH 1/2] scsi-disk: fix out-of-bound read in WRITE SAME Paolo Bonzini
2026-08-26 18:59   ` Philippe Mathieu-Daudé
2026-08-26 18:17 ` [PATCH 2/2] scsi: hide MODE SELECT block size change behind a quirk Paolo Bonzini
2026-08-27 20:12   ` Mark Cave-Ayland
2026-08-26 18:52 ` [PATCH 0/2] scsi-disk: fix race between WRITE SAME and MODE SELECT Stefan Hajnoczi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.