CVE-2022-50074

Medium

Description

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.

SeverityMedium
CVSS5.5
Exploit probability—
ProductLinux Kernel
PublishedJun 18, 2025
First seenJun 18, 2025

How to fix

Update
  • linux linux_kernel4.19.256, 5.4.211, 5.10.138, 5.15.63, 5.19.4 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernel4.17 ≤ v < 4.19.256, 4.20 ≤ v < 5.4.211, 5.5 ≤ v < 5.10.138, 5.11 ≤ v < 5.15.63, 5.16 ≤ v < 5.19.44.19.256, 5.4.211, 5.10.138, 5.15.63, 5.19.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.