Description
The process_stat function in (1) Memcached before 1.2.8 and (2) MemcacheDB 1.2.0 discloses (a) the contents of /proc/self/maps in response to a stats maps command and (b) memory-allocation statistics in response to a stats malloc command, which allows remote attackers to obtain sensitive information such as the locations of memory regions, and defeat ASLR protection, by sending a command to the daemon's TCP port.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | memcached | 1.2.8-1 | — |
| Debian 13 | memcached | 1.2.8-1 | — |
| Debian 12 | memcached | 1.2.8-1 | — |
References
- FEDORA-2009-4542 vendor-advisory
- memcachedb-procselfmaps-info-disclosure(50221) vdb-entry
- MDVSA-2009:105 vendor-advisory
- http://www.positronsecurity.com/advisories/2009-001.html
- 1022140 vdb-entry
- FEDORA-2009-4199 vendor-advisory
- http://code.google.com/p/memcachedb/source/diff?spec=svn98&r=98&format=side&path=/trunk/memcachedb.c
- 20090428 Positron Security Advisory #2009-001: Memcached and MemcacheDB ASLR Bypass Weakness mailing-list
- 20090428 Positron Security Advisory #2009-001: Memcached and MemcacheDB ASLR Bypass Weakness mailing-list
- http://groups.google.com/group/memcached/browse_thread/thread/ff96a9b88fb5d40e
- 35175 third-party-advisory
- 54127 vdb-entry
- http://code.google.com/p/memcachedb/source/browse/trunk/ChangeLog?spec=svn98&r=98
- http://code.google.com/p/memcachedb/source/detail?r=98
- 34756 vdb-entry
- ADV-2009-1196 vdb-entry
- 34932 third-party-advisory
- 34915 third-party-advisory
- ADV-2009-1197 vdb-entry