/[linux-patches]/genpatches-2.6/trunk/2.6.14/1458_15.5_x86_64-bad-elf-entry-addr.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1458_15.5_x86_64-bad-elf-entry-addr.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations) (download) (as text)
Tue Mar 14 13:34:17 2006 UTC (14 years, 7 months ago) by johnm
File MIME type: text/x-diff
File size: 1004 byte(s)
2.6.14-11, rebase against local tree
1 From: Suresh Siddha <suresh.b.siddha@intel.com>
2 Date: Sun, 26 Feb 2006 03:34:00 +0000 (+0100)
3 Subject: [PATCH] x86_64: Check for bad elf entry address (CVE-2006-0741)
4 X-Git-Url: http://www.kernel.org/git/?p=linux/kernel/git/chrisw/linux-2.6.15.y.git;a=commitdiff;h=5a62d3406ddd87a26d706d0b3019f4a1872713da
5
6 [PATCH] x86_64: Check for bad elf entry address (CVE-2006-0741)
7
8 Fixes a local DOS on Intel systems that lead to an endless
9 recursive fault. AMD machines don't seem to be affected.
10
11 Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
12 Signed-off-by: Andi Kleen <ak@suse.de>
13 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
14 ---
15
16 --- a/fs/binfmt_elf.c
17 +++ b/fs/binfmt_elf.c
18 @@ -932,6 +932,11 @@ static int load_elf_binary(struct linux_
19 kfree(elf_interpreter);
20 } else {
21 elf_entry = loc->elf_ex.e_entry;
22 + if (BAD_ADDR(elf_entry)) {
23 + send_sig(SIGSEGV, current, 0);
24 + retval = -ENOEXEC; /* Nobody gets to see this, but.. */
25 + goto out_free_dentry;
26 + }
27 }
28
29 kfree(elf_phdata);

  ViewVC Help
Powered by ViewVC 1.1.20