Bug 2300446 (CVE-2024-41069)

Summary: CVE-2024-41069 kernel: ASoC: topology: Fix references to freed memory
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dfreiber, drow, jburrell, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 6.1.101, kernel 6.6.42, kernel 6.9.11, kernel 6.10 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel in the function soc_tplg_dapm_graph_elems_load() which could lead to a use-after-free vulnerability as there are direct references in memory to topology file elements which could have been freed after parsing. This vulnerability could lead to memory corruption or crashes.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2301629    
Bug Blocks:    

Description OSIDB Bzimport 2024-07-29 15:44:48 UTC
In the Linux kernel, the following vulnerability has been resolved:

ASoC: topology: Fix references to freed memory

Most users after parsing a topology file, release memory used by it, so
having pointer references directly into topology file contents is wrong.
Use devm_kmemdup(), to allocate memory as needed.

Comment 1 Mauro Matteo Cascella 2024-07-30 13:08:35 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024072908-CVE-2024-41069-31e3@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-30 13:08:57 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2301629]