In the Linux kernel, the following vulnerability has been resolved:
apparmor: Fix memleak in aasimplewritetobuffer()
When copyfromuser 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 aaputloaddata(data) to fix this issue.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50074.json"
}