ASoC: xilinx: formatter_pcm: fix stream_data leak on open error
- 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 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, and 2 more
- 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: ASoC: xilinx: formatter_pcm: fix stream_data leak on open error In xlnx_formatter_pcm_open(), stream_data is allocated and adata->play_stream or adata->capture_stream is assigned early. If a later step, such as snd_pcm_hw_constraint_step() or snd_pcm_hw_constraint_integer(), fails, the function returns the error immediately. ALSA does not call the close callback when open fails, so stream_data is leaked and the stream pointer is left dangling, pointing to a substream that ALSA frees. A later interrupt would then call snd_pcm_period_elapsed() on the freed substream. Free stream_data and clear the stream pointer on the error paths.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 6f6c3c36f0917be24587eeba818ab4fdfcb5465a · fixed in 5e1a2d9fff57f3a2b1a0f54d128d64245a253004; From 6f6c3c36f0917be24587eeba818ab4fdfcb5465a · fixed in edf81b293cba1b00a5e71becf184414f6991a6ca; From 6f6c3c36f0917be24587eeba818ab4fdfcb5465a · fixed in 3fd89a51b8cfe788df67f54b716b305dd45b8468; From 6f6c3c36f0917be24587eeba818ab4fdfcb5465a · fixed in 8c38ae4a465691947977c25d10394da22a64a19f; From 6f6c3c36f0917be24587eeba818ab4fdfcb5465a · fixed in 9030aa4e14b704dc39ee208207cb65064020d857; From 6f6c3c36f0917be24587eeba818ab4fdfcb5465a · fixed in 8b30628dfc2b2fad3b55a9441776a226035045fa; From 6f6c3c36f0917be24587eeba818ab4fdfcb5465a · fixed in 4e0ce77df7d9808926719d7950a07fbad14ea9ef; From 6f6c3c36f0917be24587eeba818ab4fdfcb5465a · fixed in b992511180e126150c6ad3580a6fd568c385f4c6
- Linux Linux
5.1
- KernelLinux
From 5.1.0 · fixed in 5.10.270; From 5.11.0 · fixed in 5.15.221; From 5.16.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6
References 8
git.kernel.org
- stable/c/5e1a2d9fff57f3a2b1a0f54d128d64245a253004
- stable/c/edf81b293cba1b00a5e71becf184414f6991a6ca
- stable/c/3fd89a51b8cfe788df67f54b716b305dd45b8468
- stable/c/8c38ae4a465691947977c25d10394da22a64a19f
- stable/c/9030aa4e14b704dc39ee208207cb65064020d857
- stable/c/8b30628dfc2b2fad3b55a9441776a226035045fa
- stable/c/4e0ce77df7d9808926719d7950a07fbad14ea9ef
- stable/c/b992511180e126150c6ad3580a6fd568c385f4c6