Re: The state of linux security

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Cheradenine Zakalwe <sc.contact@...>
Cc: <linux-kernel@...>
Date: Wednesday, July 16, 2008 - 4:08 pm

On Wed, 16 Jul 2008 16:05:07 -0000, Cheradenine Zakalwe said:

You just convinced me that you've never *really* thought about it the way
a security professional would.

The key point you overlooked is that if it's only triggered under an abnormal
workload, the attacker can usually *arrange* said workload.  Need at least
10K processes for something to trigger, and there's usually only 400 on the
box? No problem, just fork-bomb yourself 9,600 processes and then run the
exploit.  You can only avoid the reboot for a bugfix if you can *prove*
that the setup condition(s) cannot possibly happen on the system unless
the security has already been breached (for example, "we don't need to
reboot to fix this because there is a system-wide process limit of 1,250
per user, there are only 7 userids on the system, and you need to already
be root to reset the limit").

Just woe unto you if you add an 8th userid before you reboot.. :)


If I wrote up a 'DoS Advisory' for every time I manage to find another way
to oops or panic a -mm kernel, I'd probably have a a very large pile of
advisories.  However, the fact that I managed to oops or panic their software
has almost always been incentive enough for the maintainers to fix it, there's
no need to add more.


It should however be noted that a number of people who take security seriously
think the paxteam is totally out to lunch with some of their ideas.  The last
time I looked at their "security patch" (admittedly, that was back around
2.6.17 or so), a large chunk of it was pretty much cargo-cult security that
addressed specific gotcha's that have in the past been used (like symlink races
in /tmp), rather than address the *actual* security issue (for instance,
"compilers shouldn't overwrite system config files") in a comprehensive manner.
A big chunk of the rest was their version of execshield, which required
cutting the available address space in half (a big issue for 32-bit archs).
The telling point is that they didn't see this as being possibly a problem for
some users.


You've apparently overlooked the fact that although there are probably still
a lot of security bugs in the kernel, an attacker is *always* going to
approach the path of least resistance. No sense in looking for a kernel
exploit, when it's probably a lot easier to find one you can package up
in Firefox, or OpenOffice, or the pcre library, or any of the zillions
of other packages that get security advisories all the time...

And tell me - how many is "too many"?  Who gets to judge?  You don't like
the way Linus and Andrew handle it, there's this guy Theo, you can go talk
to him....


Which is more likely - that somebody will manage to sneak a malicious patch
past the relevant subsystem maintainer, and Andrew Morton, *and* Linus,
without anybody being the wiser, or that they'll drop their malicious code
into one of the *other* 5,932 packages currently in Fedora Rawhide?

Go read up on the Underhanded C contest. Then go read Ken Thompson's Turing
Award Lecture "On Trusting Trust" - and then go see if anybody's audited the
gcc tree lately, while thinking about what Thompson wrote.  Or audited
the *other 5,931 packages besides the kernel and gcc...

(Incidentally, the "unnamed Air Force Document" that Ken mentions is none
other than Karger&Schell's paper on Multics security - also a good read,
as it discusses a *lot* of attack methods you may not have really thought
about in detail...)
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
The state of linux security, Cheradenine Zakalwe, (Wed Jul 16, 12:05 pm)
Re: The state of linux security, Helge Hafting, (Sun Jul 20, 7:01 am)
Re: The state of linux security, Alan Cox, (Wed Jul 16, 1:57 pm)
Re: The state of linux security, Stefan Roas, (Wed Jul 16, 4:29 pm)
Re: The state of linux security, , (Wed Jul 16, 4:08 pm)
Re: The state of linux security, David Newall, (Wed Jul 16, 12:38 pm)
Re: The state of linux security, , (Wed Jul 16, 12:38 pm)
Re: The state of linux security, Randy Dunlap, (Wed Jul 16, 12:26 pm)