Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
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...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2017-9951
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1471972 1485737 1543405 1594877
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-17 19:54 UTC by Pedro Sampaio
Modified: 2021-02-17 01:55 UTC (History)
29 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-12-07 04:53:44 UTC
Embargoed:


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.