ASoC: SOF: topology: fix memory leak in snd_sof_load_topology
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6ed7787c43ecf4ae27a3e700cab53a1ed646c7f8, Kernel d46f9f23897261da53ffbeb89d48a13982ba7d28 and Kernel 7.1.5.
In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: topology: fix memory leak in snd_sof_load_topology When the topology filename contains "dummy" and tplg_cnt is 0, the function returns -EINVAL directly without freeing the tplg_files allocated by kcalloc() at line 2497. This leaks memory on every such topology load attempt. Fix this by setting ret = -EINVAL and jumping to the out: label, which already handles the kfree(tplg_files) cleanup.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.19, >=99c159279c6dfa2c4867c7f76875f58263f8f43b <6ed7787c43ecf4ae27a3e700cab53a1ed646c7f8, >=99c159279c6dfa2c4867c7f76875f58263f8f43b <d46f9f23897261da53ffbeb89d48a13982ba7d28 | 6ed7787c43ecf4ae27a3e700cab53a1ed646c7f8, d46f9f23897261da53ffbeb89d48a13982ba7d28 |
| linux-kernel: Kernel | >=6.19.0 <7.1.5 | 7.1.5 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket