Commit bf85306d authored by Dann Frazier's avatar Dann Frazier

* bugfix/reset-pdeathsig-on-suid-upstream.patch

  Update fix for CVE-2007-3848 with the patch accepted upstream

svn path=/dists/etch/linux-2.6/; revision=9448
parents e8760714 04c9b2ac
......@@ -24,8 +24,10 @@ linux-2.6 (2.6.18.dfsg.1-14) UNRELEASED; urgency=high
detect the bad cards and correct the mac order. This release includes
a backport of those changes. (closes: #439167)
***THIS PATCH HAS NOT YET BEEN VERIFIED TO FIX THIS BUG***
* bugfix/reset-pdeathsig-on-suid-upstream.patch
Update fix for CVE-2007-3848 with the patch accepted upstream
-- dann frazier <dannf@debian.org> Wed, 29 Aug 2007 01:54:05 -0600
-- dann frazier <dannf@debian.org> Mon, 03 Sep 2007 23:33:06 -0600
linux-2.6 (2.6.18.dfsg.1-13etch2) stable-security; urgency=high
......
From: Marcel Holtmann <marcel@holtmann.org>
Date: Fri, 17 Aug 2007 19:47:58 +0000 (+0200)
Subject: Reset current->pdeath_signal on SUID binary execution
X-Git-Tag: v2.6.23-rc4~134
X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=d2d56c5f51028cb9f3d800882eb6f4cbd3f9099f
Reset current->pdeath_signal on SUID binary execution
This fixes a vulnerability in the "parent process death signal"
implementation discoverd by Wojciech Purczynski of COSEINC PTE Ltd.
and iSEC Security Research.
http://marc.info/?l=bugtraq&m=118711306802632&w=2
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
---
diff -urpN linux-source-2.6.18.orig/fs/exec.c linux-source-2.6.18/fs/exec.c
--- linux-source-2.6.18.orig/fs/exec.c 2007-08-11 08:55:05.000000000 -0600
+++ linux-source-2.6.18/fs/exec.c 2007-08-29 00:26:45.380758719 -0600
@@ -883,11 +883,13 @@ int flush_old_exec(struct linux_binprm *
*/
current->mm->task_size = TASK_SIZE;
- if (bprm->e_uid != current->euid || bprm->e_gid != current->egid ||
- file_permission(bprm->file, MAY_READ) ||
- (bprm->interp_flags & BINPRM_FLAGS_ENFORCE_NONDUMP)) {
+ if (bprm->e_uid != current->euid || bprm->e_gid != current->egid) {
suid_keys(current);
+ set_dumpable(current->mm, suid_dumpable);
current->pdeath_signal = 0;
+ } else if (file_permission(bprm->file, MAY_READ) ||
+ (bprm->interp_flags & BINPRM_FLAGS_ENFORCE_NONDUMP)) {
+ suid_keys(current);
current->mm->dumpable = suid_dumpable;
}
......@@ -12,3 +12,5 @@
+ features/all/drivers/3w-9560se.patch
+ bugfix/forcedeth-correct-mac.patch
+ bugfix/forcedeth-correct-mac-only-new.patch
- bugfix/reset-pdeathsig-on-suid.patch
+ bugfix/reset-pdeathsig-on-suid-upstream.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment