diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2006-07-06 13:05:42 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-07-06 13:05:42 -0700 |
commit | 9e4e45f19bdd41b4091e5fe556f816f4046c7598 (patch) | |
tree | 532a3c15aa1810ae15547cfd9f15cd84bcd2dfb0 | |
parent | 2bd44a13c95e870c64ff0e3c22b5d727eb6627ea (diff) |
fix prctl privilege escalation and suid_dumpable (CVE-2006-2451)
Based on a patch from Ernie Petrides
During security research, Red Hat discovered a behavioral flaw in core
dump handling. A local user could create a program that would cause a
core file to be dumped into a directory they would not normally have
permissions to write to. This could lead to a denial of service (disk
consumption), or allow the local user to gain root privileges.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | kernel/sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index 105e102e1c4..413706a55cb 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -1802,7 +1802,7 @@ asmlinkage long sys_prctl(int option, unsigned long arg2, unsigned long arg3, error = current->mm->dumpable; break; case PR_SET_DUMPABLE: - if (arg2 < 0 || arg2 > 2) { + if (arg2 < 0 || arg2 > 1) { error = -EINVAL; break; } |