mirror of
https://github.com/mii443/qemu.git
synced 2025-08-24 07:59:42 +00:00
CVE-2013-4539
s->precision, nextprecision, function and nextfunction
come from wire and are used
as idx into resolution[] in TSC_CUT_RESOLUTION.
Validate after load to avoid buffer overrun.
Cc: Andreas Färber <afaerber@suse.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
(cherry picked from commit 5193be3be3
)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>