Bug#308757: CAN-2005-1263: Linux kernel ELF core dump privilege elevation

2005-05-12 Thread Moritz Muehlenhoff
Package: kernel-source-2.4.27
Version: unavailable; reported 2005-05-12
Severity: grave
Tags: security patch

Paul Starzetz has found another flaw in the Linux kernel that can be exploited
to gain extended local privileges. Please see his detailed advisory at
http://isec.pl/vulnerabilities/isec-0023-coredump.txt

Greg Kroah-Hartman has posted a patch for 2.6, which should apply to 2.4 as
well. It's attached.

Cheers,
Moritz

-- System Information:
Debian Release: 3.0
Architecture: i386
Kernel: Linux anton 2.4.29-univention.1 #1 SMP Thu Jan 27 17:08:46 CET 2005 i686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED]

Subject: possibly fix Linux kernel ELF core dump privilege elevation

As noted by Paul Starzetz

references CAN-something-I-need-to-go-look-up...

Signed-off-by: Greg Kroah-Hartman [EMAIL PROTECTED]

---
 fs/binfmt_elf.c |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

--- gregkh-2.6.orig/fs/binfmt_elf.c 2005-05-11 00:03:45.0 -0700
+++ gregkh-2.6/fs/binfmt_elf.c  2005-05-11 00:09:17.0 -0700
@@ -251,1 +251,1 @@
}

/* Populate argv and envp */
-   p = current-mm-arg_start;
+   p = current-mm-arg_end = current-mm-arg_start;
while (argc--  0) {
size_t len;
__put_user((elf_addr_t)p, argv++);
@@ -1301,4 +1301,4 @@
 static int fill_psinfo(struct elf_prpsinfo *psinfo, struct task_struct *p,
   struct mm_struct *mm)
 {
-   int i, len;
+   unsigned int i, len;

/* first copy the parameters from user space */
memset(psinfo, 0, sizeof(struct elf_prpsinfo));


Processed: Re: Bug#308757: CAN-2005-1263: Linux kernel ELF core dump privilege elevation

2005-05-12 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

 tags 308757 + pending
Bug#308757: CAN-2005-1263: Linux kernel ELF core dump privilege elevation
Tags were: patch security
Tags added: pending

 thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#308757: CAN-2005-1263: Linux kernel ELF core dump privilege elevation

2005-05-12 Thread Horms
tags 308757 + pending
thanks

On Thu, May 12, 2005 at 09:13:48AM +0200, Moritz Muehlenhoff wrote:
 Package: kernel-source-2.4.27
 Version: unavailable; reported 2005-05-12
 Severity: grave
 Tags: security patch
 
 Paul Starzetz has found another flaw in the Linux kernel that can be exploited
 to gain extended local privileges. Please see his detailed advisory at
 http://isec.pl/vulnerabilities/isec-0023-coredump.txt
 
 Greg Kroah-Hartman has posted a patch for 2.6, which should apply to 2.4 as
 well. It's attached.

I have mangled this fix so it applies to 2.4.27 and committed it to SVN.


-- 
Horms


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]