CVE-2026-99831
not scored yetapparmor: fix profile leak when a policy load fails
In the Linux kernel, the following vulnerability has been resolved:
apparmor: fix profile leak when a policy load fails
The error paths of aa_replace_profiles() and aa_unpack() do not break
the refcount cycle between label and proxy. They just aa_put_profile()
the new profiles, which drops the label refcount from 2 to 1, and the
proxy keeps the profile alive. Every failed atomic policy load
(e.g. "profile can not be replaced", or a later profile in the blob
failing to unpack) leaks every new profile in the set, along with its
proxy, rules and its loaddata reference.
The leak is usually not visible from userspace, because the raw_data
directory for a failed load is not created, but it becomes visible
when the blob is deduplicated onto an existing loaddata, which then
keeps its policy/raw_data/<rev> directory forever.
Add aa_put_unpublished_profile(), which drops the profile's own proxy
before putting the profile, and use it on those error paths. The
proxy of an unpacked profile is always freshly allocated and not
referenced by anything else before the profile is published, so
putting it is safe.
- Published
- 30 Nov 2026
- Last modified
- 30 Nov 2026
- Assigned by
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- NVD status
- Received
- Sources
- NVDJSONCVE ListJSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | Linux | Linux | >= 637f688dc3dc304a89f441d76f49a0e35bc49c08, < 086a46c82e33270815c8bbbdae5238136d44cb19; >= 637f688dc3dc304a89f441d76f49a0e35bc49c08, < fd17fdf972e16cbbcc7e930a8e03fdb694319aa9; >= 637f688dc3dc304a89f441d76f49a0e35bc49c08, < 2390625ee60eb12b6ffd9834511df250c1634bb3; >= 637f688dc3dc304a89f441d76f49a0e35bc49c08, < ce94927fa4173fcc1eca27bdc65a140064c8f1e6 | 086a46c82e33270815c8bbbdae5238136d44cb19, fd17fdf972e16cbbcc7e930a8e03fdb694319aa9, 2390625ee60eb12b6ffd9834511df250c1634bb3, ce94927fa4173fcc1eca27bdc65a140064c8f1e6 |
| CVE List | Linux | Linux | = 4.13 |
References
- https://git.kernel.org/stable/c/086a46c82e33270815c8bbbdae5238136d44cb19
- https://git.kernel.org/stable/c/2390625ee60eb12b6ffd9834511df250c1634bb3
- https://git.kernel.org/stable/c/ce94927fa4173fcc1eca27bdc65a140064c8f1e6
- https://git.kernel.org/stable/c/fd17fdf972e16cbbcc7e930a8e03fdb694319aa9
History
- 30 Nov 2026 14:45 UTC · NVD: first stored (published 30 Nov 2026)
- 30 Nov 2026 13:31 UTC · CVE List: first stored (published 30 Nov 2026)