CVE-2022-50074
kernel: apparmor: Fix memleak in aa_simple_write_to_buffer()
Loading…
Severity
UnknownRed Hat Product Security
CVSS
Review impact separately from score.
Published · June 18, 2025
Updated · June 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
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.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CWE not specified