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.

Affected products

VendorProductVersions
LinuxLinux637f688dc3dc304a89f441d76f49a0e35bc49c08 to <d8a4aac994f8497b20ace6c3ca33425c80ab7492 [affected]; 637f688dc3dc304a89f441d76f49a0e35bc49c08 to <c70aba4b08a081cae49aaa7f94e76758b221b01b [affected]; 637f688dc3dc304a89f441d76f49a0e35bc49c08 to <52e2c4b19e5a097e7c3fa99a39ad66b9d307c33a [affected]; 637f688dc3dc304a89f441d76f49a0e35bc49c08 to <d8bc7adff286996fd3e5e984e25eb2359eb5cd94 [affected]; 637f688dc3dc304a89f441d76f49a0e35bc49c08 to <e89a7966686b80e9a0e4b49c6040b6a18c6c98aa [affected]; 637f688dc3dc304a89f441d76f49a0e35bc49c08 to <8c054c71d47d19472d2aa2efbae89d2c85e0b7cf [affected]; 637f688dc3dc304a89f441d76f49a0e35bc49c08 to <dabd6ac70acaa838e011df72286734faa318f99b [affected]; 637f688dc3dc304a89f441d76f49a0e35bc49c08 to <33ed50716251d5b2875706c40d0c8082d46be0b1 [affected]
LinuxLinux4.13 [affected]; 0 to <4.13 [unaffected]; 5.10.275 to <=5.10.* [unaffected]; 5.15.226 to <=5.15.* [unaffected]; 6.1.193 to <=6.1.* [unaffected]; 6.6.163 to <=6.6.* [unaffected]; 6.12.117 to <=6.12.* [unaffected]; 6.18.63 to <=6.18.* [unaffected]; 7.3.4 to <=7.3.* [unaffected]; 7.4-rc1 to <=* [unaffected]

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Assess this vulnerability

Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.

Browse all CVE security advisories · Symaro cybersecurity services

Generated from the official CVE List on 01 Dec 2026 08:04 UTC.