Jann Horn 0a1d52994d mm: enforce min addr even if capable() in expand_downwards()
security_mmap_addr() does a capability check with current_cred(), but
we can reach this code from contexts like a VFS write handler where
current_cred() must not be used.

This can be abused on systems without SMAP to make NULL pointer
dereferences exploitable again.

Fixes: 8869477a49c3 ("security: protect from stack expansion into low vm addresses")
Cc: stable@kernel.org
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-02-27 17:27:02 -08:00
..
2019-02-21 09:01:00 -08:00
2019-02-12 16:33:18 -08:00
2018-12-28 12:11:46 -08:00
2018-10-31 08:54:16 -07:00
2018-06-07 17:34:36 -07:00
2018-10-31 08:54:16 -07:00
2018-11-01 14:42:49 -07:00
2018-11-18 10:15:09 -08:00
2018-02-06 18:32:48 -08:00