<?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>Wed, 30 Sep 2026 23:24:30 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-56685 — ASoC: mediatek: Check num_codecs is not zero to avoid panic during probe</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-56685</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: mediatek: Check num_codecs is not zero to avoid panic during probe&lt;/p&gt;
&lt;p&gt;Following commit 13f58267cda3 (&amp;#34;ASoC: soc.h: don&amp;#39;t create dummy
Component via COMP_DUMMY()&amp;#34;), COMP_DUMMY() became an array with zero
length, and only gets populated with the dummy struct after the card is
registered. Since the sound card driver&amp;#39;s probe happens before the card
registration, accessing any of the members of a dummy component during
probe will result in undefined behavior.&lt;/p&gt;
&lt;p&gt;This can be observed in the mt8188 and mt8195 machine sound drivers. By
omitting a dai link subnode in the sound card&amp;#39;s node in the Devicetree,
the default uninitialized dummy codec is used, and when its dai_name
pointer gets passed to strcmp() it results in a null pointer dereference
and a kernel panic.&lt;/p&gt;
&lt;p&gt;In addition to that, set_card_codec_info() in the generic helpers file,
mtk-soundcard-driver.c, will populate a dai link with a dummy codec when
a dai link node is present in DT but with no codec property.&lt;/p&gt;
&lt;p&gt;The result is that at probe time, a dummy codec can either be
uninitialized with num_codecs = 0, or be an initialized dummy codec,
with num_codecs = 1 and dai_name = &amp;#34;snd-soc-dummy-dai&amp;#34;. In order to
accommodate for both situations, check that num_codecs is not zero
before accessing the codecs&amp;#39; fields but still check for the codec&amp;#39;s dai
name against &amp;#34;snd-soc-dummy-dai&amp;#34; as needed.&lt;/p&gt;
&lt;p&gt;While at it, also drop the check that dai_name is not null in the mt8…&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: mediatek: Check num_codecs is not zero to avoid panic during probe&lt;/p&gt;
&lt;p&gt;Following commit 13f58267cda3 (&amp;#34;ASoC: soc.h: don&amp;#39;t create dummy
Component via COMP_DUMMY()&amp;#34;), COMP_DUMMY() became an array with zero
length, and only gets populated with the dummy struct after the card is
registered. Since the sound card driver&amp;#39;s probe happens before the card
registration, accessing any of the members of a dummy component during
probe will result in undefined behavior.&lt;/p&gt;
&lt;p&gt;This can be observed in the mt8188 and mt8195 machine sound drivers. By
omitting a dai link subnode in the sound card&amp;#39;s node in the Devicetree,
the default uninitialized dummy codec is used, and when its dai_name
pointer gets passed to strcmp() it results in a null pointer dereference
and a kernel panic.&lt;/p&gt;
&lt;p&gt;In addition to that, set_card_codec_info() in the generic helpers file,
mtk-soundcard-driver.c, will populate a dai link with a dummy codec when
a dai link node is present in DT but with no codec property.&lt;/p&gt;
&lt;p&gt;The result is that at probe time, a dummy codec can either be
uninitialized with num_codecs = 0, or be an initialized dummy codec,
with num_codecs = 1 and dai_name = &amp;#34;snd-soc-dummy-dai&amp;#34;. In order to
accommodate for both situations, check that num_codecs is not zero
before accessing the codecs&amp;#39; fields but still check for the codec&amp;#39;s dai
name against &amp;#34;snd-soc-dummy-dai&amp;#34; as needed.&lt;/p&gt;
&lt;p&gt;While at it, also drop the check that dai_name is not null in the mt8…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-56685</guid>
    </item>
  </channel>
</rss>
