CVE-2024-40979
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-40979 affects the Linux kernel's ath12k WiFi driver, specifically related to QMI target memory handling during system resume. The vulnerability was discovered and disclosed on July 12, 2024. The issue affects systems using the ath12k wireless driver with WCN7850 hardware (Kernel Git).

Technical details

The vulnerability occurs when QMI target memory is not properly handled during system resume, specifically in cases where DMA remap is not supported. During resume, the firmware requests two large memory segments, but when allocation fails, the ath12k_qmi_free_target_mem_chunk() function attempts to free memory segments with incorrect sizes. This mismatch between allocated and freed memory sizes (524288 bytes vs 8454144 bytes) leads to a kernel crash (Kernel Git).

Impact

When exploited, this vulnerability results in a kernel crash, manifesting as a 'Bad page state' error in the kworker process. The issue specifically affects systems during the resume process from suspend state, potentially causing system instability and denial of service (Kernel Git).

Exploitability

The vulnerability is triggered during normal system operation, specifically during the resume process from suspend state. It requires no special privileges to trigger, as it occurs during standard power management operations (Kernel Git).

Mitigation and workarounds

The issue has been fixed by adding prev_size to the target_mem_chunk structure and caching real segment size in it. The fix ensures that prev_size instead of current size is passed to dma_free_coherent(), preventing the freeing of unexpected memory. Additionally, the patch implements m3 buffer reuse similar to the ath11k driver (Kernel Git).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux

Fixed

bullseye

linux

Fixed

sid

linux: 6.9.7-1

Fixed

trixie

linux: 6.9.7-1

Fixed

SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-89771HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux-azure-5.4
NoNoSep 11, 2026
CVE-2026-89763HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux-aws-5.4
NoYesSep 11, 2026
CVE-2026-89760HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux-azure-6.14
NoNoSep 11, 2026
CVE-2026-89759MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • kernel-debug-modules
NoYesSep 11, 2026
CVE-2026-89757LOW3.6
  • Linux Kernel logoLinux Kernel
  • linux-lowlatency
NoYesSep 11, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management