In the Linux kernel, the following vulnerability has been resolved: crypto: amlogic - avoid double cleanup in meson_crypto_probe() When me
위협 신호 · CVSS · EPSS · KEV
이론적 심각도 점수
예측 데이터 없음
실측 악용 기록 없음
계획된 패치 주기 내 조치(60일 이내)
CVSS 벡터 · 메트릭
CVSS 벡터 정보 없음
상세 설명
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.
1================================================================== 2BUG: KASAN: slab-use-after-free in kthread_destroy_worker+0xb2/0xd0 3Read of size 8 at addr ff1100010c057a68 by task insmod/265 4 5CPU: 1 UID: 0 PID: 265 Comm: insmod Tainted: G O 7.1.0-rc2-00376-g810af9adc907-dirty #10 PREEMPT(lazy) 6Tainted: [O]=OOT_MODULE 7Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.15.0-1 04/01/2014 8Call Trace: 9 <TASK>10 dump_stack_lvl+0x68/0xa011 print_report+0xcb/0x5e012 ? __virt_addr_valid+0x21d/0x3f013 ? kthread_destroy_worker+0xb2/0xd014 ? kthread_destroy_worker+0xb2/0xd015 kasan_report+0xca/0x10016 ? kthread_destroy_worker+0xb2/0xd017 kthread_destroy_worker+0xb2/0xd018 meson_crypto_probe+0x4d0/0xc10 [amlogic_gxl_crypto]19 platform_probe+0x99/0x14020 really_probe+0x1c6/0x6a021 ? __pfx___device_attach_driver+0x10/0x1022 __driver_probe_device+0x248/0x31023 ? acpi_driver_match_device+0xb0/0x10024 driver_probe_device+0x48/0x21025 ? __pfx___device_attach_driver+0x10/0x1026 __device_attach_driver+0x160/0x32027 bus_for_each_drv+0x104/0x19028 ? __pfx_bus_for_each_drv+0x10/0x1029 ? _raw_spin_unlock_irqrestore+0x2c/0x5030 __device_attach+0x19d/0x3b031 ? __pfx___device_attach+0x10/0x1032 ? do_raw_spin_unlock+0x53/0x22033 device_initial_probe+0x78/0xa034 bus_probe_device+0x5b/0x13035 device_add+0xcfd/0x143036 ? __pfx_device_add+0x10/0x1037 ? insert_resource+0x34/0x5038 ? lock_release+0xc9/0x29039 platform_device_add+0x24e/0x59040 ? __pfx_meson_crypto_probe_repro_init+0x10/0x10 [meson_crypto_probe_repro]41 meson_crypto_probe_repro_init+0x330/0xff0 [meson_crypto_probe_repro]42 do_one_initcall+0xc0/0x45043 ? __pfx_do_one_initcall+0x10/0x1044 ? _raw_spin_unlock_irqrestore+0x2c/0x5045 ? __create_object+0x59/0x8046 ? kasan_unpoison+0x27/0x6047 do_init_module+0x27b/0x7d048 ? __pfx_do_init_module+0x10/0x1049 ? kasan_quarantine_put+0x84/0x1d050 ? kfree+0x32c/0x51051 ? load_module+0x561e/0x5ff052 load_module+0x54fe/0x5ff053 ? __pfx_load_module+0x10/0x1054 ? security_file_permission+0x20/0x4055 ? kernel_read_file+0x23d/0x6e056 ? mmap_region+0x235/0x4a057 ? __pfx_kernel_read_file+0x10/0x1058 ? __file_has_perm+0x2c0/0x3e059 init_module_from_file+0x158/0x18060 ? __pfx_init_module_from_file+0x10/0x1061 ? __lock_acquire+0x45a/0x1ba062 ? idempotent_init_module+0x315/0x61063 ? lock_release+0xc9/0x29064 ? lock---truncated---
AI 심층 분석
공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.
참고 자료 8
링크 내용 불러오는 중…