CVE-2024-49931 wifi: ath12k: fix array out-of-bound access in SoC stats

High 7.8 Published Updated

A local attacker can trigger an out-of-bounds array access in the ath12k WiFi driver, potentially causing a system crash or arbitrary code execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-49931?

CVE-2024-49931 is a high-severity memory corruption vulnerability in Linux kernel, published on 21 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

wifi: ath12k: fix array out-of-bound access in SoC stats

Currently, the ath12k_soc_dp_stats::hal_reo_error array is defined with a maximum size of DP_REO_DST_RING_MAX. However, the ath12k_dp_rx_process() function access ath12k_soc_dp_stats::hal_reo_error using the REO destination SRNG ring ID, which is incorrect. SRNG ring ID differ from normal ring ID, and this usage leads to out-of-bounds array access. To fix this issue, modify ath12k_dp_rx_process() to use the normal ring ID directly instead of the SRNG ring ID to avoid out-of-bounds array access.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1

Weakness: CWE-129

Which versions are affected by CVE-2024-49931?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-49931?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-49931 being exploited?

There is no known exploitation of CVE-2024-49931 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-49931, DEBIAN-CVE-2024-49931, GHSA-26q7-wp6g-349w, ROOT-OS-UBUNTU-2204-CVE-2024-49931, UBUNTU-CVE-2024-49931.

Is CVE-2024-49931 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free