CVE-2026-99831

Source
https://cve.org/CVERecord?id=CVE-2026-99831
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99831.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-99831
Downstream
Published
2026-11-30T13:17:27Z
Modified
2026-11-30T15:02:31Z
Summary
apparmor: fix profile leak when a policy load fails
Details

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/ 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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99831.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
637f688dc3dc304a89f441d76f49a0e35bc49c08
Fixed
086a46c82e33270815c8bbbdae5238136d44cb19
Fixed
fd17fdf972e16cbbcc7e930a8e03fdb694319aa9
Fixed
2390625ee60eb12b6ffd9834511df250c1634bb3
Fixed
ce94927fa4173fcc1eca27bdc65a140064c8f1e6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99831.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.13.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99831.json"