ALSA: ctxfi: Fix memory leakage when clearing DAO input mappers
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.18.57, 7.2.11
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In 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.
Timeline
- CVE published
- First seen by cve.now
Affected versions
- Linux Linux
From e576e7843c0d65b82d4092e5b386d9fbf5bc10c3 · fixed in f7dc71c1ce885f5d9f128037ebc75d9c0356e060; From e576e7843c0d65b82d4092e5b386d9fbf5bc10c3 · fixed in 0919d8dd19f92e12829055c75fced9a454d644bf; From e576e7843c0d65b82d4092e5b386d9fbf5bc10c3 · fixed in 593d46fc6af9a0178a46e77d6d24b20d2314165f
- Linux Linux
6.14
- KernelLinux
From 6.14.0 · fixed in 6.18.57; From 6.19.0 · fixed in 7.2.11