]> xenbits.xensource.com Git - qemu-upstream-4.4-testing.git/commit
e1000: Avoid infinite loop in processing transmit descriptor (CVE-2015-6815)
authorP J P <pjp@fedoraproject.org>
Fri, 4 Sep 2015 16:21:06 +0000 (17:21 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 15 Sep 2015 14:11:40 +0000 (14:11 +0000)
commitf341982be6fa86d98f68f8200388b4f812aebf79
tree7ac3bf58261eb978e4b2923b6edfd3b96284fd16
parent181e2e0ff39cbfeab173fa6d6b31839f00efcd06
e1000: Avoid infinite loop in processing transmit descriptor (CVE-2015-6815)

While processing transmit descriptors, it could lead to an infinite
loop if 'bytes' was to become zero; Add a check to avoid it.

[The guest can force 'bytes' to 0 by setting the hdr_len and mss
descriptor fields to 0.
--Stefan]

upstream-commit-id: b947ac2bf26479e710489739c465c8af336599e7

Signed-off-by: P J P <pjp@fedoraproject.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-id: 1441383666-6590-1-git-send-email-stefanha@redhat.com
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/net/e1000.c