Skip to contentSkip to conversation

CVE-2026-23405: apparmor: fix: limit the number of levels of policy namespaces

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 1

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

apparmor: fix: limit the number of levels of policy namespaces

Currently the number of policy namespaces is not bounded relying on the user namespace limit. However policy namespaces aren't strictly tied to user namespaces and it is possible to create them and nest them arbitrarily deep which can be used to exhaust system resource.

Hard cap policy namespaces to the same depth as user namespaces.

The Linux kernel CVE team has assigned CVE-2026-23405 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 2.6.36 with commit c88d4c7b049e87998ac0a9f455aa545cc895ef92 and fixed in 6.6.130 with commit 3f8699b3ee0c04b4b9bc27b82cd89a40e81e1d2e
	Issue introduced in 2.6.36 with commit c88d4c7b049e87998ac0a9f455aa545cc895ef92 and fixed in 6.12.77 with commit 853ce31ca72097d23991a06876a2ccb5cb64b603
	Issue introduced in 2.6.36 with commit c88d4c7b049e87998ac0a9f455aa545cc895ef92 and fixed in 6.18.18 with commit d42b2b6bb77ca40ee34ab74ad79305840b5f315d
	Issue introduced in 2.6.36 with commit c88d4c7b049e87998ac0a9f455aa545cc895ef92 and fixed in 6.19.8 with commit 7b6495ead2c611647f6b11441a852324e3eb8616
	Issue introduced in 2.6.36 with commit c88d4c7b049e87998ac0a9f455aa545cc895ef92 and fixed in 7.0-rc4 with commit 306039414932c80f8420695a24d4fe10c84ccfb2

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-23405

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/include/policy_ns.h
security/apparmor/policy_ns.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/3f8699b3ee0c04b4b9bc27b82cd89a40e81e1d2e
	https://git.kernel.org/stable/c/853ce31ca72097d23991a06876a2ccb5cb64b603
	https://git.kernel.org/stable/c/d42b2b6bb77ca40ee34ab74ad79305840b5f315d
	https://git.kernel.org/stable/c/7b6495ead2c611647f6b11441a852324e3eb8616
	https://git.kernel.org/stable/c/306039414932c80f8420695a24d4fe10c84ccfb2