<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Tue, 06 Oct 2026 08:31:34 +0000</lastBuildDate>
    <item>
      <title>CVE-2021-47650 — ASoC: soc-compress: prevent the potentially use of null pointer</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2021-47650</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;ASoC: soc-compress: prevent the potentially use of null pointer&lt;/p&gt;
&lt;p&gt;There is one call trace that snd_soc_register_card()
-&amp;gt;snd_soc_bind_card()-&amp;gt;soc_init_pcm_runtime()
-&amp;gt;snd_soc_dai_compress_new()-&amp;gt;snd_soc_new_compress().
In the trace the &amp;#39;codec_dai&amp;#39; transfers from card-&amp;gt;dai_link,
and we can see from the snd_soc_add_pcm_runtime() in
snd_soc_bind_card() that, if value of card-&amp;gt;dai_link-&amp;gt;num_codecs
is 0, then &amp;#39;codec_dai&amp;#39; could be null pointer caused
by index out of bound in &amp;#39;asoc_rtd_to_codec(rtd, 0)&amp;#39;.
And snd_soc_register_card() is called by various platforms.
Therefore, it is better to add the check in the case of misusing.
And because &amp;#39;cpu_dai&amp;#39; has already checked in soc_init_pcm_runtime(),
there is no need to check again.
Adding the check as follow, then if &amp;#39;codec_dai&amp;#39; is null,
snd_soc_new_compress() will not pass through the check
&amp;#39;if (playback + capture != 1)&amp;#39;, avoiding the leftover use of
&amp;#39;codec_dai&amp;#39;.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;ASoC: soc-compress: prevent the potentially use of null pointer&lt;/p&gt;
&lt;p&gt;There is one call trace that snd_soc_register_card()
-&amp;gt;snd_soc_bind_card()-&amp;gt;soc_init_pcm_runtime()
-&amp;gt;snd_soc_dai_compress_new()-&amp;gt;snd_soc_new_compress().
In the trace the &amp;#39;codec_dai&amp;#39; transfers from card-&amp;gt;dai_link,
and we can see from the snd_soc_add_pcm_runtime() in
snd_soc_bind_card() that, if value of card-&amp;gt;dai_link-&amp;gt;num_codecs
is 0, then &amp;#39;codec_dai&amp;#39; could be null pointer caused
by index out of bound in &amp;#39;asoc_rtd_to_codec(rtd, 0)&amp;#39;.
And snd_soc_register_card() is called by various platforms.
Therefore, it is better to add the check in the case of misusing.
And because &amp;#39;cpu_dai&amp;#39; has already checked in soc_init_pcm_runtime(),
there is no need to check again.
Adding the check as follow, then if &amp;#39;codec_dai&amp;#39; is null,
snd_soc_new_compress() will not pass through the check
&amp;#39;if (playback + capture != 1)&amp;#39;, avoiding the leftover use of
&amp;#39;codec_dai&amp;#39;.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2021-47650</guid>
    </item>
  </channel>
</rss>
