CVE-2026-99505
Last modified
CVE-2026-99505 is a vulnerability of currently unknown severity. In the Linux kernel, the following vulnerability has been resolved: apparmor: fix a use-after-free in aa_lookupn_ns() aa_lookupn_ns() takes a reference on the namespace it finds with aa_get_ns(), which is kref_get() 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 aa_get_ns() 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. EPSS estimates a 0.17% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: apparmor: fix a use-after-free in aa_lookupn_ns() aa_lookupn_ns() takes a reference on the namespace it finds with aa_get_ns(), which is kref_get() 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 aa_get_ns() 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 CAP_MAC_ADMIN can trigger this by writing a ":<name>" removal and a ":<name>/<profile>" removal to /sys/kernel/security/apparmor/.remove concurrently. refcount_t: addition on 0; use-after-free. WARNING: lib/refcount.c:25 at refcount_warn_saturate+0xc0/0xe0, CPU#6 Call Trace: <TASK> aa_lookupn_ns+0xa9/0xc0 aa_remove_profiles+0x4fb/0x730 ? __kvmalloc_node_noprof+0x219/0x5c0 ? __pfx_aa_remove_profiles+0x10/0x10 ? aa_loaddata_alloc+0x65/0x1f0 ? _copy_from_user+0x2d/0x80 ? aa_loaddata_alloc+0x111/0x1f0 profile_remove+0x2ee/0x4a0 vfs_write+0x21e/0xcf0 ? rcu_core+0x29c/0x1740 ? timerqueue_linked_add+0x1f4/0x3d0 ? __pfx_vfs_write+0x10/0x10 ? mutex_lock+0x81/0xe0 ? __pfx_mutex_lock+0x10/0x10 ? __pfx_rcu_core+0x10/0x10 ? __pfx_hrtimer_update_next_event+0x10/0x10 ? mutex_unlock+0x7b/0xd0 ? fdget_pos+0x24d/0x4b0 ksys_write+0xf7/0x1c0 ? __pfx_ksys_write+0x10/0x10 ? restore_fpregs_from_fpstate+0x37/0xc0 do_syscall_64+0xf9/0x540 entry_SYSCALL_64_after_hwframe+0x77/0x7f </TASK> Fix by rejecting a namespace whose reference count is zero.
Metrics
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 3664268f19ea07bec55df92fe53ff9ed28968bcc, < 87124024b0a7c46e04f5588808fd2c0e95ce567a; >= 3664268f19ea07bec55df92fe53ff9ed28968bcc, < df8685e4f9da816927395c456a62c1043ecdd99a; >= 3664268f19ea07bec55df92fe53ff9ed28968bcc, < ba45d73f8782e3e9d521ec2bd4c4b4b4dc548f2b; >= 3664268f19ea07bec55df92fe53ff9ed28968bcc, < 1f09cc23d1cdf440ff03d4a0cf3ed8100134d9d3; >= 3664268f19ea07bec55df92fe53ff9ed28968bcc, < 2588c5693f4535e856841976cb1e1532bae77109; >= 3664268f19ea07bec55df92fe53ff9ed28968bcc, < 174b4b90ec6731934cf84eb267a86ad7152267fa; >= 3664268f19ea07bec55df92fe53ff9ed28968bcc, < 8db1a8614b4f8f3da11c568e2b5af4fe56eef360; >= 3664268f19ea07bec55df92fe53ff9ed28968bcc, < f292873ceb4bd3a1a0f75f884361cd556e457692 |
| Linux | Linux | 4.13 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-99505?
How severe is CVE-2026-99505?
How do I fix CVE-2026-99505?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-9950Insufficient validation of untrusted input in iOS in Google …3.1
- CVE-2026-99500In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99501In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99502In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99503In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99504In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99506In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-99507In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-99508In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99509In the Linux kernel, the following vulnerability has been re…
- CVE-2026-9951Use after free in UI in Google Chrome prior to 148.0.7778.21…8.3
- CVE-2026-99510In the Linux kernel, the following vulnerability has been re…7
Are you affected by CVE-2026-99505?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
