# CVE-2026-23404: apparmor: replace recursive profile removal with iterative approach

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **Published:** 2026-04-01T08:36:35.032Z
- **Modified:** 2026-06-17T10:21:30.953Z

## Who should check

- Anyone running Linux \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< ea854f032190cc9f26dc4a0e727090c89e55e342; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< 4fdc847b107321dec22bf8ecd6019b7af76d7886; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< b36a04284d0208be94e5e401409caa00e2bf1be1; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< 33959a491e9fd557abfa5fce5ae4637d400915d3; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< 999bd704b0b641527a5ed46f0d969deff8cfa68b; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< 7eade846e013cbe8d2dc4a484463aa19e6515c7f; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< a6a941a1294ac5abe22053dc501d25aed96e48fe; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< ab09264660f9de5d05d1ef4e225aa447c63a8747
- Anyone running Linux 2.6.36

## 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.

## Affected and fixed versions

- Linux: \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< ea854f032190cc9f26dc4a0e727090c89e55e342; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< 4fdc847b107321dec22bf8ecd6019b7af76d7886; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< b36a04284d0208be94e5e401409caa00e2bf1be1; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< 33959a491e9fd557abfa5fce5ae4637d400915d3; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< 999bd704b0b641527a5ed46f0d969deff8cfa68b; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< 7eade846e013cbe8d2dc4a484463aa19e6515c7f; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< a6a941a1294ac5abe22053dc501d25aed96e48fe; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< ab09264660f9de5d05d1ef4e225aa447c63a8747 (cvelist)
- Linux: 2.6.36 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-23404. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23404.md
Affected: Linux >= c88d4c7b049e87998ac0a9f455aa545cc895ef92, < ea854f032190cc9f26dc4a0e727090c89e55e342; >= c88d4c7b049e87998ac0a9f455aa545cc895ef92, < 4fdc847b107321dec22bf8ecd6019b7af76d7886; >= c88d4c7b049e87998ac0a9f455aa545cc895ef92, < b36a04284d0208be94e5e401409caa00e2bf1be1; >= c88d4c7b049e87998ac0a9f…
Fixed in: Linux 4fdc847b107321dec22bf8ecd6019b7af76d7886, Linux 33959a491e9fd557abfa5fce5ae4637d400915d3, Linux 999bd704b0b641527a5ed46f0d969deff8cfa68b, Linux 7eade846e013cbe8d2dc4a484463aa19e6515c7f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-23404 being exploited?

There is no confirmed exploitation: CVE-2026-23404 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-23404?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-23404?

Linux \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< ea854f032190cc9f26dc4a0e727090c89e55e342; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< 4fdc847b107321dec22bf8ecd6019b7af76d7886; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< b36a04284d0208be94e5e401409caa00e2bf1be1; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< 33959a491e9fd557abfa5fce5ae4637d400915d3; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< 999bd704b0b641527a5ed46f0d969deff8cfa68b; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< 7eade846e013cbe8d2dc4a484463aa19e6515c7f; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< a6a941a1294ac5abe22053dc501d25aed96e48fe; \>= c88d4c7b049e87998ac0a9f455aa545cc895ef92, \< ab09264660f9de5d05d1ef4e225aa447c63a8747; Linux 2.6.36.

### Is there a fix for CVE-2026-23404?

Yes. Fixed in Linux 4fdc847b107321dec22bf8ecd6019b7af76d7886, Linux 33959a491e9fd557abfa5fce5ae4637d400915d3, Linux 999bd704b0b641527a5ed46f0d969deff8cfa68b, Linux 7eade846e013cbe8d2dc4a484463aa19e6515c7f. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-23404?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/ea854f032190cc9f26dc4a0e727090c89e55e342>
- patch: <https://git.kernel.org/stable/c/4fdc847b107321dec22bf8ecd6019b7af76d7886>
- patch: <https://git.kernel.org/stable/c/b36a04284d0208be94e5e401409caa00e2bf1be1>
- patch: <https://git.kernel.org/stable/c/33959a491e9fd557abfa5fce5ae4637d400915d3>
- patch: <https://git.kernel.org/stable/c/999bd704b0b641527a5ed46f0d969deff8cfa68b>
- patch: <https://git.kernel.org/stable/c/7eade846e013cbe8d2dc4a484463aa19e6515c7f>
- patch: <https://git.kernel.org/stable/c/a6a941a1294ac5abe22053dc501d25aed96e48fe>
- patch: <https://git.kernel.org/stable/c/ab09264660f9de5d05d1ef4e225aa447c63a8747>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-23404>

HTML: <https://flawdb.com/CVE-2026-23404> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-23404>
