Debian Security Advisory

DSA-428-1 slocate -- buffer overflow

Date Reported:
20 Jan 2004
Affected Packages:
slocate
Vulnerable:
Yes
Security database references:
In the Bugtraq database (at SecurityFocus): BugTraq ID 8780.
In Mitre's CVE dictionary: CVE-2003-0848.
CERT's vulnerabilities, advisories and incident notes: VU#441956.
More information:

A vulnerability was discovered in slocate, a program to index and search for files, whereby a specially crafted database could overflow a heap-based buffer. This vulnerability could be exploited by a local attacker to gain the privileges of the "slocate" group, which can access the global database containing a list of pathnames of all files on the system, including those which should only be visible to privileged users.

This problem, and a category of potential similar problems, have been fixed by modifying slocate to drop privileges before reading a user-supplied database.

For the current stable distribution (woody) this problem has been fixed in version 2.6-1.3.2.

For the unstable distribution (sid) this problem will be fixed soon. Refer to Debian bug #226103 for status information.

We recommend that you update your slocate package.

Fixed in:

Debian GNU/Linux 3.0 (woody)

Source:
http://security.debian.org/pool/updates/main/s/slocate/slocate_2.6-1.3.2.dsc
http://security.debian.org/pool/updates/main/s/slocate/slocate_2.6-1.3.2.diff.gz
http://security.debian.org/pool/updates/main/s/slocate/slocate_2.6.orig.tar.gz
Alpha:
http://security.debian.org/pool/updates/main/s/slocate/slocate_2.6-1.3.2_alpha.deb
ARM:
http://security.debian.org/pool/updates/main/s/slocate/slocate_2.6-1.3.2_arm.deb
Intel IA-32:
http://security.debian.org/pool/updates/main/s/slocate/slocate_2.6-1.3.2_i386.deb
Intel IA-64:
http://security.debian.org/pool/updates/main/s/slocate/slocate_2.6-1.3.2_ia64.deb
HPPA:
http://security.debian.org/pool/updates/main/s/slocate/slocate_2.6-1.3.2_hppa.deb
Motorola 680x0:
http://security.debian.org/pool/updates/main/s/slocate/slocate_2.6-1.3.2_m68k.deb
Big endian MIPS:
http://security.debian.org/pool/updates/main/s/slocate/slocate_2.6-1.3.2_mips.deb
Little endian MIPS:
http://security.debian.org/pool/updates/main/s/slocate/slocate_2.6-1.3.1_mipsel.deb
PowerPC:
http://security.debian.org/pool/updates/main/s/slocate/slocate_2.6-1.3.2_powerpc.deb
IBM S/390:
http://security.debian.org/pool/updates/main/s/slocate/slocate_2.6-1.3.2_s390.deb
Sun Sparc:
http://security.debian.org/pool/updates/main/s/slocate/slocate_2.6-1.3.2_sparc.deb

MD5 checksums of the listed files are available in the original advisory.