CVE-2026-23404

apparmor: replace recursive profile removal with iterative approach

State
Published
Severity
Not scored
Published
Apr 1, 2026
Updated
May 11, 2026
Reserved
Jan 13, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • c88d4c7b049e87998ac0a9f455aa545cc895ef92 to before ea854f032190cc9f26dc4a0e727090c89e55e342Affected
  • c88d4c7b049e87998ac0a9f455aa545cc895ef92 to before 4fdc847b107321dec22bf8ecd6019b7af76d7886Affected
  • c88d4c7b049e87998ac0a9f455aa545cc895ef92 to before b36a04284d0208be94e5e401409caa00e2bf1be1Affected
  • c88d4c7b049e87998ac0a9f455aa545cc895ef92 to before 33959a491e9fd557abfa5fce5ae4637d400915d3Affected
  • c88d4c7b049e87998ac0a9f455aa545cc895ef92 to before 999bd704b0b641527a5ed46f0d969deff8cfa68bAffected
  • c88d4c7b049e87998ac0a9f455aa545cc895ef92 to before 7eade846e013cbe8d2dc4a484463aa19e6515c7fAffected
  • c88d4c7b049e87998ac0a9f455aa545cc895ef92 to before a6a941a1294ac5abe22053dc501d25aed96e48feAffected
  • c88d4c7b049e87998ac0a9f455aa545cc895ef92 to before ab09264660f9de5d05d1ef4e225aa447c63a8747Affected
LinuxLinux
  • 2.6.36Affected
  • before 2.6.36Not affected
  • 5.10.253 through 5.10.*Not affected
  • 5.15.203 through 5.15.*Not affected
  • 6.1.169 through 6.1.*Not affected
  • 6.6.130 through 6.6.*Not affected
  • 6.12.77 through 6.12.*Not affected
  • 6.18.18 through 6.18.*Not affected
  • 6.19.8 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.