Linux Kernel AppArmor Memory Leak Vulnerability in aa_simple_write_to_buffer

Vulnerability

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.

Impact

Exploitation of this vulnerability leads to a memory leak, where allocated memory is not properly freed, potentially causing increased memory usage and degradation of system performance over time.

Added: Jun 18, 2025, 6:13 PM
Updated: Jun 18, 2025, 6:13 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.0
remediation
0.0
relevance
0.2
threat
3.2
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.