CVE-2026-99831: apparmor: fix profile leak when a policy load fails
apparmor: fix profile leak when a policy load fails
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1
Event History
Frequently Asked Questions
What conditions trigger the leak?
The leak occurs when an atomic AppArmor policy load fails, such as when a profile cannot be replaced or when a later profile in the policy blob fails to unpack. Each failed load can leak all newly created profiles in that policy set, including their proxies, rules, and loaddata references.
Is the issue normally visible from userspace?
Usually not. The raw_data directory is not created for a failed load, but the issue can become visible if the failed blob is deduplicated onto existing loaddata, causing its policy/raw_data/<rev> directory to persist indefinitely.
What was changed to prevent the leak?
The fix adds aa_put_unpublished_profile() and uses it in the affected error paths. This drops an unpublished profile's newly allocated proxy before releasing the profile, breaking the label-proxy reference cycle.