Petr Matousek 9f7c594c00 pcnet: force the buffer access to be in bounds during tx
4096 is the maximum length per TMD and it is also currently the size of
the relay buffer pcnet driver uses for sending the packet data to QEMU
for further processing. With packet spanning multiple TMDs it can
happen that the overall packet size will be bigger than sizeof(buffer),
which results in memory corruption.

Fix this by only allowing to queue maximum sizeof(buffer) bytes.

This is CVE-2015-3209.

[Fixed 3-space indentation to QEMU's 4-space coding standard.
--Stefan]

Signed-off-by: Petr Matousek <pmatouse@redhat.com>
Reported-by: Matt Tait <matttait@google.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2015-06-10 15:03:02 +01:00
2015-06-04 18:33:24 +01:00
2015-03-19 11:30:37 +03:00
2015-05-29 12:53:12 +02:00
2015-05-11 08:59:07 -04:00
2015-05-29 10:30:06 +02:00
2015-04-04 09:45:59 +03:00
2015-05-29 12:53:12 +02:00
2015-04-28 15:36:09 +02:00
2015-06-04 14:04:14 +01:00
2015-06-03 14:21:24 +03:00
2015-04-30 16:05:48 +03:00
2015-05-08 14:11:10 +03:00
2015-06-02 15:15:52 -03:00
2015-06-03 14:21:24 +03:00
2015-05-22 17:08:01 +02:00
2015-05-11 08:59:07 -04:00
2015-05-22 15:58:22 -04:00
2015-05-14 12:15:18 -07:00
2015-04-25 22:05:07 +01:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%