<?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-29T00:55:25.674866+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-2026-89809</id>
    <title>CVE-2026-89809 — drm/amdkfd: fix scope of mqd_mgr dereference in pqm_debugfs_mqds</title>
    <updated>2026-09-29T00:55:25.819483+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>drm/amdkfd: fix scope of mqd_mgr dereference in pqm_debugfs_mqds</p>
<p>Reading /sys/kernel/debug/kfd/mqds while a process holds an active KFD
queue triggers a NULL pointer dereference because the for loop that
calls mqd_mgr-&gt;debugfs_show_mqd() is incorrectly placed outside the
if (pqn-&gt;q) block that initializes mqd_mgr.</p>
<p>The queue list can contain entries where pqn-&gt;q is NULL (kernel queues
where only pqn-&gt;kq is valid). In the original code:</p>
<p>if (pqn-&gt;q) {
      ...
      mqd_mgr = q-&gt;device-&gt;dqm-&gt;mqd_mgrs[mqd_type];
      size = mqd_mgr-&gt;mqd_stride(...);
  }</p>
<p>for (xcc = 0; xcc &lt; num_xccs; xcc++) {  // WRONG: outside if block
      mqd = q-&gt;mqd + size * xcc;
      r = mqd_mgr-&gt;debugfs_show_mqd(m, mqd);
  }</p>
<p>When iterating over a queue node where pqn-&gt;q is NULL:
1. The if (pqn-&gt;q) block is skipped
2. mqd_mgr remains uninitialized (NULL from declaration)
3. The for loop executes anyway
4. mqd_mgr-&gt;debugfs_show_mqd(m, mqd) dereferences NULL</p>
<p>The crash manifests as:</p>
<p>BUG: kernel NULL pointer dereference, address: 0000000000000000
  #PF: supervisor instruction fetch in kernel mode
  RIP: 0010:0x0
  Call Trace:
   pqm_debugfs_mqds+0x10c/0x1d0 [amdgpu]
   kfd_debugfs_mqds_by_process+0x9b/0x110 [amdgpu]
   seq_read_iter+0x132/0x4b0
   ...</p>
<p>Fix by moving the for loop inside the if (pqn-&gt;q) block, so mqd_mgr
and related variables are only used when properly initialized.</p>
<p>(cherry picked from commit 8bfe29d5c798940f79…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-89809"/>
  </entry>
</feed>
