0.0
NA
CVE-2026-99838
apparmor: fix refcount leak in aa_get_newest_profile()
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.

INFO

Published Date :

Nov. 30, 2026, 2:20 p.m.

Last Modified :

Nov. 30, 2026, 2:20 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-99838 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
Solution
Resolve a reference count leak in the Linux kernel's AppArmor module by fixing a macro evaluation issue.
  • Update the Linux kernel to include the fix for AppArmor refcount leak.
  • Review and test changes related to aa_get_newest_profile() function.
  • Ensure macro evaluations are correctly handled in kernel code.
  • Convert labels_profile() to an inline function.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-99838 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-99838 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-99838 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-99838 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Nov. 30, 2026

    Action Type Old Value New Value
    Added 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.
    Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/99xxx/CVE-2026-99838.json">CVE-2026-99838</a>
    Added Reference https://git.kernel.org/stable/c/33ed50716251d5b2875706c40d0c8082d46be0b1
    Added Reference https://git.kernel.org/stable/c/52e2c4b19e5a097e7c3fa99a39ad66b9d307c33a
    Added Reference https://git.kernel.org/stable/c/8c054c71d47d19472d2aa2efbae89d2c85e0b7cf
    Added Reference https://git.kernel.org/stable/c/c70aba4b08a081cae49aaa7f94e76758b221b01b
    Added Reference https://git.kernel.org/stable/c/d8a4aac994f8497b20ace6c3ca33425c80ab7492
    Added Reference https://git.kernel.org/stable/c/d8bc7adff286996fd3e5e984e25eb2359eb5cd94
    Added Reference https://git.kernel.org/stable/c/dabd6ac70acaa838e011df72286734faa318f99b
    Added Reference https://git.kernel.org/stable/c/e89a7966686b80e9a0e4b49c6040b6a18c6c98aa
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.