Title: Secure Locate Heap Corruption Vulnerability
Severity: INFO
Description:
Secure Locate maintains an index of the entire filesystem, including files only visible by root. The slocate binary is setgid "slocate" so it can read this index. Slocate contains a heap-corruption vulnerability that may compromise disclosure of these files if exploited.
When running slocate, users are able to specify a database of their own as a commandline parameter. A subtle vulnerability exists in slocate's reading of these user-supplied databases that may allow a local user to execute arbitrary code with effective gid slocate.
When reading the contents of the database file, slocate initially reads a value from the file that is supposed to indicate the offset in a malloc()'d buffer at which the data is to be written. If this number exceeds the size of the allocated buffer, the bytes from the file will be written to the memory following the buffer, the malloc structure.
As a result, it is possible for a local user to overwrite internal malloc memory structures on the heap with arbitrary data. Attackers can replace a legitimate malloc structure with a malicious one designed to cause other areas of memory to be overwritten.
Affected Products:
- Debian Linux 2.2.0 68k
- Debian Linux 2.2.0 alpha
- Debian Linux 2.2.0 arm
- Debian Linux 2.2.0 powerpc
- Debian Linux 2.2.0 sparc
- Kevin Lindsay Secure Locate 1.4.0
- Kevin Lindsay Secure Locate 1.5.0
- Kevin Lindsay Secure Locate 1.6.0
- Kevin Lindsay Secure Locate 2.0.0
- Kevin Lindsay Secure Locate 2.1.0
- Kevin Lindsay Secure Locate 2.2.0
- MandrakeSoft Linux Mandrake 7.1.0
- MandrakeSoft Linux Mandrake 7.2.0
- RedHat Linux 6.1.0 alpha
- RedHat Linux 6.1.0 i386
- RedHat Linux 6.1.0 sparc
- RedHat Linux 6.2.0 alpha
- RedHat Linux 6.2.0 i386
- RedHat Linux 6.2.0 sparc
- RedHat Linux 7.0.0 i386
Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.