<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-30T03:02:29.808181+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2024-26807</id>
    <title>CVE-2024-26807 — spi: cadence-qspi: fix pointer reference in runtime PM hooks</title>
    <updated>2026-09-30T03:02:30.285344+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>Both cadence-quadspi -&gt;runtime_suspend() and -&gt;runtime_resume()
implementations start with:</p>
<p>struct cqspi_st *cqspi = dev_get_drvdata(dev);
	struct spi_controller *host = dev_get_drvdata(dev);</p>
<p>This obviously cannot be correct, unless "struct cqspi_st" is the
first member of " struct spi_controller", or the other way around, but
it is not the case. "struct spi_controller" is allocated by
devm_spi_alloc_host(), which allocates an extra amount of memory for
private data, used to store "struct cqspi_st".</p>
<p>The -&gt;probe() function of the cadence-quadspi driver then sets the
device drvdata to store the address of the "struct cqspi_st"
structure. Therefore:</p>
<p>struct cqspi_st *cqspi = dev_get_drvdata(dev);</p>
<p>is correct, but:</p>
<p>struct spi_controller *host = dev_get_drvdata(dev);</p>
<p>is not, as it makes "host" point not to a "struct spi_controller" but
to the same "struct cqspi_st" structure as above.</p>
<p>This obviously leads to bad things (memory corruption, kernel crashes)
directly during -&gt;probe(), as -&gt;probe() enables the device using PM
runtime, leading the -&gt;runtime_resume() hook being called, which in
turns calls spi_controller_resume() with the wrong pointer.</p>
<p>This has at least been reported [0] to cause a kernel crash, but the
exact behavior will depend on the memory contents.</p>
<p>[0] https://lore.kernel.org/all/20240226121803.5a7r5wkpbbowcxgx@dhruva/</p>
<p>This issue potentially affects all platforms that are currently us…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2024-26807"/>
  </entry>
</feed>
