{"id":"CVE-2022-50074","aliases":["CVE-2022-50074"],"related":[],"kind":"vulnerability","state":"published","title":"apparmor: Fix memleak in aa_simple_write_to_buffer()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: apparmor: Se corrige la fuga de memoria en aa_simple_write_to_buffer(). Cuando copy_from_user falla, kvfree libera la memoria. Sin embargo, la estructura de administración y el blob de datos se asignan de forma independiente, por lo que solo kvfree(data) causa un problema de fuga de memoria. Utilice aa_put_loaddata(data) para solucionar este problema.","source":"nvd"}],"published":"2025-06-18T11:02:18.140Z","modified":"2026-06-17T05:22:42.403Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"a6a52579e52b55448326db88bd9a5740e7c1a037","fixed":"6500eb3a48ac221051b1791818a1ac74744ef617","status":"affected"},{"type":"git","introduced":"a6a52579e52b55448326db88bd9a5740e7c1a037","fixed":"7db182a2ebeefded86fea542fcc5d6a68bb77f58","status":"affected"},{"type":"git","introduced":"a6a52579e52b55448326db88bd9a5740e7c1a037","fixed":"8aab4295582eb397a125d2788b829fa62b88dbf7","status":"affected"},{"type":"git","introduced":"a6a52579e52b55448326db88bd9a5740e7c1a037","fixed":"bf7ebebce2c25071c719fd8a2f1307e0c243c2d7","status":"affected"},{"type":"git","introduced":"a6a52579e52b55448326db88bd9a5740e7c1a037","fixed":"6583edbf459de2e06b9759f264c0ae27e452b97a","status":"affected"},{"type":"git","introduced":"a6a52579e52b55448326db88bd9a5740e7c1a037","fixed":"417ea9fe972d2654a268ad66e89c8fcae67017c3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.17","status":"unaffected"},{"type":"semver","introduced":"4.19.256","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.211","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.138","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.63","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.19.4","lastAffected":"5.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.17","fixed":"4.19.256"},{"status":"affected","introduced":"4.20","fixed":"5.4.211"},{"status":"affected","introduced":"5.5","fixed":"5.10.138"},{"status":"affected","introduced":"5.11","fixed":"5.15.63"},{"status":"affected","introduced":"5.16","fixed":"5.19.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/6500eb3a48ac221051b1791818a1ac74744ef617","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7db182a2ebeefded86fea542fcc5d6a68bb77f58","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8aab4295582eb397a125d2788b829fa62b88dbf7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bf7ebebce2c25071c719fd8a2f1307e0c243c2d7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6583edbf459de2e06b9759f264c0ae27e452b97a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/417ea9fe972d2654a268ad66e89c8fcae67017c3","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50074","url":"https://www.cve.org/CVERecord?id=CVE-2022-50074","licence":"CVE Terms of Use","modified":"2026-05-11T19:12:21.811Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50074","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50074","licence":"Public domain","modified":"2026-06-17T05:22:42.403Z"}],"updatedAt":"2026-11-25T22:58:21.041Z","epss":{"score":0.00202,"percentile":0.10727,"date":"2026-12-01T12:00:22.000Z"}}