CVE-2026-99831
publishedapparmor: fix profile leak when a policy load fails
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux637f688dc3dc304a89f441d76f49a0e35bc49c08 to < 086a46c82e33270815c8bbbdae5238136d44cb19 · 637f688dc3dc304a89f441d76f49a0e35bc49c08 to < fd17fdf972e16cbbcc7e930a8e03fdb694319aa9 · 637f688dc3dc304a89f441d76f49a0e35bc49c08 to < 2390625ee60eb12b6ffd9834511df250c1634bb3 · 637f688dc3dc304a89f441d76f49a0e35bc49c08 to < ce94927fa4173fcc1eca27bdc65a140064c8f1e6 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.13 (affected) · 0 to < 4.13 (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 637f688dc3dc304a89f441d76f49a0e35bc49c08 to < 086a46c82e33270815c8bbbdae5238136d44cb19 (affected · git)637f688dc3dc304a89f441d76f49a0e35bc49c08 to < fd17fdf972e16cbbcc7e930a8e03fdb694319aa9 (affected · git)637f688dc3dc304a89f441d76f49a0e35bc49c08 to < 2390625ee60eb12b6ffd9834511df250c1634bb3 (affected · git)637f688dc3dc304a89f441d76f49a0e35bc49c08 to < ce94927fa4173fcc1eca27bdc65a140064c8f1e6 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.13 (affected)0 to < 4.13 (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
apparmor: fix profile leak when a policy load fails
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 596ef6ca6bc1d959e65408785a18e640b6d048f83402da08b8d49d7fa493f3b4
- Ingested
- 30 Nov 2026, 13:30:07 UTC
- Source record
- Official CVE record