Linux/linux a5795fdsecurity security.c

LSM: Check for NULL cred-security on free

From: Casey Schaufler <casey at 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 at schaufler-ca.com>
Acked-by: John Johansen <john.johansen at canonical.com>
Signed-off-by: James Morris <james.morris at microsoft.com>
Reported-by: syzbot+69ca07954461f189e808 at syzkaller.appspotmail.com
DeltaFile
+7-0security/security.c
+7-01 files

UnifiedSplitRaw