Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:Alexander_Naumov:SLE-12:Update
qemu.4227
0260-e1000-Avoid-infinite-loop-in-proces.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0260-e1000-Avoid-infinite-loop-in-proces.patch of Package qemu.4227
From 015392f25812cb04180d740692c71734ae0ca4ce Mon Sep 17 00:00:00 2001 From: P J P <pjp@fedoraproject.org> Date: Fri, 4 Sep 2015 17:21:06 +0100 Subject: [PATCH] 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] 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 (cherry picked from commit b947ac2bf26479e710489739c465c8af336599e7) [BR: CVE-2015-6815 BSC#944697] Signed-off-by: Bruce Rogers <brogers@suse.com> --- hw/net/e1000.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/net/e1000.c b/hw/net/e1000.c index 38cd8b946b..a8eda63992 100644 --- a/hw/net/e1000.c +++ b/hw/net/e1000.c @@ -707,7 +707,8 @@ process_tx_desc(E1000State *s, struct e1000_tx_desc *dp) memmove(tp->data, tp->header, tp->hdr_len); tp->size = tp->hdr_len; } - } while (split_size -= bytes); + split_size -= bytes; + } while (bytes && split_size); } else if (!tp->tse && tp->cptse) { // context descriptor TSE is not set, while data descriptor TSE is set DBGOUT(TXERR, "TCP segmentation error\n");
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor