# CVE-2026-64599: crypto: amlogic - avoid double cleanup in meson\_crypto\_probe()

> 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.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2026-08-06T07:13:53.328Z
- **Modified:** 2026-10-24T16:10:00.153Z

## Who should check

- Anyone running Linux \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< c2c48aa7a6be36d4c93da75d14d4b4f2f4168c81; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< c80360b4e85099fc3835378a96a59c0a2480fb07; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< 5b452019a4127f63c1f2147237fc287d1581f606; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< f30e2b879bda14bc3e1524fba6f8ab9ec119da90; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< 6effdbaca3cd8354540bdf42c7f5fb84412afeb7; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< 84a00be9b736aa5dce902a290f62cbbbdcfab9ed; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< 6dda8406d8a3da2519c8b388d443d7357839cb63; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< 6d827ade51a24e18d81afb9f32756d339520a14c
- Anyone running Linux 5.5

## Description

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

crypto: amlogic - avoid double cleanup in meson\_crypto\_probe()

When meson\_allocate\_chanlist() fails after a partial allocation, it already
unwinds the allocated chanlist state through its local error path.
meson\_crypto\_probe() then jump to error\_flow and calls
meson\_free\_chanlist() again, causing the same per-flow resources to be torn
down twice. In the reproduced failure path, the second teardown
re-entered crypto\_engine\_exit() on an already destroyed worker and KASAN
reported a slab-use-after-free in kthread\_destroy\_worker().

Prevent double-free by handling partial allocation failures locally within
meson\_allocate\_chanlist() and skipping the outer cleanup path.

The bug was first flagged by an experimental analysis tool we are
developing for kernel memory-management bugs while analyzing
v6.13-rc1. The tool is still under development and is not yet publicly
available.

The bug was reproduced in a QEMU x86\_64 guest booted with KASAN on v7.1,
using the reproducer under tools/testing/meson\_crypto\_probe. The reproducer
forces the second dma\_alloc\_attrs() call in the gxl-crypto probe path to
return NULL, making meson\_allocate\_chanlist() fail after partial
initialization. On the unpatched kernel this reliably triggered a
slab-use-after-free. With this fix applied, the same reproducer no longer
emits any KASAN report and the probe fails cleanly with -ENOMEM.

    ==================================================================
    BUG: KASAN: slab-use-after-free in kthread\_destroy\_worker+0xb2/0xd0
    Read of size 8 at addr ff1100010c057a68 by task insmod/265

    CPU: 1 UID: 0 PID: 265 Comm: insmod Tainted: G           O        7.1.0-rc2-00376-g810af9adc907-dirty \#10 PREEMPT(lazy)
    Tainted: \[O\]=OOT\_MODULE
    Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.15.0-1 04/01/2014
    Call Trace:
     \<TASK\>
     dump\_stack\_lvl+0x68/0xa0
     print\_report+0xcb/0x5e0
     ? \_\_virt\_addr\_valid+0x21d/0x3f0
     ? kthread\_destroy\_worker+0xb2/0xd0
     ? kthread\_destroy\_worker+0xb2/0xd0
     kasan\_report+0xca/0x100
     ? kthread\_destroy\_worker+0xb2/0xd0
     kthread\_destroy\_worker+0xb2/0xd0
     meson\_crypto\_probe+0x4d0/0xc10 \[amlogic\_gxl\_crypto\]
     platform\_probe+0x99/0x140
     really\_probe+0x1c6/0x6a0
     ? \_\_pfx\_\_\_device\_attach\_driver+0x10/0x10
     \_\_driver\_probe\_device+0x248/0x310
     ? acpi\_driver\_match\_device+0xb0/0x100
     driver\_probe\_device+0x48/0x210
     ? \_\_pfx\_\_\_device\_attach\_driver+0x10/0x10
     \_\_device\_attach\_driver+0x160/0x320
     bus\_for\_each\_drv+0x104/0x190
     ? \_\_pfx\_bus\_for\_each\_drv+0x10/0x10
     ? \_raw\_spin\_unlock\_irqrestore+0x2c/0x50
     \_\_device\_attach+0x19d/0x3b0
     ? \_\_pfx\_\_\_device\_attach+0x10/0x10
     ? do\_raw\_spin\_unlock+0x53/0x220
     device\_initial\_probe+0x78/0xa0
     bus\_probe\_device+0x5b/0x130
     device\_add+0xcfd/0x1430
     ? \_\_pfx\_device\_add+0x10/0x10
     ? insert\_resource+0x34/0x50
     ? lock\_release+0xc9/0x290
     platform\_device\_add+0x24e/0x590
     ? \_\_pfx\_meson\_crypto\_probe\_repro\_init+0x10/0x10 \[meson\_crypto\_probe\_repro\]
     meson\_crypto\_probe\_repro\_init+0x330/0xff0 \[meson\_crypto\_probe\_repro\]
     do\_one\_initcall+0xc0/0x450
     ? \_\_pfx\_do\_one\_initcall+0x10/0x10
     ? \_raw\_spin\_unlock\_irqrestore+0x2c/0x50
     ? \_\_create\_object+0x59/0x80
     ? kasan\_unpoison+0x27/0x60
     do\_init\_module+0x27b/0x7d0
     ? \_\_pfx\_do\_init\_module+0x10/0x10
     ? kasan\_quarantine\_put+0x84/0x1d0
     ? kfree+0x32c/0x510
     ? load\_module+0x561e/0x5ff0
     load\_module+0x54fe/0x5ff0
     ? \_\_pfx\_load\_module+0x10/0x10
     ? security\_file\_permission+0x20/0x40
     ? kernel\_read\_file+0x23d/0x6e0
     ? mmap\_region+0x235/0x4a0
     ? \_\_pfx\_kernel\_read\_file+0x10/0x10
     ? \_\_file\_has\_perm+0x2c0/0x3e0
     init\_module\_from\_file+0x158/0x180
     ? \_\_pfx\_init\_module\_from\_file+0x10/0x10
     ? \_\_lock\_acquire+0x45a/0x1ba0
     ? idempotent\_init\_module+0x315/0x610
     ? lock\_release+0xc9/0x290
     ? lock
