]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
eCryptfs: use after free in ecryptfs_release_messaging()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 22 Aug 2017 20:41:28 +0000 (23:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 08:35:50 +0000 (08:35 +0000)
commit1f0e79c6f523a90d1b4e998944413dba70d96ea9
tree4f345a2dfffe54220a4b4e6af9f7072d4c980547
parente69699d4c6fc4848f64455a617bb8a8943f526f8
eCryptfs: use after free in ecryptfs_release_messaging()

commit db86be3a12d0b6e5c5b51c2ab2a48f06329cb590 upstream.

We're freeing the list iterator so we should be using the _safe()
version of hlist_for_each_entry().

Fixes: 88b4a07e6610 ("[PATCH] eCryptfs: Public key transport mechanism")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ecryptfs/messaging.c