Linux kernel memory leak in ALSA ctxfi DAO input mapper cleanup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.577.2.117.3In the Linux kernel, the following vulnerability has been resolved:
ALSA: ctxfi: Fix memory leakage when clearing DAO input mappers
Commit e576e7843c0d ("ALSA: ctxfi: Simplify dao_clear_{left,right}_input() functions") centralized the DAO input mapper clearing logic in dao_clear_input(), but omitted the kfree() calls.
It removes the mapper entries from the list and sets their pointers to NULL without freeing the allocated array. This leaks memory each time dao_clear_input() is called.
Store the base pointer of the allocation before clearing the mapper entries and free the array after removing entries from the list.
From the CVE record · Linux
The Linux kernel’s ALSA ctxfi driver leaks memory when it clears DAO input mappers because it removes mapper entries without freeing their allocated array. Memory leaks each time the clearing function runs. The input does not describe an attacker path, authentication requirements, or user interaction.
Engineers running Linux kernels with the ALSA ctxfi driver should check their kernel version; affected versions are not specified.