VDB

CVE-2022-50074

CVE-2022-50074 PUBLISHED

apparmor: Fix memleak in aa_simple_write_to_buffer()

Reported by linux · Published June 18, 2025

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.

EPSS 0.19% · 9.1th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux5.19.4, 5.15.63, 5.10.138, 5.4.211, 4.19.256

Risk scores

EPSS Score
0.19%
9.1th percentile

Affected products

VendorProductVersions
LinuxLinuxa6a52579e52b55448326db88bd9a5740e7c1a037, a6a52579e52b55448326db88bd9a5740e7c1a037, a6a52579e52b55448326db88bd9a5740e7c1a037
LinuxLinux4.17, 0, 4.19.256
linuxlinux_kernel4.17, 4.17, 4.17
LinuxLinux*, *, *

Timeline

  • Jun 18, 2025 CVE Published
  • Jun 29, 2025 EPSS Score (29 in total, the first dated here)
  • May 23, 2026 Coalition ESS Score
  • Jun 2, 2026 Security Advisory (239 in total, the first dated here)
  • Oct 13, 2026 CVE Updated
  • Oct 18, 2026 Distribution Patch (228 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-50074
vulnetix vdb fixes CVE-2022-50074

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-50074/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›