Skip to content
Snippets Groups Projects
Commit 9bd634b2 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

scsi-generic: fix buffer overflow on block limits inquiry


Using linux 6.x guest, at boot time, an inquiry on a scsi-generic
device makes qemu crash.  This is caused by a buffer overflow when
scsi-generic patches the block limits VPD page.

Do the operations on a temporary on-stack buffer that is guaranteed
to be large enough.

Reported-by: default avatarThéo Maillart <tmaillart@freebox.fr>
Analyzed-by: default avatarThéo Maillart <tmaillart@freebox.fr>
Cc: qemu-stable@nongnu.org
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent c9214c93
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment