Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BCE8F399019 for ; Wed, 1 Apr 2026 08:38:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775032686; cv=none; b=uh0xFNBs8P4jHbWfMfGSOP3pzfIY1BjAIHgg1BnQQ7Mv79DOnQZFMhiGV1vOG1t6qA8C+ttv3ewwH/uocb60vIk5UjLiIhtkSUXeulLnHLqhiFFidC64MPHMPiAuk2TSL1YFJqCT6lrFnkUAeoGYa/BZkcjDrEKqjgGzTWliA5I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775032686; c=relaxed/simple; bh=Py0BnVPdxL7CxsAEhOwlTqD3K6O7H+RKTyj2zO2MI94=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j3Uxlv5/8TaD25VpFWtCaLXI3Eze9bNuYdLYAnVuYj+FHVd6gT7bAAgWlDJP1jdb7dHOwu2ABQdipW7AryisOg3nSM3HEPLaiDVSOn/pQoTiVQYodBWaXm1BFs2UGmui2vF86WdgHuWGVTEZW+80McPr+6Pf1OFHfWQ8gD1xVfI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kd8dDhPC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="kd8dDhPC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 254F8C4CEF7; Wed, 1 Apr 2026 08:38:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775032686; bh=Py0BnVPdxL7CxsAEhOwlTqD3K6O7H+RKTyj2zO2MI94=; h=From:To:Cc:Subject:Date:Reply-To:From; b=kd8dDhPC3qY5Vz97x4TmS9F2aHPCtQ9m4HM6ZrGnxFsT+ki+9026O2enWF87g6m5s sWV603F/+LDQHAPLIAe8loYoEEm8AQFaJiyNIglPmOZ05kboFymU560ssKzGHPWEGw VsEqfY0zSzG6XHfMDb/WlGntFXJQV/KNDM2dML3A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23405: apparmor: fix: limit the number of levels of policy namespaces Date: Wed, 1 Apr 2026 10:37:13 +0200 Message-ID: <2026040111-CVE-2026-23405-0e7a@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2856; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BZoxKwFs+xsEqEkTYm2onFSFX8l3c6WHiIqji+6Q9WM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlnblpwzEzh/3t64Y6yJwbvTpW5O3arCD66njqhNOT+3 J+iU1rCO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiO3sY5pmFfXM+GJN+5tTU 5tJlvcGK1gsuRDIs2Oye9LZU2C5q7vbim2za/9Z7mfpzAwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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