aboutsummaryrefslogtreecommitdiff
path: root/tci.c
diff options
context:
space:
mode:
authorPrasad J Pandit <pjp@fedoraproject.org>2015-11-20 11:50:31 +0530
committerJason Wang <jasowang@redhat.com>2015-12-07 21:43:48 +0800
commit837f21aacf5a714c23ddaadbbc5212f9b661e3f7 (patch)
tree62f3850f076bb0ba98ffb6594abeb4d30122f415 /tci.c
parent9596ef7c7b8528bedb240792ea1fb598543ad3c4 (diff)
downloadqemu-837f21aacf5a714c23ddaadbbc5212f9b661e3f7.zip
qemu-837f21aacf5a714c23ddaadbbc5212f9b661e3f7.tar.gz
qemu-837f21aacf5a714c23ddaadbbc5212f9b661e3f7.tar.bz2
net: pcnet: add check to validate receive data size(CVE-2015-7504)
In loopback mode, pcnet_receive routine appends CRC code to the receive buffer. If the data size given is same as the buffer size, the appended CRC code overwrites 4 bytes after s->buffer. Added a check to avoid that. Reported by: Qinghao Tang <luodalongde@gmail.com> Cc: qemu-stable@nongnu.org Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'tci.c')
0 files changed, 0 insertions, 0 deletions