What’s Vulnerable › Vulnerabilities

CVE-2022-50074: apparmor: Fix memleak in aa_simple_write_to_buffer()

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.19.256, 5.10.138, 5.15.63, 5.19.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-50074 or the next vulnerability affects your stack