<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">fix Linux kernel ELF core dump privilege elevation
As reported by Paul Starzetz &lt;ihaquer@isec.pl&gt;
Reference: CAN-2005-1263

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
--- a/fs/binfmt_elf.c	2005-05-12 11:18:52.000000000 +0200
+++ b/fs/binfmt_elf.c	2005-05-12 11:19:30.000000000 +0200
@@ -251,7 +251,7 @@
 	}
 
 	/* Populate argv and envp */
-	p = current-&gt;mm-&gt;arg_start;
+	p = current-&gt;mm-&gt;arg_end = current-&gt;mm-&gt;arg_start;
 	while (argc-- &gt; 0) {
 		size_t len;
 		__put_user((elf_addr_t)p, argv++);
@@ -1301,7 +1301,7 @@
 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));
</pre></body></html>