{"id":"CVE-2026-23404","aliases":["CVE-2026-23404"],"related":[],"kind":"vulnerability","state":"published","title":"apparmor: replace recursive profile removal with iterative approach","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: replace recursive profile removal with iterative approach\n\nThe profile removal code uses recursion when removing nested profiles,\nwhich can lead to kernel stack exhaustion and system crashes.\n\nReproducer:\n  $ pf='a'; for ((i=0; i<1024; i++)); do\n      echo -e \"profile $pf { \\n }\" | apparmor_parser -K -a;\n      pf=\"$pf//x\";\n  done\n  $ echo -n a > /sys/kernel/security/apparmor/.remove\n\nReplace the recursive __aa_profile_list_release() approach with an\niterative approach in __remove_profile(). The function repeatedly\nfinds and removes leaf profiles until the entire subtree is removed,\nmaintaining the same removal semantic without recursion.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: replace recursive profile removal with iterative approach\n\nThe profile removal code uses recursion when removing nested profiles,\nwhich can lead to kernel stack exhaustion and system crashes.\n\nReproducer:\n  $ pf='a'; for ((i=0; i<1024; i++)); do\n      echo -e \"profile $pf { \\n }\" | apparmor_parser -K -a;\n      pf=\"$pf//x\";\n  done\n  $ echo -n a > /sys/kernel/security/apparmor/.remove\n\nReplace the recursive __aa_profile_list_release() approach with an\niterative approach in __remove_profile(). The function repeatedly\nfinds and removes leaf profiles until the entire subtree is removed,\nmaintaining the same removal semantic without recursion.","source":"cvelist"}],"published":"2026-04-01T08:36:35.032Z","modified":"2026-06-17T10:21:30.953Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"c88d4c7b049e87998ac0a9f455aa545cc895ef92","fixed":"ea854f032190cc9f26dc4a0e727090c89e55e342","status":"affected"},{"type":"git","introduced":"c88d4c7b049e87998ac0a9f455aa545cc895ef92","fixed":"4fdc847b107321dec22bf8ecd6019b7af76d7886","status":"affected"},{"type":"git","introduced":"c88d4c7b049e87998ac0a9f455aa545cc895ef92","fixed":"b36a04284d0208be94e5e401409caa00e2bf1be1","status":"affected"},{"type":"git","introduced":"c88d4c7b049e87998ac0a9f455aa545cc895ef92","fixed":"33959a491e9fd557abfa5fce5ae4637d400915d3","status":"affected"},{"type":"git","introduced":"c88d4c7b049e87998ac0a9f455aa545cc895ef92","fixed":"999bd704b0b641527a5ed46f0d969deff8cfa68b","status":"affected"},{"type":"git","introduced":"c88d4c7b049e87998ac0a9f455aa545cc895ef92","fixed":"7eade846e013cbe8d2dc4a484463aa19e6515c7f","status":"affected"},{"type":"git","introduced":"c88d4c7b049e87998ac0a9f455aa545cc895ef92","fixed":"a6a941a1294ac5abe22053dc501d25aed96e48fe","status":"affected"},{"type":"git","introduced":"c88d4c7b049e87998ac0a9f455aa545cc895ef92","fixed":"ab09264660f9de5d05d1ef4e225aa447c63a8747","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.36","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.36","status":"unaffected"},{"type":"semver","introduced":"5.10.253","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.203","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.169","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.130","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.77","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.18","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.8","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.36.1","fixed":"5.10.253"},{"status":"affected","introduced":"5.11","fixed":"5.15.203"},{"status":"affected","introduced":"5.16","fixed":"6.1.169"},{"status":"affected","introduced":"6.2","fixed":"6.6.130"},{"status":"affected","introduced":"6.7","fixed":"6.12.77"},{"status":"affected","introduced":"6.13","fixed":"6.18.18"},{"status":"affected","introduced":"6.19","fixed":"6.19.8"},{"status":"affected","version":"2.6.36"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/ea854f032190cc9f26dc4a0e727090c89e55e342","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4fdc847b107321dec22bf8ecd6019b7af76d7886","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b36a04284d0208be94e5e401409caa00e2bf1be1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/33959a491e9fd557abfa5fce5ae4637d400915d3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/999bd704b0b641527a5ed46f0d969deff8cfa68b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7eade846e013cbe8d2dc4a484463aa19e6515c7f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a6a941a1294ac5abe22053dc501d25aed96e48fe","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ab09264660f9de5d05d1ef4e225aa447c63a8747","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23404","url":"https://www.cve.org/CVERecord?id=CVE-2026-23404","licence":"CVE Terms of Use","modified":"2026-05-11T22:06:15.286Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23404","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23404","licence":"Public domain","modified":"2026-06-17T10:21:30.953Z"}],"updatedAt":"2026-11-25T22:59:17.678Z","epss":{"score":0.00201,"percentile":0.10535,"date":"2026-12-01T12:00:22.000Z"}}