Bug 1471970 (CVE-2017-9951) - CVE-2017-9951 memcached: Heap-based buffer over-read in try_read_command function (incomplete fix for CVE-2016-8705)
Summary: CVE-2017-9951 memcached: Heap-based buffer over-read in try_read_command func...
Status: CLOSED ERRATA
Alias: CVE-2017-9951
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
(Show other bugs)
Version: unspecified
Hardware: All Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=low,public=20170717,reported=2...
Keywords: Security
Depends On: 1471972 1485737 1543405 1594877
Blocks: 1485738
TreeView+ depends on / blocked
 
Reported: 2017-07-17 19:54 UTC by Pedro Sampaio
Modified: 2018-07-31 07:02 UTC (History)
29 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-12-07 04:53:44 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description Pedro Sampaio 2017-07-17 19:54:19 UTC
The try_read_command function in memcached.c in memcached before 1.4.39 allows remote attackers to cause a denial of service (segmentation fault) via a request to add/set a key, which makes a comparison between signed and unsigned int and triggers a heap-based buffer over-read. NOTE: this vulnerability exists because of an incomplete fix for CVE-2016-8705. 

References:

https://www.twistlock.com/2017/07/13/cve-2017-9951-heap-overflow-memcached-server-1-4-38-twistlock-vulnerability-report/
https://github.com/memcached/memcached/wiki/ReleaseNotes1439
https://groups.google.com/forum/message/raw?msg=memcached/ubGWrkmrr4E/nrm1SeVJAQAJ

Comment 1 Pedro Sampaio 2017-07-17 19:57:04 UTC
Created memcached tracking bugs for this issue:

Affects: fedora-all [bug 1471972]

Comment 2 Jon Schlueter 2017-08-24 18:20:57 UTC
RDO has memcached-1.4.39-1.el7 which includes fix for this CVE according to change log.

Comment 7 Doran Moppert 2017-08-28 03:45:49 UTC
Mitigation:

This flaw is in the memcached binary protocol. If your client programs only use the ASCII protocol when communicating with memcached, you can disable the binary protocol and protect against this flaw by adding "-B ascii" to OPTIONS in /etc/sysconfig/memcached.

Comment 8 Joshua Padman 2017-12-07 05:09:18 UTC
Statement:

Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.


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