BugTraq
Linux kernel ELF core dump privilege elevation May 11 2005 11:08AM
Paul Starzetz (ihaquer isec pl) (4 replies)
Re: Linux kernel ELF core dump privilege elevation May 12 2005 01:46AM
antoine (antoine nagafix co uk) (1 replies)
Re: Linux kernel ELF core dump privilege elevation May 13 2005 10:10AM
Pedro Venda (pjvenda arrakis dhis org)
Re: Linux kernel ELF core dump privilege elevation (kernel module workaround) May 12 2005 12:29AM
Andrew Griffiths (andrewg felinemenace org) (1 replies)
Re: Linux kernel ELF core dump privilege elevation (kernel module workaround) May 12 2005 10:31PM
chris (fool dfw net)
On Thu, May 12, 2005 at 12:29:02AM +0000, Andrew Griffiths wrote:

> It loops over all processes and sets the soft limit and hard limit for
> processes to 0. The limits.conf measure isn't entirely enough if people
> have screen sessions, or you have various daemons running etc.

We've used "echo / > /proc/sys/kernel/core_pattern" to disable coredumps
by all processes (using kernel 2.4.29). This seems to affect all
running processes without doing anything drastic or dangerous (except
disabling coredumps =)). To disable all for all but root processes you
can use something like " /core " instead of " / " in the above example,
but then you may still be vulnerable as Andrew points out to pre-existing
screen or Xwin sessions running as root--not sure about that but better
safe than sorry.

I haven't read the code to see if this is an unintentional effect, but
it sure seems to work under 2.4.29 at least. I got the idea from this
page:

http://www.aplawrence.com/Forum/TonyLawrence9.html

[ reply ]
Re: Linux kernel ELF core dump privilege elevation May 11 2005 07:34PM
Bruno Lustosa (bruno lists gmail com) (1 replies)
Re: Linux kernel ELF core dump privilege elevation May 12 2005 05:52PM
codeQ (newsclient teamq info)
Re: Linux kernel ELF core dump privilege elevation May 11 2005 06:12PM
Greg KH (gregkh suse de) (2 replies)
Re: Linux kernel ELF core dump privilege elevation May 11 2005 09:51PM
Paul Starzetz (ihaquer isec pl)
Re: Linux kernel ELF core dump privilege elevation May 11 2005 06:30PM
Greg KH (gregkh suse de)


 

Privacy Statement
Copyright 2010, SecurityFocus