# CVE-2026-23408: apparmor: Fix double free of ns\_name in aa\_replace\_profiles()

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2026-04-01T08:36:37.873Z
- **Modified:** 2026-08-05T12:21:29.316Z

## Who should check

- Anyone running Linux \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< c6347a2116ecccb8fd9ee4ebc75ae41d1d7ef689; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< c053ae381ce227577567d1ef10090ce7506d7a28; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< 35f4caec1352054b9a61cfdf2bf1898073637aa0; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< 55ef2af7490aaf72f8ffe11ec44c6bcb7eb2162a; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< 86feeccd6b93ed94bd6655f30de80f163f8d5a45; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< 7998ab3010d2317643f91828f1853d954ef31387; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< 18b5233e860c294a847ee07869d93c0b8673a54b; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< 5df0c44e8f5f619d3beb871207aded7c78414502
- Anyone running Linux 5.5

## Description

In the Linux kernel, the following vulnerability has been resolved:

apparmor: Fix double free of ns\_name in aa\_replace\_profiles()

if ns\_name is NULL after
1071         error = aa\_unpack(udata, &lh, &ns\_name);

and if ent-\>ns\_name contains an ns\_name in
1089                 } else if (ent-\>ns\_name) {

then ns\_name is assigned the ent-\>ns\_name
1095                         ns\_name = ent-\>ns\_name;

however ent-\>ns\_name is freed at
1262                 aa\_load\_ent\_free(ent);

and then again when freeing ns\_name at
1270         kfree(ns\_name);

Fix this by NULLing out ent-\>ns\_name after it is transferred to ns\_name

")

## Affected and fixed versions

- Linux: \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< c6347a2116ecccb8fd9ee4ebc75ae41d1d7ef689; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< c053ae381ce227577567d1ef10090ce7506d7a28; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< 35f4caec1352054b9a61cfdf2bf1898073637aa0; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< 55ef2af7490aaf72f8ffe11ec44c6bcb7eb2162a; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< 86feeccd6b93ed94bd6655f30de80f163f8d5a45; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< 7998ab3010d2317643f91828f1853d954ef31387; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< 18b5233e860c294a847ee07869d93c0b8673a54b; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< 5df0c44e8f5f619d3beb871207aded7c78414502 (cvelist)
- Linux: 5.5 (cvelist)

## Mitigation

- Upgrade Linux to 5df0c44e8f5f619d3beb871207aded7c78414502 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-23408.md
Affected: Linux >= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, < c6347a2116ecccb8fd9ee4ebc75ae41d1d7ef689; >= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, < c053ae381ce227577567d1ef10090ce7506d7a28; >= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, < 35f4caec1352054b9a61cfdf2bf1898073637aa0; >= 145a0ef21c8e944957f58e2…
Fixed in: Linux 35f4caec1352054b9a61cfdf2bf1898073637aa0, Linux 55ef2af7490aaf72f8ffe11ec44c6bcb7eb2162a, Linux 86feeccd6b93ed94bd6655f30de80f163f8d5a45, Linux 7998ab3010d2317643f91828f1853d954ef31387, Linux 18b5233e860c294a847ee07869d93c0b8673a54b, Linux 5df0c44e8f5f619d3beb871207aded7c78414502

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-23408 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< c6347a2116ecccb8fd9ee4ebc75ae41d1d7ef689; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< c053ae381ce227577567d1ef10090ce7506d7a28; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< 35f4caec1352054b9a61cfdf2bf1898073637aa0; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< 55ef2af7490aaf72f8ffe11ec44c6bcb7eb2162a; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< 86feeccd6b93ed94bd6655f30de80f163f8d5a45; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< 7998ab3010d2317643f91828f1853d954ef31387; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< 18b5233e860c294a847ee07869d93c0b8673a54b; \>= 145a0ef21c8e944957f58e2c8ffcd8a10f46266a, \< 5df0c44e8f5f619d3beb871207aded7c78414502; Linux 5.5.

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

Yes. Fixed in Linux 35f4caec1352054b9a61cfdf2bf1898073637aa0, Linux 55ef2af7490aaf72f8ffe11ec44c6bcb7eb2162a, Linux 86feeccd6b93ed94bd6655f30de80f163f8d5a45, Linux 7998ab3010d2317643f91828f1853d954ef31387, Linux 18b5233e860c294a847ee07869d93c0b8673a54b, Linux 5df0c44e8f5f619d3beb871207aded7c78414502. Upgrade Linux to 5df0c44e8f5f619d3beb871207aded7c78414502 or later.

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

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/c6347a2116ecccb8fd9ee4ebc75ae41d1d7ef689>
- patch: <https://git.kernel.org/stable/c/c053ae381ce227577567d1ef10090ce7506d7a28>
- patch: <https://git.kernel.org/stable/c/35f4caec1352054b9a61cfdf2bf1898073637aa0>
- patch: <https://git.kernel.org/stable/c/55ef2af7490aaf72f8ffe11ec44c6bcb7eb2162a>
- patch: <https://git.kernel.org/stable/c/86feeccd6b93ed94bd6655f30de80f163f8d5a45>
- patch: <https://git.kernel.org/stable/c/7998ab3010d2317643f91828f1853d954ef31387>
- patch: <https://git.kernel.org/stable/c/18b5233e860c294a847ee07869d93c0b8673a54b>
- patch: <https://git.kernel.org/stable/c/5df0c44e8f5f619d3beb871207aded7c78414502>

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

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