# CVE-2026-23407: apparmor: fix missing bounds check on DEFAULT table in verify\_dfa()

> 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-125
- **Published:** 2026-04-01T08:36:37.197Z
- **Modified:** 2026-08-05T12:21:28.162Z

## Who should check

- Anyone running Linux \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< 555829fd91eaf0711e369b0a92aecb0f0aa3281f; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< a75e12ca90c9e70ba10fee1be2f63cdd63d91a7c; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< 22094c996968a7c5b59cd3fc9fcbdfdd46d02fec; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< 7c7cf05e0606f554c467e3a4dc49e2e578a755b4; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< 76b4d36c5122866452d34d8f79985e191f9c3831; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< 5a68e46dfe0c8c8ffc6f425ebc4cae6238566ecc; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< f39e126e56c6ec1930fae51ad6bca3dae2a4c3ed; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< d352873bbefa7eb39995239d0b44ccdf8aaa79a4
- Anyone running Linux 4.17

## Description

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

apparmor: fix missing bounds check on DEFAULT table in verify\_dfa()

The verify\_dfa() function only checks DEFAULT\_TABLE bounds when the state
is not differentially encoded.

When the verification loop traverses the differential encoding chain,
it reads k = DEFAULT\_TABLE\[j\] and uses k as an array index without
validation. A malformed DFA with DEFAULT\_TABLE\[j\] \>= state\_count,
therefore, causes both out-of-bounds reads and writes.

\[   57.179855\] ==================================================================
\[   57.180549\] BUG: KASAN: slab-out-of-bounds in verify\_dfa+0x59a/0x660
\[   57.180904\] Read of size 4 at addr ffff888100eadec4 by task su/993

