CVE-2022-50074 Details
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.
A memory leak vulnerability has been identified in the Linux kernel's AppArmor subsystem, specifically within the aa_simple_write_to_buffer() function. The issue arises when the copy_from_user function fails; while the memory is released using kvfree, the management structure and data blob are allocated separately. This discrepancy leads to a memory leak, as only the data blob is properly freed. The vulnerability has been addressed by modifying the memory management to use aa_put_loaddata(data), ensuring that all allocated resources are correctly released.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/417ea9fe972d2654a268ad66e89c8fcae67017c3 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6500eb3a48ac221051b1791818a1ac74744ef617 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6583edbf459de2e06b9759f264c0ae27e452b97a | kernel.org | Patch |
| https://git.kernel.org/stable/c/7db182a2ebeefded86fea542fcc5d6a68bb77f58 | kernel.org | Patch |
| https://git.kernel.org/stable/c/8aab4295582eb397a125d2788b829fa62b88dbf7 | kernel.org | Patch |
| https://git.kernel.org/stable/c/bf7ebebce2c25071c719fd8a2f1307e0c243c2d7 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.17, < 4.19.256 >= 4.20, < 5.4.211 >= 5.5, < 5.10.138 >= 5.11, < 5.15.63 >= 5.16, < 5.19.4 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 17, 2025 | Initial Analysis | [email protected] |
| Jun 18, 2025 | New CVE Received | kernel.org |