diff options
author | John Johansen <john.johansen@canonical.com> | 2025-05-23 21:04:51 -0700 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2025-07-15 22:39:07 -0700 |
commit | aff426f35966e6e77ecfe065984344a7d834eaa9 (patch) | |
tree | 612b60bd88d3772a2a78f03d61c518dd946db98a /security/apparmor/af_unix.c | |
parent | b1f87be7280ff48794f0fe55c9ca6df9d87d62c5 (diff) |
apparmor: mitigate parser generating large xtables
Some versions of the parser are generating an xtable transition per
state in the state machine, even when the state machine isn't using
the transition table.
The parser bug is triggered by
commit 2e12c5f06017 ("apparmor: add additional flags to extended permission.")
In addition to fixing this in userspace, mitigate this in the kernel
as part of the policy verification checks by detecting this situation
and adjusting to what is actually used, or if not used at all freeing
it, so we are not wasting unneeded memory on policy.
Fixes: 2e12c5f06017 ("apparmor: add additional flags to extended permission.")
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/af_unix.c')
0 files changed, 0 insertions, 0 deletions