apparmor: aa_label_alloc use aa_label_free on alloc failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f1bd904175e8190ce14aedee37e207ab51fe3b30 · < ae02e603c0b39b29f3ce6fe3efe01b286af1a2a4| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
apparmor: aa_label_alloc use aa_label_free on alloc failure
aa_label_alloc() allocates a secid before allocating or taking the label proxy. If the later proxy step fails, the error path only freed the label memory, leaking any resources initialized by aa_label_init().
Use aa_label_free() on the failure path so partially initialized labels release their secid and other label resources before the backing memory is freed.
From the CVE record · Linux
In the Linux kernel, aa_label_alloc() can leak a secid and other label resources if label proxy allocation or acquisition fails. The input does not specify how an attacker could trigger this failure or whether local access, authentication, or user interaction is required.
Engineers running Linux kernels with AppArmor should check their versions; affected versions are not specified in the input.