linux/security
Dan Carpenter fcebe4cff6 smackfs: Prevent underflow in smk_set_cipso()
[ Upstream commit 3ad49d37cf ]

There is a upper bound to "catlen" but no lower bound to prevent
negatives.  I don't see that this necessarily causes a problem but we
may as well be safe.

Fixes: e114e47377 ("Smack: Simplified Mandatory Access Control Kernel")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-23 10:46:56 +02:00
..
apparmor apparmor: fix a memleak in multi_transaction_new() 2023-01-18 09:26:21 +01:00
integrity integrity: Fix possible multiple allocation in integrity_inode_get() 2023-08-11 11:33:41 +02:00
keys security: keys: perform capable check only on privileged operations 2023-09-23 10:46:53 +02:00
loadpin security: mark LSM hooks as __ro_after_init 2017-03-06 11:00:15 +11:00
selinux selinux: don't use make's grouped targets feature yet 2023-06-09 10:22:54 +02:00
smack smackfs: Prevent underflow in smk_set_cipso() 2023-09-23 10:46:56 +02:00
tomoyo tomoyo: fix broken dependency on *.conf.default 2023-02-06 07:46:28 +01:00
yama Yama: Check for pid death before checking ancestry 2019-01-23 08:09:48 +01:00
commoncap.c capabilities: fix potential memleak on error path from vfs_getxattr_alloc() 2022-11-10 15:47:23 +01:00
device_cgroup.c device_cgroup: Roll back to original exceptions after copy failure 2023-01-18 09:26:38 +01:00
inode.c securityfs: fix use-after-free on symlink traversal 2019-05-25 18:25:34 +02:00
Kconfig /dev/mem: Add bounce buffer for copy-out 2018-03-24 11:01:24 +01:00
lsm_audit.c dump_common_audit_data(): fix racy accesses to ->d_name 2021-01-23 15:48:43 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
min_addr.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
security.c ima: Align ima_file_mmap() parameters with mmap_file LSM hook 2023-03-11 16:26:46 +01:00