CVE-2024-26799 ASoC: qcom: Fix uninitialized pointer dmactl
An uninitialized pointer in the Qualcomm audio driver can lead to a null dereference and system crash if an invalid DAI ID is used.
- 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-26799?
CVE-2024-26799 is a high-severity vulnerability in Linux kernel, published on 4 Apr 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:
ASoC: qcom: Fix uninitialized pointer dmactl
In the case where __lpass_get_dmactl_handle is called and the driver id dai_id is invalid the pointer dmactl is not being assigned a value, and dmactl contains a garbage value since it has not been initialized and so the null check may not work. Fix this to initialize dmactl to NULL. One could argue that modern compilers will set this to zero, but it is useful to keep this initialized as per the same way in functions __lpass_platform_codec_intf_init and lpass_cdc_dma_daiops_hw_params.
Cleans up clang scan build warning: sound/soc/qcom/lpass-cdc-dma.c:275:7: warning: Branch condition evaluates to a garbage value [core.uninitialized.Branch]
Weakness: CWE-824
Which versions are affected by CVE-2024-26799?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-26799?
Apply the vendor's patch.
Is CVE-2024-26799 being exploited?
There is no known exploitation of CVE-2024-26799 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-26799, DEBIAN-CVE-2024-26799, GHSA-7g5r-fqfh-59j6, ROOT-OS-DEBIAN-12-CVE-2024-26799, UBUNTU-CVE-2024-26799.