]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
LSM: Check for NULL cred-security on free
authorJames Morris <james.morris@microsoft.com>
Wed, 16 Jan 2019 23:41:11 +0000 (15:41 -0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit9405bd1dd35aabc106fb587188e62d48f699c674
tree594c31fbaff983c0a278208a06d5f6ee750192db
parent16d42bb3f3850e4c3e3fae8913c1277c3e97852b
LSM: Check for NULL cred-security on free

BugLink: https://bugs.launchpad.net/bugs/1837477
commit a5795fd38ee8194451ba3f281f075301a3696ce2 upstream.

From: Casey Schaufler <casey@schaufler-ca.com>

Check that the cred security blob has been set before trying
to clean it up. There is a case during credential initialization
that could result in this.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Acked-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: James Morris <james.morris@microsoft.com>
Reported-by: syzbot+69ca07954461f189e808@syzkaller.appspotmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
security/security.c