diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2023-08-18 18:33:58 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-08-30 17:23:15 +0300 |
commit | 0dbedf9afee329a548e78775bf921e6e0a0d3594 (patch) | |
tree | 10b06b318094ce244802cb0eb9ba25834be8cdfd /net | |
parent | a54c2048cd758143cec1c3f88f3711ed9f623d01 (diff) | |
download | linux-0dbedf9afee329a548e78775bf921e6e0a0d3594.tar.xz |
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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions