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 55C9E3B3891 for ; Wed, 1 Apr 2026 08:38:04 +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=1775032684; cv=none; b=nbynpGowVNzY7pNK1gGb4bETUo/LQjt4yFWXYjHVNVLCwDFfHGR3BeAY67spaQ7VSbz1sv0iG4GzJsj/dT0722XleGn/TXvYuyfN37EcL3yMsf5K8iCrSlLJl0VmHE0kH03iFjsRbnMK97qsI3tKyh6xH/q+UXPySgjISjETn0A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775032684; c=relaxed/simple; bh=VyzhzQqTvTSeqq0yLAIDYvWynt4UVXP6J7i/WCZscyQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jwp/EUFUg2b1Ghe2/d1wGB3mBX8PnMp7NcZ8Fb/dxG2/Wyri5e1Iae1dnli4bPq62/+u+uPesAsXd1YkY83h43jZIQtAFPBPqlcVRKlpePEn65PVSODukit6CYjDoqebLNVmWQuKgRAHPxfs1WJb70NvMAcRgCXtKmOflPJa0Nc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wXSrtAB5; 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="wXSrtAB5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D3F7C2BC9E; Wed, 1 Apr 2026 08:38:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775032683; bh=VyzhzQqTvTSeqq0yLAIDYvWynt4UVXP6J7i/WCZscyQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=wXSrtAB50Rrny6JyS24GFNn0/SrMxJWvW5qB4KWnHN5UFzif6RdXyqMreaAJcsoa3 E+kgUPZLV3zyuT+zWNfWZ4I7EhL/tIvjQXOsvWwSJDF3k9H2cWFysfCGzF7zGG2h2c z2UYFpeIrI6gGCkOhSZb5YK8F4qHIL3rU/PkQ2dM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23404: apparmor: replace recursive profile removal with iterative approach Date: Wed, 1 Apr 2026 10:37:12 +0200 Message-ID: <2026040111-CVE-2026-23404-8b0b@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=3076; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5dx9sMDgYyYJTReJkcyYM1fOrWmRNCUveXcl4PcgHFs=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlnbpqvnaV6YHPkKg4OCdGlvvdPB//eW+Og4qmhxeJq4 uv0aWFZRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEK4FhwdmLcies5VKLfX/W /rJ22af4MeubLcM8m8vnFl1jL56r9N2am21F6XbhCcpqAA== 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: replace recursive profile removal with iterative approach The profile removal code uses recursion when removing nested profiles, which can lead to kernel stack exhaustion and system crashes. Reproducer: $ pf='a'; for ((i=0; i<1024; i++)); do echo -e "profile $pf { \n }" | apparmor_parser -K -a; pf="$pf//x"; done $ echo -n a > /sys/kernel/security/apparmor/.remove Replace the recursive __aa_profile_list_release() approach with an iterative approach in __remove_profile(). The function repeatedly finds and removes leaf profiles until the entire subtree is removed, maintaining the same removal semantic without recursion. The Linux kernel CVE team has assigned CVE-2026-23404 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.36 with commit c88d4c7b049e87998ac0a9f455aa545cc895ef92 and fixed in 6.6.130 with commit 33959a491e9fd557abfa5fce5ae4637d400915d3 Issue introduced in 2.6.36 with commit c88d4c7b049e87998ac0a9f455aa545cc895ef92 and fixed in 6.12.77 with commit 999bd704b0b641527a5ed46f0d969deff8cfa68b Issue introduced in 2.6.36 with commit c88d4c7b049e87998ac0a9f455aa545cc895ef92 and fixed in 6.18.18 with commit 7eade846e013cbe8d2dc4a484463aa19e6515c7f Issue introduced in 2.6.36 with commit c88d4c7b049e87998ac0a9f455aa545cc895ef92 and fixed in 6.19.8 with commit a6a941a1294ac5abe22053dc501d25aed96e48fe Issue introduced in 2.6.36 with commit c88d4c7b049e87998ac0a9f455aa545cc895ef92 and fixed in 7.0-rc4 with commit ab09264660f9de5d05d1ef4e225aa447c63a8747 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-23404 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/policy.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/33959a491e9fd557abfa5fce5ae4637d400915d3 https://git.kernel.org/stable/c/999bd704b0b641527a5ed46f0d969deff8cfa68b https://git.kernel.org/stable/c/7eade846e013cbe8d2dc4a484463aa19e6515c7f https://git.kernel.org/stable/c/a6a941a1294ac5abe22053dc501d25aed96e48fe https://git.kernel.org/stable/c/ab09264660f9de5d05d1ef4e225aa447c63a8747