[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20121024140227.299041a9.akpm@linux-foundation.org>
Date: Wed, 24 Oct 2012 14:02:27 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Kees Cook <keescook@...omium.org>
Cc: linux-kernel@...r.kernel.org, Michal Marek <mmarek@...e.cz>,
Brad Spengler <spender@...ecurity.net>,
PaX Team <pageexec@...email.hu>
Subject: Re: [RESEND][PATCH] gen_init_cpio: avoid stack overflow when
expanding
On Wed, 24 Oct 2012 13:57:56 -0700
Kees Cook <keescook@...omium.org> wrote:
> Fix possible overflow of the buffer used for expanding environment
> variables when building file list.
>
> $ cat usr/crash.list
> file foo ${BIG}${BIG}${BIG}${BIG}${BIG}${BIG} 0755 0 0
> $ BIG=$(perl -e 'print "A" x 4096;') ./usr/gen_init_cpio usr/crash.list
> *** buffer overflow detected ***: ./usr/gen_init_cpio terminated
>
> This also replaces the space-indenting with tabs.
>
> Patch based on existing fix extracted from grsecurity.
>
> ...
>
> Cc: stable@...r.kernel.org
Why did you feel we need to backport this to -stable?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists