lkml.org 
[lkml]   [2008]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 42/73] vfs: coredumping fix (CVE-2007-6206)

    2.6.23-stable review patch. If anyone has any objections, please let us know.
    ------------------
    From: Ingo Molnar <mingo@elte.hu>

    vfs: coredumping fix

    patch c46f739dd39db3b07ab5deb4e3ec81e1c04a91af in mainline

    fix: http://bugzilla.kernel.org/show_bug.cgi?id=3043

    only allow coredumping to the same uid that the coredumping
    task runs under.

    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    Acked-by: Alan Cox <alan@redhat.com>
    Acked-by: Christoph Hellwig <hch@lst.de>
    Acked-by: Al Viro <viro@ftp.linux.org.uk>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: maximilian attems <max@stro.at>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    fs/exec.c | 6 ++++++
    1 file changed, 6 insertions(+)

    --- a/fs/exec.c
    +++ b/fs/exec.c
    @@ -1786,6 +1786,12 @@ int do_coredump(long signr, int exit_cod
    but keep the previous behaviour for now. */
    if (!ispipe && !S_ISREG(inode->i_mode))
    goto close_fail;
    + /*
    + * Dont allow local users get cute and trick others to coredump
    + * into their pre-created files:
    + */
    + if (inode->i_uid != current->fsuid)
    + goto close_fail;
    if (!file->f_op)
    goto close_fail;
    if (!file->f_op->write)
    --


    \
     
     \ /
      Last update: 2008-02-07 01:17    [W:0.025 / U:60.332 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site