[OSS-Fuzz] Issue 27796 in oss-fuzz: qemu:qemu-fuzz-i386-target-generic-fuzz-xhci: Stack-overflow in address_space_stl_internal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
affects qemu
OSS-Fuzz Report: https:/
=== Reproducer (build with --enable-
cat << EOF | ./qemu-system-i386 -display none -machine accel=qtest, \
-m 512M -machine q35 -nodefaults \
-drive file=null-
-device qemu-xhci,id=xhci -device usb-tablet,
-qtest-log none -qtest stdio
outl 0xcf8 0x80000803
outw 0xcfc 0x5e46
outl 0xcf8 0x80000810
outl 0xcfc 0xff5a5e46
write 0xff5a5020 0x6 0xffffffff0b70
outl 0xcf8 0x80000893
outb 0xcfc 0x93
writel 0xff5a7000 0xff5a5020
write 0xff5a700c 0x4 0x0c0c2e58
write 0xff5a4040 0x4 0x00d26001
write 0xff5a4044 0x4 0x0000030
EOF
=== Stack Trace ===
==50473==ERROR: AddressSanitizer: stack-overflow on address 0x7ffe3ec97e28 (pc 0x55e292eac159 bp 0x7ffe3ec98670 sp 0x7ffe3ec97e30 T0)
#0 0x55e292eac159 in __asan_memcpy (u-system-
#1 0x55e2944bc04e in flatview_
#2 0x55e2944dbe90 in flatview_translate softmmu/
#3 0x55e2944dbe90 in address_
#4 0x55e2944dbe90 in address_
#5 0x55e29393d2a0 in xhci_intr_update hw/usb/
#6 0x55e29393efb9 in xhci_runtime_write hw/usb/
#7 0x55e294230428 in memory_
#8 0x55e29422fe63 in access_
#9 0x55e29422f6fc in memory_
#10 0x55e2944dc03c in address_
#11 0x55e29393d2a0 in xhci_intr_update hw/usb/
#12 0x55e29393efb9 in xhci_runtime_write hw/usb/
#13 0x55e294230428 in memory_
#14 0x55e29422fe63 in access_
#15 0x55e29422f6fc in memory_
#16 0x55e2944dc03c in address_
#17 0x55e29393d2a0 in xhci_intr_update hw/usb/
#18 0x55e29393efb9 in xhci_runtime_write hw/usb/
tags: | added: fuzzer |
Changed in qemu: | |
status: | Fix Committed → Fix Released |
As mentioned by Alexander here: /lists. gnu.org/ archive/ html/qemu- devel/2021- 05/msg08637. html /gitlab. com/qemu- project/ qemu/-/ commit/ 3c6151cd11ae7e4 a7dae10f8c17ab1 fe2f0a73bf
https:/
this has likely been fixed by this commit here:
https:/
... thus I'm marking this as fixed now. If it occurs again, please open a new ticket in the Gitlab bug tracker. Thanks!