An integer overflow in process_bin_sasl_auth function which is responsible for authentication commands of Memcached binary protocol can be abused to cause heap overflow and lead to remote code execution. External References: http://www.talosintelligence.com/reports/TALOS-2016-0221/ Upstream patch: https://github.com/memcached/memcached/commit/bd578fc34b96abe0f8d99c1409814a09f51ee71c
Created memcached tracking bugs for this issue: Affects: fedora-all [bug 1390513] Affects: epel-5 [bug 1390514]
This flaw requires memcached compiled with SASL authentication enabled, as is the case for Red Hat Enterprise Linux 7.3. Red Hat Enterprise Linux 7.2 and 6.x memcached packages are compiled without SASL support, so they are not affected.
Mitigation: This flaw requires memcached to be running with SASL authentication enabled, which is not the default setting. If your memcached instances are running without the "-S" command-line option, they are not vulnerable.
This issue has been addressed in the following products: Red Hat Enterprise Linux 7 Via RHSA-2016:2819 https://rhn.redhat.com/errata/RHSA-2016-2819.html
Statement: The version of memcached as shipped with Red Hat OpenStack Platform 9 is affected by this issue however will not be updated. The latest version of memcached from Red Hat Enterprise Linux 7 can safely be allowed to supersede the earlier versions provided in the Red Hat OpenStack Platform channels.