CVE-2026-99838

apparmor: fix refcount leak in aa_get_newest_profile()

No CVSS score yet EPSS 0.22%

Published 30 Nov 2026 Updated 30 Nov 2026 CNA: Linux

Check your servers for CVE-2026-99838

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99838 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

apparmor: fix refcount leak in aa_get_newest_profile()

The labels_profile() macro is evaluating its argument twice

#define labels_profile(X) ((X)->vec[(X)->size - 1])

unfortunately aa_get_newest_profile() passes aa_get_newest_label(&p->label) so every call to aa_get_newest_profile results in 2 refcounts being taken with one being leaked.

There is no need for labels_profile() to be a macro. Convert it to an inline fn, which ensures all uses are passing the correct struct and removes the double evaluation.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.4% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 637f688dc3dc304a89f441d76f49a0e35bc49c08, before d8a4aac994f8497b20ace6c3ca33425c80ab7492
affected from 637f688dc3dc304a89f441d76f49a0e35bc49c08, before c70aba4b08a081cae49aaa7f94e76758b221b01b
affected from 637f688dc3dc304a89f441d76f49a0e35bc49c08, before 52e2c4b19e5a097e7c3fa99a39ad66b9d307c33a
affected from 637f688dc3dc304a89f441d76f49a0e35bc49c08, before d8bc7adff286996fd3e5e984e25eb2359eb5cd94
affected from 637f688dc3dc304a89f441d76f49a0e35bc49c08, before e89a7966686b80e9a0e4b49c6040b6a18c6c98aa
affected from 637f688dc3dc304a89f441d76f49a0e35bc49c08, before 8c054c71d47d19472d2aa2efbae89d2c85e0b7cf
affected from 637f688dc3dc304a89f441d76f49a0e35bc49c08, before dabd6ac70acaa838e011df72286734faa318f99b
affected from 637f688dc3dc304a89f441d76f49a0e35bc49c08, before 33ed50716251d5b2875706c40d0c8082d46be0b1
Other versions: unaffected
Linux
affected 4.13
unaffected before 4.13
unaffected from 5.10.275 up to and including 5.10.*
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.117 up to and including 6.12.*
unaffected from 6.18.63 up to and including 6.18.*
unaffected from 7.3.4 up to and including 7.3.*
unaffected 7.4-rc1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99838 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99838

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-99838
trivy image --scanners vuln IMAGE | grep CVE-2026-99838

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-99838 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.