From: Jeff Trawick Date: Tue, 15 Jul 2014 11:15:26 +0000 (+0000) Subject: SECURITY (CVE-2014-0226): Fix a memory consumption denial of X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a5460f32415c2087b6dd5f67281b111a916a79b;p=thirdparty%2Fapache%2Fhttpd.git SECURITY (CVE-2014-0226): Fix a memory consumption denial of service in the WinNT MPM used in all Windows installations. Workaround: AcceptFilter {none|connect} Submitted by: trawick Reviewed by: jorton, covener, jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1610652 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/winnt/child.c b/server/mpm/winnt/child.c index a769a9e659a..34aa1080db3 100644 --- a/server/mpm/winnt/child.c +++ b/server/mpm/winnt/child.c @@ -601,8 +601,12 @@ reinit: /* target of data or connect upon too many AcceptEx failures */ b->length = BytesRead; context->overlapped.Pointer = b; } - else + else { + if (accf == 2) { + apr_bucket_free(buf); + } context->overlapped.Pointer = NULL; + } } else /* (accf = 0) e.g. 'none' */ {