Theodore Ts'o 23f57cb1f1 ext4: check to make sure the rename(2)'s destination is not freed
commit b50282f3241acee880514212d88b6049fb5039c8 upstream.

If the destination of the rename(2) system call exists, the inode's
link count (i_nlinks) must be non-zero.  If it is, the inode can end
up on the orphan list prematurely, leading to all sorts of hilarity,
including a use-after-free.

https://bugzilla.kernel.org/show_bug.cgi?id=200931

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reported-by: Wen Xu <wen.xu@gatech.edu>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-29 03:07:34 -07:00
..
2016-10-15 12:09:13 -07:00
2017-08-06 18:59:43 -07:00
2018-09-15 09:42:57 +02:00
2017-11-30 08:39:04 +00:00
2018-09-26 08:36:37 +02:00
2018-09-29 03:07:33 -07:00
2018-07-03 11:23:17 +02:00
2018-06-06 16:44:38 +02:00
2017-06-14 15:06:00 +02:00
2016-09-27 21:20:53 -04:00
2016-09-27 18:47:38 -04:00
2018-05-16 10:08:42 +02:00
2018-02-17 13:21:15 +01:00
2017-06-14 15:06:01 +02:00
2018-09-09 20:01:25 +02:00