diff options
author | Rik van Riel <[email protected]> | 2014-01-02 12:58:46 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-01-02 14:40:30 -0800 |
commit | 4eb919825e6c3c7fb3630d5621f6d11e98a18b3a (patch) | |
tree | 826d9e3d7852f7d2214a31bcca050bcd5573e667 /net/lapb | |
parent | 3b25df93c6e37e323b86a2a8c1e00c0a2821c6c9 (diff) |
mm: fix use-after-free in sys_remap_file_pages
remap_file_pages calls mmap_region, which may merge the VMA with other
existing VMAs, and free "vma". This can lead to a use-after-free bug.
Avoid the bug by remembering vm_flags before calling mmap_region, and
not trying to dereference vma later.
Signed-off-by: Rik van Riel <[email protected]>
Reported-by: Dmitry Vyukov <[email protected]>
Cc: PaX Team <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Michel Lespinasse <[email protected]>
Cc: Cyrill Gorcunov <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb')
0 files changed, 0 insertions, 0 deletions