{"id":"CVE-2026-99505","aliases":[],"cve":{"records":[{"id":"CVE-2026-99505","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-25T10:25:14.419Z","published":"2026-11-19T14:43:55.775Z","modified":"2026-11-19T14:43:55.775Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-11-19T14:43:55.775Z"}],"references":[{"url":"https://git.kernel.org/stable/c/2588c5693f4535e856841976cb1e1532bae77109","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/174b4b90ec6731934cf84eb267a86ad7152267fa","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/8db1a8614b4f8f3da11c568e2b5af4fe56eef360","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/f292873ceb4bd3a1a0f75f884361cd556e457692","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"7.4-rc1"}]}]}]}],"prioritization":[]},"title":"apparmor: fix a use-after-free in aa_lookupn_ns()","titleSource":"Linux","descriptionSource":"Linux","description":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix a use-after-free in aa_lookupn_ns()\n\naa_lookupn_ns() takes a reference on the namespace it finds with\naa_get_ns(), which is kref_get() on the reference count that the\nnamespace is released through, without checking whether the namespace\nis still in use.  A concurrent removal of a \":\"-prefixed namespace\nlooks the same namespace up and only then takes the parent lock to\nremove it, so the last reference can be dropped between the lookup and\nthe aa_get_ns() call: the reference count then reports the increment on\na zero count and the kernel classifies the following use of the object\nas a use-after-free.  A user with CAP_MAC_ADMIN can trigger this by\nwriting a \":<name>\" removal and a \":<name>/<profile>\" removal to\n/sys/kernel/security/apparmor/.remove concurrently.\n\nrefcount_t: addition on 0; use-after-free.\nWARNING: lib/refcount.c:25 at refcount_warn_saturate+0xc0/0xe0, CPU#6\nCall Trace:\n <TASK>\n aa_lookupn_ns+0xa9/0xc0\n aa_remove_profiles+0x4fb/0x730\n ? __kvmalloc_node_noprof+0x219/0x5c0\n ? __pfx_aa_remove_profiles+0x10/0x10\n ? aa_loaddata_alloc+0x65/0x1f0\n ? _copy_from_user+0x2d/0x80\n ? aa_loaddata_alloc+0x111/0x1f0\n profile_remove+0x2ee/0x4a0\n vfs_write+0x21e/0xcf0\n ? rcu_core+0x29c/0x1740\n ? timerqueue_linked_add+0x1f4/0x3d0\n ? __pfx_vfs_write+0x10/0x10\n ? mutex_lock+0x81/0xe0\n ? __pfx_mutex_lock+0x10/0x10\n ? __pfx_rcu_core+0x10/0x10\n ? __pfx_hrtimer_update_next_event+0x10/0x10\n ? mutex_unlock+0x7b/0xd0\n ? fdget_pos+0x24d/0x4b0\n ksys_write+0xf7/0x1c0\n ? __pfx_ksys_write+0x10/0x10\n ? restore_fpregs_from_fpstate+0x37/0xc0\n do_syscall_64+0xf9/0x540\n entry_SYSCALL_64_after_hwframe+0x77/0x7f\n </TASK>\n\nFix by rejecting a namespace whose reference count is zero.","score":null,"severity":"unknown","published":"2026-11-19T14:43:55.775Z","modified":"2026-11-19T14:43:55.775Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"3664268f19ea07bec55df92fe53ff9ed28968bcc","status":"affected","lessThan":"2588c5693f4535e856841976cb1e1532bae77109","versionType":"git"},{"version":"3664268f19ea07bec55df92fe53ff9ed28968bcc","status":"affected","lessThan":"174b4b90ec6731934cf84eb267a86ad7152267fa","versionType":"git"},{"version":"3664268f19ea07bec55df92fe53ff9ed28968bcc","status":"affected","lessThan":"8db1a8614b4f8f3da11c568e2b5af4fe56eef360","versionType":"git"},{"version":"3664268f19ea07bec55df92fe53ff9ed28968bcc","status":"affected","lessThan":"f292873ceb4bd3a1a0f75f884361cd556e457692","versionType":"git"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99505"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"4.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.13","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99505"}],"remediation":[],"references":["https://git.kernel.org/stable/c/2588c5693f4535e856841976cb1e1532bae77109","https://git.kernel.org/stable/c/174b4b90ec6731934cf84eb267a86ad7152267fa","https://git.kernel.org/stable/c/8db1a8614b4f8f3da11c568e2b5af4fe56eef360","https://git.kernel.org/stable/c/f292873ceb4bd3a1a0f75f884361cd556e457692"],"sources":[{"name":"CVE","id":"CVE-2026-99505","modified":"2026-11-19T14:43:55.775Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99505"}],"assessments":[],"sourceAffected":[],"observedAt":"2026-11-19T14:59:04.878Z","kev":{"status":"not-listed","checkedAt":"2026-11-22T13:00:31.692Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-22T03:50:31.277Z","attemptedAt":"2026-11-22T03:50:31.277Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-22T03:35:32.030Z","attemptedAt":"2026-11-22T03:35:32.030Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-22T02:05:37.158Z","attemptedAt":"2026-11-22T02:05:37.158Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-22T01:35:32.504Z","attemptedAt":"2026-11-22T01:35:32.504Z"}],"evidence":[{"source":"FIRST EPSS","id":"CVE-2026-99505","url":"https://www.first.org/epss/","probability":0.00174,"percentile":0.06938,"date":"2026-11-21","checkedAt":"2026-11-22T01:35:32.504Z"},{"source":"ENISA EUVD","id":"EUVD-2026-130182","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-130182","modified":"Nov 19, 2026, 2:43:55 PM","checkedAt":"2026-11-22T02:05:37.158Z"},{"source":"GitHub Advisory Database","id":"GHSA-qh37-3xh4-c3q4","url":"https://github.com/advisories/GHSA-qh37-3xh4-c3q4","modified":"2026-11-19T15:31:28Z","checkedAt":"2026-11-22T03:35:32.030Z"},{"source":"NVD","id":"CVE-2026-99505","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99505","modified":"2026-11-19T15:18:05.737","checkedAt":"2026-11-22T03:50:31.277Z"}],"aiSummary":null}