Skip to main content
Meet us at Black Hat USA 2026— Las Vegas, August 1–6Book a Meeting
Mallory
High

Out-of-bounds read in Linux kernel AppArmor match_char() macro usage

IdentifiersCVE-2026-23406CWE-125· Out-of-bounds Read

CVE-2026-23406 is a Linux kernel AppArmor vulnerability caused by a side-effect bug in use of the match_char() macro during DFA traversal. The macro evaluates its character argument multiple times when traversing differential encoding chains. When the caller passes an expression with side effects such as *str++, the input pointer is incremented repeatedly inside the macro’s inner do-while loop rather than once per outer iteration. As a result, aa_dfa_match() may test different characters across iterations, skip input bytes, and advance the pointer beyond the end of the input buffer, leading to an out-of-bounds read. The issue was observed as a KASAN-reported slab-out-of-bounds read in aa_dfa_match() during AppArmor path permission checks triggered through file open processing. The upstream fix extracts the character value before invoking match_char(), ensuring single evaluation of the input character per outer loop.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can cause out-of-bounds memory reads in kernel space within AppArmor path matching logic. This can destabilize the kernel and may expose adjacent kernel memory contents, resulting in confidentiality impact and potentially broader integrity and availability consequences depending on reachable code paths and system configuration. Available scoring in the provided content characterizes the issue as a local vulnerability with low attack complexity, low privileges required, and no user interaction.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, reduce exposure by limiting local untrusted access to affected systems, since the issue is characterized as locally exploitable. Minimize the ability of low-privileged users or untrusted workloads to trigger AppArmor-mediated file operations on vulnerable kernels. Because the flaw is in kernel AppArmor path matching, there is no complete mitigation short of deploying a fixed kernel.

Remediation

Patch, then assume compromise.

Apply a Linux kernel update that includes the AppArmor fix for CVE-2026-23406. The remediation is to change the affected code so the character value is extracted before calling match_char(), preventing multiple evaluations of expressions such as *str++. Vendor-provided fixed kernel packages are available in SUSE advisories referenced in the content, and administrators should install the relevant patched kernel for their distribution and reboot into the updated kernel.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
LinuxApparmoroperating_system
LinuxLinux Kerneloperating_system

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

ACTIVITY FEED

Recent activity

4 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.

No news coverage yet. Advisories and community discussion only.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity1

Community discussion across Reddit, Mastodon, and other social sources.