Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected f1bd904175e8190ce14aedee37e207ab51fe3b30 before b14fbacad77d64594228983ec20d61a224f3f491; affected f1bd904175e8190ce14aedee37e207ab51fe3b30 before b5a9da5d36162d34db0f36abb15420e295176793; affected f1bd904175e8190ce14aedee37e207ab51fe3b30 before 7cb69e109610bba500e1ecb870f7988a4717208a; affected f1bd904175e8190ce14aedee37e207ab51fe3b30 before cc2192899d502e3321e60cf1e91421e7309d089c; affected f1bd904175e8190ce14aedee37e207ab51fe3b30 before bf310b044e85d4de670c94295c5d8e4c5bc5e7bc; affected f1bd904175e8190ce14aedee37e207ab51fe3b30 before ae02e603c0b39b29f3ce6fe3efe01b286af1a2a4; affected f1bd904175e8190ce14aedee37e207ab51fe3b30 before 6d91479174240f39e9edea250d95fa08c678a207; affected f1bd904175e8190ce14aedee37e207ab51fe3b30 before 654fe7505dc6889724d4094fa64f89991afabfc3 |
| Linux / Linux | affected 4.13; unaffected 0 before 4.13; unaffected 5.10.261 through 5.10.*; unaffected 5.15.212 through 5.15.*; unaffected 6.1.178 through 6.1.*; unaffected 6.6.145 through 6.6.*; unaffected 6.12.97 through 6.12.*; unaffected 6.18.40 through 6.18.*; unaffected 7.1.5 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/b14fbacad77d64594228983ec20d61a224f3f491
- https://git.kernel.org/stable/c/b5a9da5d36162d34db0f36abb15420e295176793
- https://git.kernel.org/stable/c/7cb69e109610bba500e1ecb870f7988a4717208a
- https://git.kernel.org/stable/c/cc2192899d502e3321e60cf1e91421e7309d089c
- https://git.kernel.org/stable/c/bf310b044e85d4de670c94295c5d8e4c5bc5e7bc
- https://git.kernel.org/stable/c/ae02e603c0b39b29f3ce6fe3efe01b286af1a2a4
- https://git.kernel.org/stable/c/6d91479174240f39e9edea250d95fa08c678a207
- https://git.kernel.org/stable/c/654fe7505dc6889724d4094fa64f89991afabfc3