]> git.itanic.dy.fi Git - linux-stable/commit
selinux: Add boundary check in put_entry()
authorXiu Jianfeng <xiujianfeng@huawei.com>
Tue, 14 Jun 2022 02:14:49 +0000 (10:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 13:14:06 +0000 (15:14 +0200)
commitdedd558d9765b72c66e5a53948e9f5abc3ece1f6
tree2b5e804b22b260d19bd854a5bbb0ac0b0d6ff314
parent1fc1f72aad2070d34022d0823e4cf09706b53f25
selinux: Add boundary check in put_entry()

[ Upstream commit 15ec76fb29be31df2bccb30fc09875274cba2776 ]

Just like next_entry(), boundary check is necessary to prevent memory
out-of-bound access.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
security/selinux/ss/policydb.h