{"id":"CVE-2026-23404","summary":"apparmor: replace recursive profile removal with iterative approach","details":"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\u003c1024; i++)); do\n      echo -e \"profile $pf { \\n }\" | apparmor_parser -K -a;\n      pf=\"$pf//x\";\n  done\n  $ echo -n a \u003e /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.","modified":"2026-04-02T03:30:31.612566Z","published":"2026-04-01T08:36:35.032Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23404.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/33959a491e9fd557abfa5fce5ae4637d400915d3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7eade846e013cbe8d2dc4a484463aa19e6515c7f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/999bd704b0b641527a5ed46f0d969deff8cfa68b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a6a941a1294ac5abe22053dc501d25aed96e48fe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ab09264660f9de5d05d1ef4e225aa447c63a8747"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23404.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23404"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c88d4c7b049e87998ac0a9f455aa545cc895ef92"},{"fixed":"33959a491e9fd557abfa5fce5ae4637d400915d3"},{"fixed":"999bd704b0b641527a5ed46f0d969deff8cfa68b"},{"fixed":"7eade846e013cbe8d2dc4a484463aa19e6515c7f"},{"fixed":"a6a941a1294ac5abe22053dc501d25aed96e48fe"},{"fixed":"ab09264660f9de5d05d1ef4e225aa447c63a8747"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-23404.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.36"},{"fixed":"6.6.130"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.77"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.18"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-23404.json"}}],"schema_version":"1.7.5"}