<?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://db.gcve.eu</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>Fri, 04 Dec 2026 18:53:58 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-139052 — mtd: spi-nor: sfdp: check the length of the SCCR map</title>
      <link>https://db.gcve.eu/vuln/cve-2026-139052</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;mtd: spi-nor: sfdp: check the length of the SCCR map&lt;/p&gt;
&lt;p&gt;The spi_nor_parse_sccr() sizes its buffer from the table length the
flash reports in the SFDP parameter header. But it then reads DWORD1
and DWORD22 without ever checking the table is that long.&lt;/p&gt;
&lt;p&gt;So if a flash reports a length of one, the buffer is only four bytes
while DWORD22 sits at byte offset 84. With a length of zero kmalloc()
returns ZERO_SIZE_PTR rather than an error, so the NULL check doesn&amp;#39;t
catch it and the first read dereferences it.&lt;/p&gt;
&lt;p&gt;To fix this, reject a table that&amp;#39;s too short for the highest DWORD the
parser reads, the way spi_nor_parse_4bait() already does. The table is
optional, so this isn&amp;#39;t fatal. The spi_nor_parse_sfdp() warns and
carries on.&lt;/p&gt;
&lt;p&gt;The spi_nor_parse_sccr_mc() doesn&amp;#39;t need the same check. It works out
the number of dice from the length it allocated with, so its highest
index stays inside the buffer.&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;mtd: spi-nor: sfdp: check the length of the SCCR map&lt;/p&gt;
&lt;p&gt;The spi_nor_parse_sccr() sizes its buffer from the table length the
flash reports in the SFDP parameter header. But it then reads DWORD1
and DWORD22 without ever checking the table is that long.&lt;/p&gt;
&lt;p&gt;So if a flash reports a length of one, the buffer is only four bytes
while DWORD22 sits at byte offset 84. With a length of zero kmalloc()
returns ZERO_SIZE_PTR rather than an error, so the NULL check doesn&amp;#39;t
catch it and the first read dereferences it.&lt;/p&gt;
&lt;p&gt;To fix this, reject a table that&amp;#39;s too short for the highest DWORD the
parser reads, the way spi_nor_parse_4bait() already does. The table is
optional, so this isn&amp;#39;t fatal. The spi_nor_parse_sfdp() warns and
carries on.&lt;/p&gt;
&lt;p&gt;The spi_nor_parse_sccr_mc() doesn&amp;#39;t need the same check. It works out
the number of dice from the length it allocated with, so its highest
index stays inside the buffer.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-139052</guid>
    </item>
  </channel>
</rss>
