{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50074","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2025-06-18T10:57:27.408Z","datePublished":"2025-06-18T11:02:18.140Z","dateUpdated":"2026-05-11T19:12:21.811Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-05-11T19:12:21.811Z"},"descriptions":[{"lang":"en","value":"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."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/apparmor/apparmorfs.c"],"versions":[{"version":"a6a52579e52b55448326db88bd9a5740e7c1a037","lessThan":"6500eb3a48ac221051b1791818a1ac74744ef617","status":"affected","versionType":"git"},{"version":"a6a52579e52b55448326db88bd9a5740e7c1a037","lessThan":"7db182a2ebeefded86fea542fcc5d6a68bb77f58","status":"affected","versionType":"git"},{"version":"a6a52579e52b55448326db88bd9a5740e7c1a037","lessThan":"8aab4295582eb397a125d2788b829fa62b88dbf7","status":"affected","versionType":"git"},{"version":"a6a52579e52b55448326db88bd9a5740e7c1a037","lessThan":"bf7ebebce2c25071c719fd8a2f1307e0c243c2d7","status":"affected","versionType":"git"},{"version":"a6a52579e52b55448326db88bd9a5740e7c1a037","lessThan":"6583edbf459de2e06b9759f264c0ae27e452b97a","status":"affected","versionType":"git"},{"version":"a6a52579e52b55448326db88bd9a5740e7c1a037","lessThan":"417ea9fe972d2654a268ad66e89c8fcae67017c3","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/apparmor/apparmorfs.c"],"versions":[{"version":"4.17","status":"affected"},{"version":"0","lessThan":"4.17","status":"unaffected","versionType":"semver"},{"version":"4.19.256","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.211","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.138","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.63","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.19.4","lessThanOrEqual":"5.19.*","status":"unaffected","versionType":"semver"},{"version":"6.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"4.19.256"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"5.4.211"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"5.10.138"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"5.15.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"5.19.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"6.0"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/6500eb3a48ac221051b1791818a1ac74744ef617"},{"url":"https://git.kernel.org/stable/c/7db182a2ebeefded86fea542fcc5d6a68bb77f58"},{"url":"https://git.kernel.org/stable/c/8aab4295582eb397a125d2788b829fa62b88dbf7"},{"url":"https://git.kernel.org/stable/c/bf7ebebce2c25071c719fd8a2f1307e0c243c2d7"},{"url":"https://git.kernel.org/stable/c/6583edbf459de2e06b9759f264c0ae27e452b97a"},{"url":"https://git.kernel.org/stable/c/417ea9fe972d2654a268ad66e89c8fcae67017c3"}],"title":"apparmor: Fix memleak in aa_simple_write_to_buffer()","x_generator":{"engine":"bippy-1.2.0"}}}}