Vigil@nce - QEMU: buffer overflow via iscsi_aio_ioctl
June 2016 by Vigil@nce
This bulletin was written by Vigil@nce : https://vigilance.fr/offer
SYNTHESIS OF THE VULNERABILITY
An attacker can generate a buffer overflow via iscsi_aio_ioctl of
QEMU, in order to trigger a denial of service, and possibly to run
code.
– Impacted products: QEMU.
– Severity: 1/4.
– Creation date: 31/05/2016.
DESCRIPTION OF THE VULNERABILITY
The QEMU product can emulate iSCSI devices.
The C routine iscsi_aio_ioctl manage special commands sent to the
device from the userspace, normally by a privileged process in the
guest system. These commands must have a length lower than the
constant SCSI_CDB_MAX_SIZE. However, this routine does not check
whether the actual command size of lower than the limit.
An attacker can therefore generate a buffer overflow via
iscsi_aio_ioctl of QEMU, in order to trigger a denial of service,
and possibly to run code.
ACCESS TO THE COMPLETE VIGIL@NCE BULLETIN
https://vigilance.fr/vulnerability/QEMU-buffer-overflow-via-iscsi-aio-ioctl-19735