rtl8139: check IP Total Length field (CVE-2015-5165)
commitc6296ea88df040054ccd781f3945fe103f8c7c17
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 15 Jul 2015 16:34:40 +0000 (15 17:34 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 3 Aug 2015 12:08:06 +0000 (3 13:08 +0100)
tree3a0f9edad012db59b2f9dfc60849aee22d7c6e01
parent03247d43c577dfea8181cd40177ad5ba77c8db76
rtl8139: check IP Total Length field (CVE-2015-5165)

The IP Total Length field includes the IP header and data.  Make sure it
is valid and does not exceed the Ethernet payload size.

Reported-by: 朱东海(启路) <donghai.zdh@alibaba-inc.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/net/rtl8139.c