diff options
| author | Zygmunt Krynicki <me@zygoon.pl> | 2026-05-02 13:37:14 +0200 |
|---|---|---|
| committer | John Johansen <john.johansen@canonical.com> | 2026-06-13 20:18:30 -0700 |
| commit | fea23bf73f0cae8ccb1d0684e4a3003874771f41 (patch) | |
| tree | dce15b41cdb45e16f82cb628b18d6dfb0aede64d /include/linux/timerqueue.h | |
| parent | e27bfb2ae9ad8522aea82d435fd6d73cccee7e17 (diff) | |
apparmor: aa_getprocattr free procattr leak on format failure
aa_getprocattr() allocates the output string before rendering the label
into it. If the second aa_label_snxprint() call fails, the function
returned without freeing that allocation.
Free and clear the output pointer on the uncommon formatting failure path
before dropping the namespace reference.
Fixes: 76a1d263aba3 ("apparmor: switch getprocattr to using label_print fns()")
Reviewed-by: Tyler Hicks <code@thicks.com>
Reviewed-by: Ryan Lee <ryan.lee@canonical.com>
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
