{"id":"CVE-2022-50074","published":"2025-06-18T11:02:18Z","modified":"2026-05-11T19:12:21Z","title":"apparmor: Fix memleak in aa_simple_write_to_buffer()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00202,"percentile":0.10247,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/6500eb3a48ac221051b1791818a1ac74744ef617","tags":[]},{"url":"https://git.kernel.org/stable/c/7db182a2ebeefded86fea542fcc5d6a68bb77f58","tags":[]},{"url":"https://git.kernel.org/stable/c/8aab4295582eb397a125d2788b829fa62b88dbf7","tags":[]},{"url":"https://git.kernel.org/stable/c/bf7ebebce2c25071c719fd8a2f1307e0c243c2d7","tags":[]},{"url":"https://git.kernel.org/stable/c/6583edbf459de2e06b9759f264c0ae27e452b97a","tags":[]},{"url":"https://git.kernel.org/stable/c/417ea9fe972d2654a268ad66e89c8fcae67017c3","tags":[]}],"priority":{"score":2.0,"factors":[{"name":"EPSS percentile","points":2.05}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= a6a52579e52b55448326db88bd9a5740e7c1a037, < 6500eb3a48ac221051b1791818a1ac74744ef617",">= a6a52579e52b55448326db88bd9a5740e7c1a037, < 7db182a2ebeefded86fea542fcc5d6a68bb77f58",">= a6a52579e52b55448326db88bd9a5740e7c1a037, < 8aab4295582eb397a125d2788b829fa62b88dbf7",">= a6a52579e52b55448326db88bd9a5740e7c1a037, < bf7ebebce2c25071c719fd8a2f1307e0c243c2d7",">= a6a52579e52b55448326db88bd9a5740e7c1a037, < 6583edbf459de2e06b9759f264c0ae27e452b97a",">= a6a52579e52b55448326db88bd9a5740e7c1a037, < 417ea9fe972d2654a268ad66e89c8fcae67017c3"]},{"vendor":"Linux","product":"Linux","versions":["4.17"]}],"euvd":{"id":"EUVD-2022-55343","exploited":false,"provenance":"source"}}