CVE-2026-64599
Gravedad:
Pendiente de análisis
Tipo:
No Disponible / Otro tipo
Fecha de publicación:
06/08/2026
Última modificación:
06/08/2026
Descripción
*** Pendiente de traducción *** In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
crypto: amlogic - avoid double cleanup in meson_crypto_probe()<br />
<br />
When meson_allocate_chanlist() fails after a partial allocation, it already<br />
unwinds the allocated chanlist state through its local error path.<br />
meson_crypto_probe() then jump to error_flow and calls<br />
meson_free_chanlist() again, causing the same per-flow resources to be torn<br />
down twice. In the reproduced failure path, the second teardown<br />
re-entered crypto_engine_exit() on an already destroyed worker and KASAN<br />
reported a slab-use-after-free in kthread_destroy_worker().<br />
<br />
Prevent double-free by handling partial allocation failures locally within<br />
meson_allocate_chanlist() and skipping the outer cleanup path.<br />
<br />
The bug was first flagged by an experimental analysis tool we are<br />
developing for kernel memory-management bugs while analyzing<br />
v6.13-rc1. The tool is still under development and is not yet publicly<br />
available.<br />
<br />
The bug was reproduced in a QEMU x86_64 guest booted with KASAN on v7.1,<br />
using the reproducer under tools/testing/meson_crypto_probe. The reproducer<br />
forces the second dma_alloc_attrs() call in the gxl-crypto probe path to<br />
return NULL, making meson_allocate_chanlist() fail after partial<br />
initialization. On the unpatched kernel this reliably triggered a<br />
slab-use-after-free. With this fix applied, the same reproducer no longer<br />
emits any KASAN report and the probe fails cleanly with -ENOMEM.<br />
<br />
==================================================================<br />
BUG: KASAN: slab-use-after-free in kthread_destroy_worker+0xb2/0xd0<br />
Read of size 8 at addr ff1100010c057a68 by task insmod/265<br />
<br />
CPU: 1 UID: 0 PID: 265 Comm: insmod Tainted: G O 7.1.0-rc2-00376-g810af9adc907-dirty #10 PREEMPT(lazy)<br />
Tainted: [O]=OOT_MODULE<br />
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.15.0-1 04/01/2014<br />
Call Trace:<br />
<br />
dump_stack_lvl+0x68/0xa0<br />
print_report+0xcb/0x5e0<br />
? __virt_addr_valid+0x21d/0x3f0<br />
? kthread_destroy_worker+0xb2/0xd0<br />
? kthread_destroy_worker+0xb2/0xd0<br />
kasan_report+0xca/0x100<br />
? kthread_destroy_worker+0xb2/0xd0<br />
kthread_destroy_worker+0xb2/0xd0<br />
meson_crypto_probe+0x4d0/0xc10 [amlogic_gxl_crypto]<br />
platform_probe+0x99/0x140<br />
really_probe+0x1c6/0x6a0<br />
? __pfx___device_attach_driver+0x10/0x10<br />
__driver_probe_device+0x248/0x310<br />
? acpi_driver_match_device+0xb0/0x100<br />
driver_probe_device+0x48/0x210<br />
? __pfx___device_attach_driver+0x10/0x10<br />
__device_attach_driver+0x160/0x320<br />
bus_for_each_drv+0x104/0x190<br />
? __pfx_bus_for_each_drv+0x10/0x10<br />
? _raw_spin_unlock_irqrestore+0x2c/0x50<br />
__device_attach+0x19d/0x3b0<br />
? __pfx___device_attach+0x10/0x10<br />
? do_raw_spin_unlock+0x53/0x220<br />
device_initial_probe+0x78/0xa0<br />
bus_probe_device+0x5b/0x130<br />
device_add+0xcfd/0x1430<br />
? __pfx_device_add+0x10/0x10<br />
? insert_resource+0x34/0x50<br />
? lock_release+0xc9/0x290<br />
platform_device_add+0x24e/0x590<br />
? __pfx_meson_crypto_probe_repro_init+0x10/0x10 [meson_crypto_probe_repro]<br />
meson_crypto_probe_repro_init+0x330/0xff0 [meson_crypto_probe_repro]<br />
do_one_initcall+0xc0/0x450<br />
? __pfx_do_one_initcall+0x10/0x10<br />
? _raw_spin_unlock_irqrestore+0x2c/0x50<br />
? __create_object+0x59/0x80<br />
? kasan_unpoison+0x27/0x60<br />
do_init_module+0x27b/0x7d0<br />
? __pfx_do_init_module+0x10/0x10<br />
? kasan_quarantine_put+0x84/0x1d0<br />
? kfree+0x32c/0x510<br />
? load_module+0x561e/0x5ff0<br />
load_module+0x54fe/0x5ff0<br />
? __pfx_load_module+0x10/0x10<br />
? security_file_permission+0x20/0x40<br />
? kernel_read_file+0x23d/0x6e0<br />
? mmap_region+0x235/0x4a0<br />
? __pfx_kernel_read_file+0x10/0x10<br />
? __file_has_perm+0x2c0/0x3e0<br />
init_module_from_file+0x158/0x180<br />
? __pfx_init_module_from_file+0x10/0x10<br />
? __lock_acquire+0x45a/0x1ba0<br />
? idempotent_init_module+0x315/0x610<br />
? lock_release+0xc9/0x290<br />
? lock<br />
---truncated---
Impacto
Referencias a soluciones, herramientas e información
- https://git.kernel.org/stable/c/5b452019a4127f63c1f2147237fc287d1581f606
- https://git.kernel.org/stable/c/6d827ade51a24e18d81afb9f32756d339520a14c
- https://git.kernel.org/stable/c/6dda8406d8a3da2519c8b388d443d7357839cb63
- https://git.kernel.org/stable/c/6effdbaca3cd8354540bdf42c7f5fb84412afeb7
- https://git.kernel.org/stable/c/84a00be9b736aa5dce902a290f62cbbbdcfab9ed
- https://git.kernel.org/stable/c/c2c48aa7a6be36d4c93da75d14d4b4f2f4168c81
- https://git.kernel.org/stable/c/c80360b4e85099fc3835378a96a59c0a2480fb07
- https://git.kernel.org/stable/c/f30e2b879bda14bc3e1524fba6f8ab9ec119da90



