apparmor: fix memory leak in verify_header
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ dd51c84857630e77c139afe4d9bba65fc051dc3f · < 4f0889f2df1ab99224a5e1ac4e20437eea5fe38e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
apparmor: fix memory leak in verify_header
The function sets `*ns = NULL` on every call, leaking the namespace string allocated in previous iterations when multiple profiles are unpacked. This also breaks namespace consistency checking since *ns is always NULL when the comparison is made.
Remove the incorrect assignment. The caller (aa_unpack) initializes *ns to NULL once before the loop, which is sufficient.
From the CVE record · Linux
The Linux kernel’s AppArmor verify_header function leaks a namespace string when multiple profiles are unpacked and disrupts namespace consistency checking. The input does not specify how an attacker could trigger this, whether authentication is required, or whether user interaction is needed.
Engineers running Linux kernels with AppArmor should check their installations; affected versions are not specified.