diff options
| author | Michael S. Tsirkin <mst@redhat.com> | 2014-04-03 19:51:57 +0300 |
|---|---|---|
| committer | Juan Quintela <quintela@redhat.com> | 2014-05-05 22:15:02 +0200 |
| commit | caa881abe0e01f9931125a0977ec33c5343e4aa7 (patch) | |
| tree | 6938ea78f83cc1373a55f59da1f69febbf96862f /hw/gpio/zaurus.c | |
| parent | 36cf2a37132c7f01fa9adb5f95f5312b27742fd4 (diff) | |
| download | focaccia-qemu-caa881abe0e01f9931125a0977ec33c5343e4aa7.tar.gz focaccia-qemu-caa881abe0e01f9931125a0977ec33c5343e4aa7.zip | |
pxa2xx: avoid buffer overrun on incoming migration
CVE-2013-4533 s->rx_level is read from the wire and used to determine how many bytes to subsequently read into s->rx_fifo[]. If s->rx_level exceeds the length of s->rx_fifo[] the buffer can be overrun with arbitrary data from the wire. Fix this by validating rx_level against the size of s->rx_fifo. Cc: Don Koch <dkoch@verizon.com> Reported-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Don Koch <dkoch@verizon.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'hw/gpio/zaurus.c')
0 files changed, 0 insertions, 0 deletions