CVE-2022-50074

published 18 Jun 2025 · updated 11 May 2026

apparmor: Fix memleak in aa_simple_write_to_buffer()

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 417ea9fe972d2654a268ad66e89c8fcae67017c3, Kernel 6500eb3a48ac221051b1791818a1ac74744ef617, Kernel 6583edbf459de2e06b9759f264c0ae27e452b97a and 3 more.

In the Linux kernel, the following vulnerability has been resolved: apparmor: Fix memleak in aa_simple_write_to_buffer() When copy_from_user 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 aa_put_loaddata(data) to fix this issue.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=4.17, >=a6a52579e52b55448326db88bd9a5740e7c1a037 <417ea9fe972d2654a268ad66e89c8fcae67017c3, >=a6a52579e52b55448326db88bd9a5740e7c1a037 <6500eb3a48ac221051b1791818a1ac74744ef617, >=a6a52579e52b55448326db88bd9a5740e7c1a037 <6583edbf459de2e06b9759f264c0ae27e452b97a, >=a6a52579e52b55448326db88bd9a5740e7c1a037 <7db182a2ebeefded86fea542fcc5d6a68bb77f58, >=a6a52579e52b55448326db88bd9a5740e7c1a037 <8aab4295582eb397a125d2788b829fa62b88dbf7, >=a6a52579e52b55448326db88bd9a5740e7c1a037 <bf7ebebce2c25071c719fd8a2f1307e0c243c2d7417ea9fe972d2654a268ad66e89c8fcae67017c3, 6500eb3a48ac221051b1791818a1ac74744ef617, 6583edbf459de2e06b9759f264c0ae27e452b97a, 7db182a2ebeefded86fea542fcc5d6a68bb77f58, 8aab4295582eb397a125d2788b829fa62b88dbf7, bf7ebebce2c25071c719fd8a2f1307e0c243c2d7

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-50074 severity on Zeptric[![CVE-2022-50074](https://zeptric.io/badge/cve/CVE-2022-50074.svg)](https://zeptric.io/cve/CVE-2022-50074)