PT-2024-29190 · Linux+5 · Linux Kernel+5

Published

2024-04-22

·

Updated

2026-05-26

·

CVE-2024-40979

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The vulnerability is related to the handling of QMI target memory during resume, resulting in a kernel crash when DMA remap is not supported. The issue occurs when the ath12k module is loaded and firmware sends a memory request to the host. If DMA remap is not supported, the allocation of large segment sizes fails, and the firmware retries with smaller sizes. However, during the freeing of allocated segments, a size mismatch occurs, causing the kernel to crash.
The ath12k qmi free target mem chunk() function is called to free all allocated segments, but the first segment is skipped due to its v.addr being cleared. This results in a memory leak. When freeing the second segment, a size of 8454144 is passed to dma free coherent(), but the real size of the segment is 524288, which is much smaller. As a result, the kernel attempts to free memory that is still in use, leading to a crash.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Memory Leak

Weakness Enumeration

Related Identifiers

ALSA-2025_12746
ALSA-2025_12752
ALSA-2025_12753
ALSA-2025_16880
ALT-PU-2025-12647
BDU:2025-08057
CVE-2024-40979
SUSE-SU-2024:2802-1
SUSE-SU-2024:2896-1
SUSE-SU-2024:2973-1
SUSE-SU-2025:20008-1
SUSE-SU-2025:20028-1
USN-6999-1
USN-6999-2
USN-7004-1
USN-7005-1
USN-7005-2
USN-7008-1
USN-7029-1

Affected Products

Alt Linux
Astra Linux
Linuxmint
Linux Kernel
Suse
Ubuntu