---truncated---

## Affected and fixed versions

- Linux: \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< c2c48aa7a6be36d4c93da75d14d4b4f2f4168c81; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< c80360b4e85099fc3835378a96a59c0a2480fb07; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< 5b452019a4127f63c1f2147237fc287d1581f606; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< f30e2b879bda14bc3e1524fba6f8ab9ec119da90; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< 6effdbaca3cd8354540bdf42c7f5fb84412afeb7; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< 84a00be9b736aa5dce902a290f62cbbbdcfab9ed; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< 6dda8406d8a3da2519c8b388d443d7357839cb63; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< 6d827ade51a24e18d81afb9f32756d339520a14c (cvelist)
- Linux: 5.5 (cvelist)

## Mitigation

- Upgrade Linux to 6d827ade51a24e18d81afb9f32756d339520a14c 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-64599. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64599.md
Affected: Linux >= 48fe583fe54177bfb80f348e2a5cc34c3f710095, < c2c48aa7a6be36d4c93da75d14d4b4f2f4168c81; >= 48fe583fe54177bfb80f348e2a5cc34c3f710095, < c80360b4e85099fc3835378a96a59c0a2480fb07; >= 48fe583fe54177bfb80f348e2a5cc34c3f710095, < 5b452019a4127f63c1f2147237fc287d1581f606; >= 48fe583fe54177bfb80f348…
Fixed in: Linux 5b452019a4127f63c1f2147237fc287d1581f606, Linux 6effdbaca3cd8354540bdf42c7f5fb84412afeb7, Linux 84a00be9b736aa5dce902a290f62cbbbdcfab9ed, Linux 6dda8406d8a3da2519c8b388d443d7357839cb63, Linux 6d827ade51a24e18d81afb9f32756d339520a14c

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

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

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

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

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

Linux \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< c2c48aa7a6be36d4c93da75d14d4b4f2f4168c81; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< c80360b4e85099fc3835378a96a59c0a2480fb07; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< 5b452019a4127f63c1f2147237fc287d1581f606; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< f30e2b879bda14bc3e1524fba6f8ab9ec119da90; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< 6effdbaca3cd8354540bdf42c7f5fb84412afeb7; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< 84a00be9b736aa5dce902a290f62cbbbdcfab9ed; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< 6dda8406d8a3da2519c8b388d443d7357839cb63; \>= 48fe583fe54177bfb80f348e2a5cc34c3f710095, \< 6d827ade51a24e18d81afb9f32756d339520a14c; Linux 5.5.

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

Yes. Fixed in Linux 5b452019a4127f63c1f2147237fc287d1581f606, Linux 6effdbaca3cd8354540bdf42c7f5fb84412afeb7, Linux 84a00be9b736aa5dce902a290f62cbbbdcfab9ed, Linux 6dda8406d8a3da2519c8b388d443d7357839cb63, Linux 6d827ade51a24e18d81afb9f32756d339520a14c. Upgrade Linux to 6d827ade51a24e18d81afb9f32756d339520a14c or later.

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

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

- other: <https://git.kernel.org/stable/c/c2c48aa7a6be36d4c93da75d14d4b4f2f4168c81>
- other: <https://git.kernel.org/stable/c/c80360b4e85099fc3835378a96a59c0a2480fb07>
- other: <https://git.kernel.org/stable/c/5b452019a4127f63c1f2147237fc287d1581f606>
- other: <https://git.kernel.org/stable/c/f30e2b879bda14bc3e1524fba6f8ab9ec119da90>
- other: <https://git.kernel.org/stable/c/6effdbaca3cd8354540bdf42c7f5fb84412afeb7>
- other: <https://git.kernel.org/stable/c/84a00be9b736aa5dce902a290f62cbbbdcfab9ed>
- other: <https://git.kernel.org/stable/c/6dda8406d8a3da2519c8b388d443d7357839cb63>
- other: <https://git.kernel.org/stable/c/6d827ade51a24e18d81afb9f32756d339520a14c>

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

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