\[   57.181554\] CPU: 1 UID: 0 PID: 993 Comm: su Not tainted 6.19.0-rc7-next-20260127 \#1 PREEMPT(lazy)
\[   57.181558\] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
\[   57.181563\] Call Trace:
\[   57.181572\]  \<TASK\>
\[   57.181577\]  dump\_stack\_lvl+0x5e/0x80
\[   57.181596\]  print\_report+0xc8/0x270
\[   57.181605\]  ? verify\_dfa+0x59a/0x660
\[   57.181608\]  kasan\_report+0x118/0x150
\[   57.181620\]  ? verify\_dfa+0x59a/0x660
\[   57.181623\]  verify\_dfa+0x59a/0x660
\[   57.181627\]  aa\_dfa\_unpack+0x1610/0x1740
\[   57.181629\]  ? \_\_kmalloc\_cache\_noprof+0x1d0/0x470
\[   57.181640\]  unpack\_pdb+0x86d/0x46b0
\[   57.181647\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[   57.181653\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[   57.181656\]  ? aa\_unpack\_nameX+0x1a8/0x300
\[   57.181659\]  aa\_unpack+0x20b0/0x4c30
\[   57.181662\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[   57.181664\]  ? stack\_depot\_save\_flags+0x33/0x700
\[   57.181681\]  ? kasan\_save\_track+0x4f/0x80
\[   57.181683\]  ? kasan\_save\_track+0x3e/0x80
\[   57.181686\]  ? \_\_kasan\_kmalloc+0x93/0xb0
\[   57.181688\]  ? \_\_kvmalloc\_node\_noprof+0x44a/0x780
\[   57.181693\]  ? aa\_simple\_write\_to\_buffer+0x54/0x130
\[   57.181697\]  ? policy\_update+0x154/0x330
\[   57.181704\]  aa\_replace\_profiles+0x15a/0x1dd0
\[   57.181707\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[   57.181710\]  ? \_\_kvmalloc\_node\_noprof+0x44a/0x780
\[   57.181712\]  ? aa\_loaddata\_alloc+0x77/0x140
\[   57.181715\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[   57.181717\]  ? \_copy\_from\_user+0x2a/0x70
\[   57.181730\]  policy\_update+0x17a/0x330
\[   57.181733\]  profile\_replace+0x153/0x1a0
\[   57.181735\]  ? rw\_verify\_area+0x93/0x2d0
\[   57.181740\]  vfs\_write+0x235/0xab0
\[   57.181745\]  ksys\_write+0xb0/0x170
\[   57.181748\]  do\_syscall\_64+0x8e/0x660
\[   57.181762\]  entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
\[   57.181765\] RIP: 0033:0x7f6192792eb2

Remove the MATCH\_FLAG\_DIFF\_ENCODE condition to validate all DEFAULT\_TABLE
entries unconditionally.

## Affected and fixed versions

- Linux: \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< 555829fd91eaf0711e369b0a92aecb0f0aa3281f; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< a75e12ca90c9e70ba10fee1be2f63cdd63d91a7c; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< 22094c996968a7c5b59cd3fc9fcbdfdd46d02fec; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< 7c7cf05e0606f554c467e3a4dc49e2e578a755b4; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< 76b4d36c5122866452d34d8f79985e191f9c3831; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< 5a68e46dfe0c8c8ffc6f425ebc4cae6238566ecc; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< f39e126e56c6ec1930fae51ad6bca3dae2a4c3ed; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< d352873bbefa7eb39995239d0b44ccdf8aaa79a4 (cvelist)
- Linux: 4.17 (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-23407. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23407.md
Affected: Linux >= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, < 555829fd91eaf0711e369b0a92aecb0f0aa3281f; >= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, < a75e12ca90c9e70ba10fee1be2f63cdd63d91a7c; >= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, < 22094c996968a7c5b59cd3fc9fcbdfdd46d02fec; >= 031dcc8f4e84fea37dc6f78…
Fixed in: Linux 555829fd91eaf0711e369b0a92aecb0f0aa3281f, Linux 22094c996968a7c5b59cd3fc9fcbdfdd46d02fec, Linux 7c7cf05e0606f554c467e3a4dc49e2e578a755b4, Linux 76b4d36c5122866452d34d8f79985e191f9c3831, Linux 5a68e46dfe0c8c8ffc6f425ebc4cae6238566ecc

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

There is no confirmed exploitation: CVE-2026-23407 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-23407?

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

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

Linux \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< 555829fd91eaf0711e369b0a92aecb0f0aa3281f; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< a75e12ca90c9e70ba10fee1be2f63cdd63d91a7c; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< 22094c996968a7c5b59cd3fc9fcbdfdd46d02fec; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< 7c7cf05e0606f554c467e3a4dc49e2e578a755b4; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< 76b4d36c5122866452d34d8f79985e191f9c3831; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< 5a68e46dfe0c8c8ffc6f425ebc4cae6238566ecc; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< f39e126e56c6ec1930fae51ad6bca3dae2a4c3ed; \>= 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3, \< d352873bbefa7eb39995239d0b44ccdf8aaa79a4; Linux 4.17.

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

Yes. Fixed in Linux 555829fd91eaf0711e369b0a92aecb0f0aa3281f, Linux 22094c996968a7c5b59cd3fc9fcbdfdd46d02fec, Linux 7c7cf05e0606f554c467e3a4dc49e2e578a755b4, Linux 76b4d36c5122866452d34d8f79985e191f9c3831, Linux 5a68e46dfe0c8c8ffc6f425ebc4cae6238566ecc. No fix listed yet: follow the vendor advisory.

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

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/555829fd91eaf0711e369b0a92aecb0f0aa3281f>
- patch: <https://git.kernel.org/stable/c/a75e12ca90c9e70ba10fee1be2f63cdd63d91a7c>
- patch: <https://git.kernel.org/stable/c/22094c996968a7c5b59cd3fc9fcbdfdd46d02fec>
- patch: <https://git.kernel.org/stable/c/7c7cf05e0606f554c467e3a4dc49e2e578a755b4>
- patch: <https://git.kernel.org/stable/c/76b4d36c5122866452d34d8f79985e191f9c3831>
- patch: <https://git.kernel.org/stable/c/5a68e46dfe0c8c8ffc6f425ebc4cae6238566ecc>
- patch: <https://git.kernel.org/stable/c/f39e126e56c6ec1930fae51ad6bca3dae2a4c3ed>
- patch: <https://git.kernel.org/stable/c/d352873bbefa7eb39995239d0b44ccdf8aaa79a4>

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

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