apparmor: Fix memleak in alloc_ns()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
apparmor: Fix memleak in alloc_ns()
After changes in commit a1bd627b46d1 ("apparmor: share profile name on replacement"), the hname member of struct aa_policy is not valid slab object, but a subset of that, it can not be freed by kfree_sensitive(), use aa_policy_destroy() to fix it.
From the CVE record · Linux
The Linux kernel’s AppArmor alloc_ns() has a memory-leak issue involving how a policy name is freed. The input does not specify what an attacker could do with this issue or whether exploiting it requires local access, authentication, or user interaction.
Engineers running the Linux kernel with AppArmor should check their installations; affected versions are not specified.