# CVE-2026-89762: apparmor: fix cred UAF caused by begin_current_label_crit_section()

CVE-2026-89762 is fixed in 37 products on 1 platform, first by DEBIAN-CVE-2026-89762, released September 23, 2026. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2026-89762
- Priority: High
- CVSS: 7.8 (Moderate)
- EPSS: 0.0012
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Sep 11, 2026
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-89762

## Description

In the Linux kernel, the following vulnerability has been resolved:  apparmor: fix cred UAF caused by begin_current_label_crit_section()  AppArmor's begin_current_label_crit_section() is a scary function called from lots of LSM hooks (in particular VFS/socket-related ones) that checks if the label referenced by the current creds is marked FLAG_STALE, and if so, attempts to use aa_replace_current_label() to replace the creds with an updated version that uses a new label.  The first problem with this is that it would directly lead to UAF of `struct cred` if anything in the kernel takes a pointer to the current creds and accesses these past a security hook invocation that replaces creds, like so: ``` const struct cred *cred = current_cred(); alloc_file_pseudo(...); uid_t uid = cred->euid; ``` I don't know if anything in the kernel actually does this, but I think it is very surprising that this pattern could lead to UAF.  The second problem is that things go wrong when aa_replace_current_label() runs with overridden credentials. aa_replace_current_label() bails out if `current_cred() != current_real_cred()` (mirroring the check in proc_pid_attr_write()), but this check can't actually reliably detect overridden credentials because the overridden creds can be the same as the objective creds.  So in approximately the following scenario, things go wrong:  1. task begins with <creds A> (as both objective and subjective creds),    with refcount=2 2. task grabs an extra reference on <creds A> for overriding 3. task calls override_creds(<creds A>), which returns a pointer to the old    subjective creds (<creds A>) 4. task enters AppArmor LSM hook 5. AppArmor checks that objective/subjective creds are equal 6. AppArmor replaces both cred pointers with <creds B> and drops 2 refs on    <creds A> 7. task leaves AppArmor LSM hook 8. task calls revert_creds(<creds A>) 9. now task->cred is <creds A> while task->real_cred is <creds B>, but the    task_struct logically holds two references to <creds B> 10. another task drops the extra reference on <creds A> that was used for     overriding, refcount drops to 0 11. now task->real_cred points to freed creds  At this point, any access to current_cred() will be UAF.  I have a test case where I run aa-disable on a profile while a process using that profile is blocked on splice() from a FUSE passthrough file into a full pipe; after the profile update, the pipe becomes empty, splice() resumes, the credentials go out of sync, and a subsequent getuid() syscall results in a KASAN UAF splat.  To fix this, instead of directly replacing creds, do it via task_work that will run at the end of the current syscall. (The point in time at which the cred replacement happens should have no correctness impact; it is just a performance optimization to avoid unnecessarily touching the refcount of the new label.)  Note that AppArmor still performs direct cred replacements in the sb_pivotroot LSM hook after this change, and that direct cred replacements can still happen in VFS ->write() callbacks via proc_pid_attr_write().  There are two options for what to do with aa_dup_task_ctx(): Either explicitly reset new->label_replacement_pending after the entire aa_task_ctx has been copied, or switch to manually copying members over. I am switching to manually copying members over because that should make bugs more obvious.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | kernel-uek ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-core ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-core ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-core ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-core ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-devel ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-devel ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-modules ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-modules ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-modules-core ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-modules-core ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-modules-deprecated ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-modules-deprecated ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-modules-desktop ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-modules-desktop ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-modules-extra ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-modules-extra ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-modules-extra-netfilter ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-modules-extra-netfilter ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-modules-usb ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-modules-usb ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-modules-wireless ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-debug-modules-wireless ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-devel ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-devel ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-doc ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-doc ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-modules ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-modules ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-modules-core ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-modules-core ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-modules-deprecated ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-modules-deprecated ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-modules-desktop ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-modules-desktop ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-modules-extra ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-modules-extra ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-modules-extra-netfilter ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-modules-extra-netfilter ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-modules-usb ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-modules-usb ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-modules-wireless ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-modules-wireless ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-tools ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek-tools ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-core ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-core ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-devel ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-devel ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-modules ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-modules ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-modules-core ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-modules-core ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-modules-deprecated ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-modules-deprecated ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-modules-desktop ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-modules-desktop ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-modules-extra ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-modules-extra ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-modules-extra-netfilter ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-modules-extra-netfilter ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-modules-usb ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-modules-usb ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-modules-wireless ol 10 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | kernel-uek64k-modules-wireless ol 9 | 0:6.12.0-207.111.5.1.el9uek | [ELSA-2026-500374](https://patchblox.com/security/data/fix/linux/elsa-2026-500374.md) | Oct 7, 2026 |
| Linux | linux Debian 13.5 (trixie) | 6.12.111-1 | [DEBIAN-CVE-2026-89762](https://patchblox.com/security/data/fix/linux/debian-cve-2026-89762.md) | Sep 23, 2026 |
| Linux | linux Debian 14 | 7.2.6-1 | [DEBIAN-CVE-2026-89762](https://patchblox.com/security/data/fix/linux/debian-cve-2026-89762.md) | Sep 23, 2026 |
| Linux | linux-6.12 Debian 12.15 (bookworm) | 6.12.111-1~deb12u1 | [DEBIAN-CVE-2026-89762](https://patchblox.com/security/data/fix/linux/debian-cve-2026-89762.md) | Sep 23, 2026 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
