Bug 1314 - bug in 'locate'
bug in 'locate'
Product: Red Hat Linux
Classification: Retired
Component: findutils (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: David Lawrence
: Security
Depends On:
  Show dependency treegraph
Reported: 1999-02-24 08:10 EST by cadence
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-03-22 18:39:54 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description cadence 1999-02-24 08:10:10 EST
There is an overflow in 'locate' When updatedb will match a
patch taht contains more than 1024 chars it will put it to
the database and nothing happends. But then whem You run
'locate' it will segfaults on it. So now if You will make a
path that contains shellcode, and root will use 'locate'
then you can gain root privileges. I know that in this
particular case there is extremly hard to guess the proper
address of Your shellcode, but i saw an shellcode that can
do it another way ;) It was very clewer method and it can be
used here. I can't show how it looks so the same way i can't
prove it. Generally i think that buffer overflow in an
program (even so extremmly to exploit with standard tricks)
is VERY BAD and someone should do something with it.
Regards...    Tomasz Grabowski <cadence@aci.com.pl>
Comment 1 Bill Nottingham 1999-03-22 18:39:59 EST
fixed for 5.9 by updating to slocate

Note You need to log in before you can comment on or make changes to this bug.