Bug 2586224 (CVE-2026-99838) - CVE-2026-99838 kernel: kernel: apparmor: Denial of Service via reference count leak in aa_get_newest_profile
Summary: CVE-2026-99838 kernel: kernel: apparmor: Denial of Service via reference coun...
Keywords:
Status: NEW
Alias: CVE-2026-99838
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-30 13:36 UTC by OSIDB Bzimport
Modified: 2026-11-30 16:51 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-30 13:36:09 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.