CVE-2026-46254
AppArmor Unaligned DFA Table Access Handling
Publication date: 2026-06-03
Last updated on: 2026-06-03
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| canonical | linux_kernel | 6.18.0-rc6+ |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in the Linux kernel's AppArmor security module. It occurs because the deterministic finite automaton (dfa) tables used by AppArmor may not always be aligned on 8-byte boundaries, which is required on some architectures. Unaligned memory accesses can cause warnings or errors in the kernel, potentially leading to instability or crashes. The issue arises when AppArmor tries to handle these unaligned dfa tables, which can originate from either kernel space or userspace.
The vulnerability is addressed by modifying the code to use helper functions that safely handle unaligned memory accesses.
How can this vulnerability impact me? :
This vulnerability can lead to kernel warnings and potentially cause instability or crashes in systems using AppArmor on affected Linux kernel versions. Unaligned memory accesses may trigger CPU exceptions or unexpected behavior, which could disrupt normal system operations.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by monitoring the system kernel logs for specific warning messages related to AppArmor and unaligned dfa tables.
- Check the kernel log for warnings similar to: "WARNING: CPU: ... at security/apparmor/match.c:316 aa_dfa_unpack".
- Look for messages indicating unaligned access such as: "dfa blob stream ... not aligned." or "Kernel unaligned access at TPC... aa_dfa_unpack".
- Use the command: dmesg | grep -i apparmor to filter relevant kernel messages.
- Alternatively, use journalctl -k | grep -i apparmor to check systemd journal logs for these warnings.
What immediate steps should I take to mitigate this vulnerability?
The vulnerability is resolved by modifying the AppArmor code to handle unaligned dfa tables properly using get_unaligned_xx() helper functions.
Immediate mitigation steps include updating the Linux kernel to a version that contains this fix.
Until the kernel is updated, monitor for the warning messages and consider limiting the use of AppArmor profiles that trigger this issue.