OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Jan 2019 08:42:50 +0000 (09:42 +0100)
commitac0e225395382a731e6a8ca98419eac9bb43936e
treeb00788c0df25b09be13df83a55af48023b4461d4
parent4bc86212e19979b44fe2d80a253c02608f02a959
LSM: Check for NULL cred-security on free

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>
security/security.c