# CVE-2023-52443: apparmor: avoid crash when parsed profile name is empty

> 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.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-02-22T16:13:31.154Z
- **Modified:** 2026-06-17T06:42:42.347Z

## Who should check

- Anyone running Linux \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 9286ee97aa4803d99185768735011d0d65827c9e; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 1d8e62b5569cc1466ceb8a7e4872cf10160a9dcf; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 5ff00408e5029d3550ee77f62dc15f1e15c47f87; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 0a12db736edbb4933e4274932aeea594b5876fa4; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 9d4fa5fe2b1d56662afd14915a73b4d0783ffa45; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 5c0392fdafb0a2321311900be83ffa572bef8203; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 77ab09b92f16c8439a948d1af489196953dc4a0e; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 55a8210c9e7d21ff2644809699765796d4bfb200
- Anyone running Linux 4.11

## Description

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

apparmor: avoid crash when parsed profile name is empty

When processing a packed profile in unpack\_profile() described like

 "profile :ns::samba-dcerpcd /usr/lib\*/samba/{,samba/}samba-dcerpcd {...}"

a string ":samba-dcerpcd" is unpacked as a fully-qualified name and then
passed to aa\_splitn\_fqname().

aa\_splitn\_fqname() treats ":samba-dcerpcd" as only containing a namespace.
Thus it returns NULL for tmpname, meanwhile tmpns is non-NULL. Later
aa\_alloc\_profile() crashes as the new profile name is NULL now.

general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 \[\#1\] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range \[0x0000000000000000-0x0000000000000007\]
CPU: 6 PID: 1657 Comm: apparmor\_parser Not tainted 6.7.0-rc2-dirty \#16
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.2-3-gd478f380-rebuilt.opensuse.org 04/01/2014
RIP: 0010:strlen+0x1e/0xa0
Call Trace:
 \<TASK\>
 ? strlen+0x1e/0xa0
 aa\_policy\_init+0x1bb/0x230
 aa\_alloc\_profile+0xb1/0x480
 unpack\_profile+0x3bc/0x4960
 aa\_unpack+0x309/0x15e0
 aa\_replace\_profiles+0x213/0x33c0
 policy\_update+0x261/0x370
 profile\_replace+0x20e/0x2a0
 vfs\_write+0x2af/0xe00
 ksys\_write+0x126/0x250
 do\_syscall\_64+0x46/0xf0
 entry\_SYSCALL\_64\_after\_hwframe+0x6e/0x76
 \</TASK\>
---\[ end trace 0000000000000000 \]---
RIP: 0010:strlen+0x1e/0xa0

It seems such behaviour of aa\_splitn\_fqname() is expected and checked in
other places where it is called (e.g. aa\_remove\_profiles). Well, there
is an explicit comment "a ns name without a following profile is allowed"
inside.

AFAICS, nothing can prevent unpacked "name" to be in form like
":samba-dcerpcd" - it is passed from userspace.

Deny the whole profile set replacement in such case and inform user with
EPROTO and an explaining message.

Found by Linux Verification Center (linuxtesting.org).

## Affected and fixed versions

- Linux: \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 9286ee97aa4803d99185768735011d0d65827c9e; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 1d8e62b5569cc1466ceb8a7e4872cf10160a9dcf; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 5ff00408e5029d3550ee77f62dc15f1e15c47f87; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 0a12db736edbb4933e4274932aeea594b5876fa4; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 9d4fa5fe2b1d56662afd14915a73b4d0783ffa45; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 5c0392fdafb0a2321311900be83ffa572bef8203; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 77ab09b92f16c8439a948d1af489196953dc4a0e; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 55a8210c9e7d21ff2644809699765796d4bfb200 (cvelist)
- Linux: 4.11 (cvelist)

## Mitigation

- Upgrade Linux to 55a8210c9e7d21ff2644809699765796d4bfb200 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-52443.md
Affected: Linux >= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, < 9286ee97aa4803d99185768735011d0d65827c9e; >= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, < 1d8e62b5569cc1466ceb8a7e4872cf10160a9dcf; >= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, < 5ff00408e5029d3550ee77f62dc15f1e15c47f87; >= 04dc715e24d0820bf8740e1…
Fixed in: Linux 9286ee97aa4803d99185768735011d0d65827c9e, Linux 1d8e62b5569cc1466ceb8a7e4872cf10160a9dcf, Linux 5ff00408e5029d3550ee77f62dc15f1e15c47f87, Linux 0a12db736edbb4933e4274932aeea594b5876fa4, Linux 9d4fa5fe2b1d56662afd14915a73b4d0783ffa45, Linux 5c0392fdafb0a2321311900be83ffa572bef8203, Linux 77ab0…

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-2023-52443 being exploited?

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

### How serious is CVE-2023-52443?

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

### Which versions are affected by CVE-2023-52443?

Linux \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 9286ee97aa4803d99185768735011d0d65827c9e; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 1d8e62b5569cc1466ceb8a7e4872cf10160a9dcf; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 5ff00408e5029d3550ee77f62dc15f1e15c47f87; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 0a12db736edbb4933e4274932aeea594b5876fa4; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 9d4fa5fe2b1d56662afd14915a73b4d0783ffa45; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 5c0392fdafb0a2321311900be83ffa572bef8203; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 77ab09b92f16c8439a948d1af489196953dc4a0e; \>= 04dc715e24d0820bf8740e1a1135ed61fe162bc8, \< 55a8210c9e7d21ff2644809699765796d4bfb200; Linux 4.11.

### Is there a fix for CVE-2023-52443?

Yes. Fixed in Linux 9286ee97aa4803d99185768735011d0d65827c9e, Linux 1d8e62b5569cc1466ceb8a7e4872cf10160a9dcf, Linux 5ff00408e5029d3550ee77f62dc15f1e15c47f87, Linux 0a12db736edbb4933e4274932aeea594b5876fa4, Linux 9d4fa5fe2b1d56662afd14915a73b4d0783ffa45, Linux 5c0392fdafb0a2321311900be83ffa572bef8203, Linux 77ab09b92f16c8439a948d1af489196953dc4a0e, Linux 55a8210c9e7d21ff2644809699765796d4bfb200. Upgrade Linux to 55a8210c9e7d21ff2644809699765796d4bfb200 or later.

### How do I check if I'm affected by CVE-2023-52443?

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/9286ee97aa4803d99185768735011d0d65827c9e>
- patch: <https://git.kernel.org/stable/c/1d8e62b5569cc1466ceb8a7e4872cf10160a9dcf>
- patch: <https://git.kernel.org/stable/c/5ff00408e5029d3550ee77f62dc15f1e15c47f87>
- patch: <https://git.kernel.org/stable/c/0a12db736edbb4933e4274932aeea594b5876fa4>
- patch: <https://git.kernel.org/stable/c/9d4fa5fe2b1d56662afd14915a73b4d0783ffa45>
- patch: <https://git.kernel.org/stable/c/5c0392fdafb0a2321311900be83ffa572bef8203>
- patch: <https://git.kernel.org/stable/c/77ab09b92f16c8439a948d1af489196953dc4a0e>
- patch: <https://git.kernel.org/stable/c/55a8210c9e7d21ff2644809699765796d4bfb200>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00016.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>

## 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-2023-52443>

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