Kees Cook
5883f57ca0
proc: protect mm start_code/end_code in /proc/pid/stat
...
While mm->start_stack was protected from cross-uid viewing (commit
f83ce3e6b02d5 ("proc: avoid information leaks to non-privileged
processes")), the start_code and end_code values were not. This would
allow the text location of a PIE binary to leak, defeating ASLR.
Note that the value "1" is used instead of "0" for a protected value since
"ps", "killall", and likely other readers of /proc/pid/stat, take
start_code of "0" to mean a kernel thread and will misbehave. Thanks to
Brad Spengler for pointing this out.
Addresses CVE-2011-0726
Signed-off-by: Kees Cook <kees.cook@canonical.com>
Cc: <stable@kernel.org>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Eugene Teo <eugeneteo@kernel.sg>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Brad Spengler <spender@grsecurity.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-03-23 19:46:37 -07:00
..
2011-03-22 16:32:49 -05:00
2011-03-23 19:46:09 -07:00
2011-03-17 14:02:57 +01:00
2011-02-25 11:12:37 -08:00
2011-03-18 10:01:59 -04:00
2011-01-13 08:03:15 -08:00
2011-03-21 08:35:12 -04:00
2011-03-22 17:44:17 -07:00
2011-01-24 10:49:45 +11:00
2011-03-21 12:24:26 -07:00
2011-02-21 22:31:47 +00:00
2011-03-22 17:44:16 -07:00
2011-01-16 21:22:29 +00:00
2011-01-13 08:03:23 -08:00
2011-02-18 08:07:18 -08:00
2011-03-22 17:44:17 -07:00
2011-03-10 13:22:34 -06:00
2011-02-21 14:46:36 -06:00
2011-01-07 17:50:26 +11:00
2011-03-03 01:28:17 -05:00
2011-03-15 02:21:44 -04:00
2011-03-23 19:46:21 -07:00
2011-03-17 17:41:19 -07:00
2011-03-23 19:46:17 -07:00
2011-03-14 09:15:28 -04:00
2011-01-07 17:50:26 +11:00
2011-01-14 09:23:36 -08:00
2011-03-22 17:44:02 -07:00
2011-03-20 18:14:55 -07:00
2011-03-03 01:28:40 -05:00
2011-02-03 16:34:18 -07:00
2011-01-12 20:03:42 -05:00
2011-03-02 22:27:36 +01:00
2011-01-07 17:50:26 +11:00
2011-03-22 17:44:02 -07:00
2011-03-14 09:15:28 -04:00
2011-02-28 21:55:58 +01:00
2011-02-28 21:55:58 +01:00
2011-03-22 17:44:17 -07:00
2011-03-20 18:14:55 -07:00
2011-01-25 15:24:47 -05:00
2011-03-22 17:44:17 -07:00
2011-03-23 19:46:22 -07:00
2011-03-17 14:02:57 +01:00
2011-03-21 00:45:50 -04:00
2011-01-25 15:24:47 -05:00
2011-03-18 09:04:20 -04:00
2011-03-23 19:46:18 -07:00
2011-03-01 15:47:58 +01:00
2011-03-17 14:02:57 +01:00
2011-03-23 19:46:17 -07:00
2011-03-05 16:24:12 -05:00
2011-01-07 17:50:26 +11:00
2011-03-16 08:04:07 -07:00
2011-03-23 19:46:37 -07:00
2011-03-21 13:50:05 -07:00
2011-01-07 17:50:26 +11:00
2011-02-24 11:42:44 +01:00
2010-10-29 04:16:31 -04:00
2011-03-20 18:14:55 -07:00
2011-01-07 17:50:26 +11:00
2011-01-26 10:50:05 +10:00
2011-01-20 17:02:05 -08:00
2011-03-03 01:28:16 -05:00
2011-03-18 10:50:27 -07:00
2011-03-23 19:46:19 -07:00
2011-03-23 19:46:19 -07:00
2011-03-21 14:24:56 -07:00
2011-03-22 17:44:17 -07:00
2011-01-16 13:47:07 -05:00
2010-08-09 16:47:39 -04:00
2011-01-07 17:50:29 +11:00
2010-10-14 10:57:40 -07:00
2010-06-01 08:11:06 -07:00
2011-03-22 17:44:15 -07:00
2010-06-29 15:29:31 -07:00
2010-10-29 04:16:28 -04:00
2010-08-17 18:07:43 -07:00
2011-01-03 15:01:48 +01:00
2011-03-22 17:44:10 -07:00
2011-02-28 18:08:31 -08:00
2010-12-17 15:18:05 +01:00
2011-01-13 10:45:01 -08:00
2011-01-07 14:39:20 -08:00
2011-03-21 00:16:08 -04:00
2011-03-18 10:51:11 -07:00
2011-02-15 10:24:31 +01:00
2010-08-09 16:47:44 -04:00
2011-02-21 15:07:04 -08:00
2011-03-22 17:44:15 -07:00
2011-03-21 00:16:09 -04:00
2011-03-15 02:21:45 -04:00
2011-03-15 02:21:44 -04:00
2011-03-21 00:16:09 -04:00
2011-03-16 13:26:17 -07:00
2010-08-11 08:59:02 -07:00
2011-01-07 17:50:27 +11:00
2011-01-16 13:47:07 -05:00
2011-01-13 17:32:48 -08:00
2011-01-07 17:50:29 +11:00
2011-03-21 00:16:08 -04:00
2011-03-21 12:13:10 -04:00
2011-03-21 00:16:08 -04:00
2010-11-15 10:23:31 +01:00
2011-03-16 19:01:29 -07:00
2010-10-27 18:03:12 -07:00
2011-01-12 20:03:43 -05:00
2011-03-05 10:55:59 +01:00
2011-03-16 19:01:29 -07:00
2011-01-10 19:04:08 +01:00
2011-01-13 17:32:32 -08:00
2011-03-18 10:01:59 -04:00
2011-03-22 17:44:10 -07:00
2011-03-14 09:15:28 -04:00
2010-10-15 15:53:27 +02:00
2011-03-21 01:10:41 -04:00
2011-01-20 16:21:59 -08:00
2011-01-07 17:50:33 +11:00
2011-01-25 15:24:47 -05:00
2011-01-12 20:06:58 -05:00
2010-08-09 20:45:05 -07:00
2011-03-21 00:16:08 -04:00
2010-10-25 21:26:12 -04:00
2010-10-26 10:13:10 -07:00
2011-01-13 10:45:01 -08:00
2011-03-15 02:21:45 -04:00
2011-03-14 09:15:28 -04:00
2011-03-17 22:10:41 -04:00
2011-03-21 00:40:29 -04:00
2010-10-15 15:53:27 +02:00
2010-08-13 16:53:13 -07:00
2010-05-21 18:31:18 -04:00