Bug 1222415 (CVE-2024-26799) - VUL-0: CVE-2024-26799: kernel: ASoC: qcom: Fix uninitialized pointer dmactl
Summary: VUL-0: CVE-2024-26799: kernel: ASoC: qcom: Fix uninitialized pointer dmactl
Status: RESOLVED FIXED
Alias: CVE-2024-26799
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/400351/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-26799:5.5:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-08 06:32 UTC by SMASH SMASH
Modified: 2024-07-01 16:05 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-04-08 06:32:02 UTC
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]

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-26799
https://www.cve.org/CVERecord?id=CVE-2024-26799
https://git.kernel.org/stable/c/1382d8b55129875b2e07c4d2a7ebc790183769ee
https://git.kernel.org/stable/c/99adc8b4d2f38bf0d06483ec845bc48f60c3f8cf
https://git.kernel.org/stable/c/d5a7726e6ea62d447b79ab5baeb537ea6bdb225b
https://bugzilla.redhat.com/show_bug.cgi?id=2273432