]> xenbits.xensource.com Git - qemu-xen.git/commit
multiboot: validate multiboot header address values
authorPrasad J Pandit <pjp@fedoraproject.org>
Thu, 7 Sep 2017 06:32:56 +0000 (12:02 +0530)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 22 Sep 2017 23:11:49 +0000 (18:11 -0500)
commitfca5f37fe9016cfea90c31d3e35e4154ef1a7f28
tree13b15f1147313452eee6543a3da593aeaf911d89
parent2965be1f00d88972650b6dc4bdc28976d2c66043
multiboot: validate multiboot header address values

While loading kernel via multiboot-v1 image, (flags & 0x00010000)
indicates that multiboot header contains valid addresses to load
the kernel image. These addresses are used to compute kernel
size and kernel text offset in the OS image. Validate these
address values to avoid an OOB access issue.

This is CVE-2017-14167.

Reported-by: Thomas Garnier <thgarnie@google.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-Id: <20170907063256.7418-1-ppandit@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit ed4f86e8b6eff8e600c69adee68c7cd34dd2cccb)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/i386/multiboot.c