VYPR
Unrated severityNVD Advisory· Published Jun 18, 2025

apparmor: Fix memleak in aa_simple_write_to_buffer()

CVE-2022-50074

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected products

83

Patches

Vulnerability mechanics

References

6

News mentions

0

No linked articles in our index yet.