AZL-114989: CVE-2026-99505 affecting package kernel 6.6.161.1-1

Published Nov 19, 2026
·
Updated

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

apparmor: fix a use-after-free in aalookupnns()

aalookupnns() takes a reference on the namespace it finds with aagetns(), which is krefget() on the reference count that the namespace is released through, without checking whether the namespace is still in use. A concurrent removal of a ":"-prefixed namespace looks the same namespace up and only then takes the parent lock to remove it, so the last reference can be dropped between the lookup and the aagetns() call: the reference count then reports the increment on a zero count and the kernel classifies the following use of the object as a use-after-free. A user with CAPMACADMIN can trigger this by writing a ":<name>" removal and a ":<name>/<profile>" removal to /sys/kernel/security/apparmor/.remove concurrently.

refcountt: addition on 0; use-after-free. WARNING: lib/refcount.c:25 at refcountwarnsaturate+0xc0/0xe0, CPU#6 Call Trace: <TASK> aalookupnns+0xa9/0xc0 aaremoveprofiles+0x4fb/0x730 ? kvmallocnodenoprof+0x219/0x5c0 ? pfxaaremoveprofiles+0x10/0x10 ? aaloaddataalloc+0x65/0x1f0 ? copyfromuser+0x2d/0x80 ? aaloaddataalloc+0x111/0x1f0 profileremove+0x2ee/0x4a0 vfswrite+0x21e/0xcf0 ? rcucore+0x29c/0x1740 ? timerqueuelinkedadd+0x1f4/0x3d0 ? pfxvfswrite+0x10/0x10 ? mutexlock+0x81/0xe0 ? pfxmutexlock+0x10/0x10 ? pfxrcucore+0x10/0x10 ? pfxhrtimerupdatenextevent+0x10/0x10 ? mutexunlock+0x7b/0xd0 ? fdgetpos+0x24d/0x4b0 ksyswrite+0xf7/0x1c0 ? pfxksyswrite+0x10/0x10 ? restorefpregsfromfpstate+0x37/0xc0 dosyscall64+0xf9/0x540 entrySYSCALL64afterhwframe+0x77/0x7f </TASK>

Fix by rejecting a namespace whose reference count is zero.

Affected Software

1 affected component
azure-linux/kernel<=6.6.161.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In aa_lookupn_ns(), reject a namespace whose reference count is zero.

Event History

Nov 19, 2026
Advisory Published
via OSV·03:18 PM
Data Sourced
via OSV·03:18 PM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203