Christian Göttsche d6b64d710e selinux: set next pointer before attaching to list
commit 70d91dc9b2ac91327d0eefd86163abc3548effa6 upstream.

Set the next pointer in filename_trans_read_helper() before attaching
the new node under construction to the list, otherwise garbage would be
dereferenced on subsequent failure during cleanup in the out goto label.

Cc: <stable@vger.kernel.org>
Fixes: 430059024389 ("selinux: implement new format of filename transitions")
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-30 16:11:07 +02:00
..
2022-10-03 17:51:52 -07:00
2022-05-03 15:53:49 -04:00
2022-02-01 19:08:28 -05:00
2022-03-21 20:47:54 -07:00
2022-02-01 19:08:28 -05:00
2022-02-01 19:08:28 -05:00
2022-05-03 13:59:15 -04:00