]> git.ipfire.org Git - thirdparty/linux.git/commit
apparmor: guard against free routines being called with a NULL
authorJohn Johansen <john.johansen@canonical.com>
Mon, 4 Aug 2025 05:07:52 +0000 (22:07 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Thu, 29 Jan 2026 09:27:54 +0000 (01:27 -0800)
commite16eee7895502bc3c07043169940b005d44bba8f
treee4d923e66d2cab8b77ba6d1b048a00d77eefcfc7
parent74b7105e53e80a4072bd3e1a50be7aa15e3f0a01
apparmor: guard against free routines being called with a NULL

aa_free_data() and free_attachment() don't guard against having
a NULL parameter passed to them. Fix this.

Reviewed-by: Ryan Lee <ryan.lee@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/policy.c