CVE-2024-26799
JSON

7.0high

ASoC: qcom: Fix uninitialized pointer dmactl

Severity
7.0high CVSS:3.1 by Linux
Exploit likelihood
0.34% (higher than 20% of CVEs)
Published
Last changed
Assigned by
Linux

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]

Affected

Product or packageVersionsReported by
Linux Linuxfrom b81af585ea54ee9f749391e594ee9cbd44061eae before 3301f5513e668d47514f32b0fea39e85b1152010, from b81af585ea54ee9f749391e594ee9cbd44061eae before 99adc8b4d2f38bf0d06483ec845bc48f60c3f8cf, from b81af585ea54ee9f749391e594ee9cbd44061eae before d5a7726e6ea62d447b79ab5baeb537ea6bdb225b, from b81af585ea54ee9f749391e594ee9cbd44061eae before 1382d8b55129875b2e07c4d2a7ebc790183769ee, 5.18
Not affected: before 5.18, from 6.1.191 up to 6.1.*, from 6.6.21 up to 6.6.*, from 6.7.9 up to 6.7.*, from 6.8 up to *
CVE List
linux linux_kernelfrom 5.18 before 6.6.21, from 6.7 before 6.7.9, 6.8NVD

All scores

Linux7.0high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA-ADP6.2medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-824

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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]

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ASoC: qcom: corrige el puntero no inicializado dmactl. En el caso de que se llame a __lpass_get_dmactl_handle y el ID del controlador dai_id no sea válido, al puntero dmactl no se le asigna un valor y dmactl contiene un valor basura. ya que no se ha inicializado y, por lo tanto, es posible que la verificación nula no funcione. Solucione esto para inicializar dmactl a NULL. Se podría argumentar que los compiladores modernos establecerán esto en cero, pero es útil mantenerlo inicializado de la misma manera en las funciones __lpass_platform_codec_intf_init y lpass_cdc_dma_daiops_hw_params. Limpia la advertencia de compilación de escaneo clang: sound/soc/qcom/lpass-cdc-dma.c:275:7: advertencia: la condición de rama se evalúa como un valor basura [core.uninitialized.Branch]

References

Sources

SourceRecordLicence
CVE ListCVE-2024-26799 changed 2026-10-30CVE Terms of Use
NVDCVE-2024-26799 changed 2026-10-30Public domain