# CVE-2026-99838

- Bağlantı: https://www.allsafe.com.tr/cve-2026-99838/
- Yayımlanma: 2026-11-30T17:20:16+03:00
- Yazar: Postmaster

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.

Bu kayıt NIST NVD kaynağından aktarılmıştır. Etkilenen sürümler, güncel değerlendirme
ve üretici referansları için kaynak kaydı inceleyin.

Kaynak: [NIST NVD — özgün kaydı inceleyin ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-99838)
