Home
last modified time | relevance | path

Searched hist:"417 ea9fe" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/security/apparmor/
H A Dapparmorfs.c417ea9fe Tue Jun 14 04:00:01 CDT 2022 Xiu Jianfeng <xiujianfeng@huawei.com> apparmor: Fix memleak in aa_simple_write_to_buffer()

When copy_from_user failed, the memory is freed by kvfree. however the
management struct and data blob are allocated independently, so only
kvfree(data) cause a memleak issue here. Use aa_put_loaddata(data) to
fix this issue.

Fixes: a6a52579e52b5 ("apparmor: split load data into management struct and data blob")
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>