linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Xymoron <oxymoron@waste.org>
To: Dawson Engler <engler@csl.Stanford.EDU>
Cc: <linux-kernel@vger.kernel.org>, <mc@cs.Stanford.EDU>
Subject: Re: [CHECKER] 15 probable security holes in 2.4.5-ac8
Date: Fri, 8 Jun 2001 18:26:57 -0500 (CDT)	[thread overview]
Message-ID: <Pine.LNX.4.30.0106081808420.16106-100000@waste.org> (raw)
In-Reply-To: <200106082134.OAA12792@csl.Stanford.EDU>

On Fri, 8 Jun 2001, Dawson Engler wrote:

> You can look at this checker as essentially tracking whether the
> information from an untrusted source (e.g., from copy_from_user) can reach
> a trusting sink (e.g., an array index).  The main limiting factor on its
> effectiveness is that we have a very incomplete notion of trusting sinks.
> If anyone has suggestions for other general places where it's dangerous
> to consume bad data, please send me an email.

I wrote something similar to this for userspace (via ld preload). Most of
my checks followed strings around and made sure they were length checked
so as to avoid stack overflows, but I also checked args to open, etc..

In your case, basically all destinations are trusting sinks at some level:
userspace gives you data to put it somewhere. You might want to instead
check that data is passing through functions that 'detaint', by checking
capabilities, etc. I bet that you'll find that something like 90% of code
paths are covered by a few common security checks. And that most of the
remainder could be rewritten to be.

--
 "Love the dolphins," she advised him. "Write by W.A.S.T.E.."


  parent reply	other threads:[~2001-06-08 23:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-08 21:34 [CHECKER] 15 probable security holes in 2.4.5-ac8 Dawson Engler
2001-06-08 21:58 ` Alan Cox
2001-06-08 23:26 ` Oliver Xymoron [this message]
2001-06-11 13:51 Joerg Reuter
2001-06-11 14:09 ` John Chris Wren
2001-06-11 16:34   ` Alan Cox
2001-06-11 16:54     ` John Chris Wren
2001-06-11 16:58       ` Alan Cox
2001-06-11 21:49         ` Riley Williams
2001-06-11 16:27 ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.30.0106081808420.16106-100000@waste.org \
    --to=oxymoron@waste.org \
    --cc=engler@csl.Stanford.EDU \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mc@cs.Stanford.EDU \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).