apparmor: Fix memleak in aa_simple_write_to_buffer()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a6a52579e52b55448326db88bd9a5740e7c1a037 · < 417ea9fe972d2654a268ad66e89c8fcae67017c3| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's AppArmor aa_simple_write_to_buffer() function can leak memory when copy_from_user() fails. A local user who triggers that failure could cause a memory leak; the input does not specify authentication requirements or user interaction beyond the triggering operation.
Engineers running Linux kernels with AppArmor should check their versions; affected versions are not specified.