CVE-2026-90231: apparmor: fix unconfined user namespace restriction forced stack
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
apparmor: fix unconfined user namespace restriction forced stack
If a task is already confined by a stack the unprivileged transition restriction on unconfined is not correctly, applied. This results in an escape if two transitions through an unconfined profile can be executed.
Fix this by pushing the check into the per profile label build. The check will always be done against unconfined and result in a stack of just the unconfined component when necessary.
The Linux kernel CVE team has assigned CVE-2026-90231 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.7 with commit 2d9da9b188b8cd3b579d7ef5ba5d334be9dd38fc and fixed in 6.18.52 with commit 7d1099b86356df81c379159bfb8a598aaf83ce81 Issue introduced in 6.7 with commit 2d9da9b188b8cd3b579d7ef5ba5d334be9dd38fc and fixed in 7.2.6 with commit 7da0bdf0610f6d35bbb061536a47fc41646306f0 Issue introduced in 6.7 with commit 2d9da9b188b8cd3b579d7ef5ba5d334be9dd38fc and fixed in 7.3-rc1 with commit 08c2f7c8d4b1434cfae006f3daf4d1bce330b57b
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-90231
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
security/apparmor/domain.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/7d1099b86356df81c379159bfb8a598aaf83ce81 https://git.kernel.org/stable/c/7da0bdf0610f6d35bbb061536a47fc41646306f0 https://git.kernel.org/stable/c/08c2f7c8d4b1434cfae006f3daf4d1bce330b57b