crypto: amlogic - avoid double cleanup in meson_crypto_probe()
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. ===========================================================
CVE-2026-64599
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-64599
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "48fe583fe54177bfb80f348e2a5cc34c3f710095",
"lessThan": "c2c48aa7a6be36d4c93da75d14d4b4f2f4168c81",
"versionType": "git"
},
{
"status": "affected",
"version": "48fe583fe54177bfb80f348e2a5cc34c3f710095",
"lessThan": "c80360b4e85099fc3835378a96a59c0a2480fb07",
"versionType": "git"
},
{
"status": "affected",
"version": "48fe583fe54177bfb80f348e2a5cc34c3f710095",
"lessThan": "5b452019a4127f63c1f2147237fc287d1581f606",
"versionType": "git"
},
{
"status": "affected",
"version": "48fe583fe54177bfb80f348e2a5cc34c3f710095",
"lessThan": "f30e2b879bda14bc3e1524fba6f8ab9ec119da90",
"versionType": "git"
},
{
"status": "affected",
"version": "48fe583fe54177bfb80f348e2a5cc34c3f710095",
"lessThan": "6effdbaca3cd8354540bdf42c7f5fb84412afeb7",
"versionType": "git"
},
{
"status": "affected",
"version": "48fe583fe54177bfb80f348e2a5cc34c3f710095",
"lessThan": "84a00be9b736aa5dce902a290f62cbbbdcfab9ed",
"versionType": "git"
},
{
"status": "affected",
"version": "48fe583fe54177bfb80f348e2a5cc34c3f710095",
"lessThan": "6dda8406d8a3da2519c8b388d443d7357839cb63",
"versionType": "git"
},
{
"status": "affected",
"version": "48fe583fe54177bfb80f348e2a5cc34c3f710095",
"lessThan": "6d827ade51a24e18d81afb9f32756d339520a14c",
"versionType": "git"
}
],
"programFiles": [
"drivers/crypto/amlogic/amlogic-gxl-core.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "5.5"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "5.5",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.10.261",
"versionType": "semver",
"lessThanOrEqual": "5.10.*"
},
{
"status": "unaffected",
"version": "5.15.212",
"versionType": "semver",
"lessThanOrEqual": "5.15.*"
},
{
"status": "unaffected",
"version": "6.1.178",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.145",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.96",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.39",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.1.4",
"versionType": "semver",
"lessThanOrEqual": "7.1.*"
},
{
"status": "unaffected",
"version": "7.2",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/crypto/amlogic/amlogic-gxl-core.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-64599
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #41105 · Revision 1
- Added to Heist Feed
- Publisher date