Bug 1200034 - varnish: heap-based buffer overflow in backend server HTTP response parsing
Summary: varnish: heap-based buffer overflow in backend server HTTP response parsing
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1200035 1200036
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-09 14:56 UTC by Martin Prpič
Modified: 2019-09-29 13:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-20 14:19:36 UTC
Embargoed:


Attachments (Terms of Use)

Description Martin Prpič 2015-03-09 14:56:58 UTC
A heap-based buffer overflow flaw was reported (including a reproducer) in varnish, a high-performance HTTP accelerator:

http://seclists.org/oss-sec/2015/q1/776

Comment 1 Martin Prpič 2015-03-09 14:57:28 UTC
Created varnish tracking bugs for this issue:

Affects: fedora-all [bug 1200035]
Affects: epel-all [bug 1200036]

Comment 2 Ingvar Hagelund 2015-03-11 10:03:49 UTC
* I have contacted upstream, and talked to Poul-Henning Kamp. His preliminary response:

  "I don't consider this a security issue.  Two reasons:  1. it's the backend, 
  2. I cannot see any way to exploit it. It's just a crash that shouldn't 
  happen IMO."

  That varnish trusts the backends has been discussed several times on the 
  oss-sec mailing list. I think that is out of scope for this bug.

  He has also had a look at the code that provokes the actual crash, and
  may eventually produce a patch fixing it.


* I have not been able to reproduce the crash locally.


* I have contacted the reporter. He is not able to reproduce the crash at 
  will. The bug is trigged with "magic numbers" as done in the reproducing 
  script, but the actual numbers to use may depend on the VM layout on the 
  specific machine. He should try to make a more predictable way to trig the 
  bug, and come back to me if he manages.


Based on this, I let this bug rest as NEW until I get more information.


Ingvar

Comment 3 Ingvar Hagelund 2015-03-16 16:25:55 UTC
Patch based on upstream commit 9d61ea4d722549a984d912603902fccfac473824 added. varnish-4.0.3-3 pushed to testing f21, f22, and epel7.

Ingvar

Comment 4 Fedora Update System 2015-03-23 07:09:04 UTC
varnish-4.0.3-3.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Ingvar Hagelund 2015-05-20 14:19:36 UTC
varnish-4.0.3-3 updates have had status stable in fc21, fc22, el7, for 64 days. I'm closing this now.


Note You need to log in before you can comment on or make changes to this bug.