{"id":"CVE-2022-50074","summary":"apparmor: Fix memleak in aa_simple_write_to_buffer()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: Fix memleak in aa_simple_write_to_buffer()\n\nWhen copy_from_user failed, the memory is freed by kvfree. however the\nmanagement struct and data blob are allocated independently, so only\nkvfree(data) cause a memleak issue here. Use aa_put_loaddata(data) to\nfix this issue.","modified":"2026-04-03T13:14:52.001011Z","published":"2025-06-18T11:02:18.140Z","related":["SUSE-SU-2025:02264-1","SUSE-SU-2025:02321-1","SUSE-SU-2025:02322-1","SUSE-SU-2025:02537-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50074.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/417ea9fe972d2654a268ad66e89c8fcae67017c3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6500eb3a48ac221051b1791818a1ac74744ef617"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6583edbf459de2e06b9759f264c0ae27e452b97a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7db182a2ebeefded86fea542fcc5d6a68bb77f58"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8aab4295582eb397a125d2788b829fa62b88dbf7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bf7ebebce2c25071c719fd8a2f1307e0c243c2d7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50074.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50074"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a6a52579e52b55448326db88bd9a5740e7c1a037"},{"fixed":"6500eb3a48ac221051b1791818a1ac74744ef617"},{"fixed":"7db182a2ebeefded86fea542fcc5d6a68bb77f58"},{"fixed":"8aab4295582eb397a125d2788b829fa62b88dbf7"},{"fixed":"bf7ebebce2c25071c719fd8a2f1307e0c243c2d7"},{"fixed":"6583edbf459de2e06b9759f264c0ae27e452b97a"},{"fixed":"417ea9fe972d2654a268ad66e89c8fcae67017c3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50074.json"}}],"schema_version":"1.7.5"}