[CVE-2009-0028] fix Linux kernel minor signal handling vulnerability (closes: #4912)
[openwrt/svn-archive/archive.git] / target / linux / generic-2.6 / patches-2.6.26 / 991-cve-2009-0028.patch
1 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0028
2
3 --- a/kernel/fork.c
4 +++ b/kernel/fork.c
5 @@ -1114,7 +1114,9 @@ static struct task_struct *copy_process(
6 p->parent_exec_id = p->self_exec_id;
7
8 /* ok, now we should be set up.. */
9 - p->exit_signal = (clone_flags & CLONE_THREAD) ? -1 : (clone_flags & CSIGNAL);
10 + p->exit_signal = (clone_flags & CLONE_THREAD) ? -1 :
11 + (clone_flags & CLONE_PARENT) ? current->group_leader->exit_signal :
12 + (clone_flags & CSIGNAL);
13 p->pdeath_signal = 0;
14 p->exit_state = 0;
15