<?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 19:52:21 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-139647 — crypto: qat - hold cfg-&gt;lock when accessing config sections</title>
      <link>https://db.gcve.eu/vuln/cve-2026-139647</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;crypto: qat - hold cfg-&amp;gt;lock when accessing config sections&lt;/p&gt;
&lt;p&gt;adf_cfg_sec_find() walks the per-device section list without holding
cfg-&amp;gt;lock, and the returned section pointer is used later under the
lock. A concurrent section deletion under cfg-&amp;gt;lock
(adf_cfg_del_all_except() on device down, or adf_cfg_dev_remove() on
removal) can free the section first, leading to a use-after-free.&lt;/p&gt;
&lt;p&gt;The debugfs dev_cfg reader has the same problem: qat_dev_cfg_show()
walks both the section list and each section&amp;#39;s param_head under the
global qat_cfg_read_lock mutex, not the per-device cfg-&amp;gt;lock used by the
add and delete paths, so the two do not serialise. Updating an existing
key frees the old key_val under cfg-&amp;gt;lock, so even a config write
concurrent with an open dev_cfg read can free an entry mid-walk, a wider
window than section deletion alone.&lt;/p&gt;
&lt;p&gt;Take cfg-&amp;gt;lock around the section lookup in adf_cfg_add_key_value_param()
and around the lookup and insert in adf_cfg_section_add(), and use
down_read()/up_read(&amp;amp;cfg-&amp;gt;lock) in the debugfs start/stop callbacks.
Remove the now-unused qat_cfg_read_lock.&lt;/p&gt;
&lt;p&gt;While here, return -ENOENT rather than -EFAULT when the section is not
found; EFAULT (bad userspace address) is not meaningful for this case.&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;crypto: qat - hold cfg-&amp;gt;lock when accessing config sections&lt;/p&gt;
&lt;p&gt;adf_cfg_sec_find() walks the per-device section list without holding
cfg-&amp;gt;lock, and the returned section pointer is used later under the
lock. A concurrent section deletion under cfg-&amp;gt;lock
(adf_cfg_del_all_except() on device down, or adf_cfg_dev_remove() on
removal) can free the section first, leading to a use-after-free.&lt;/p&gt;
&lt;p&gt;The debugfs dev_cfg reader has the same problem: qat_dev_cfg_show()
walks both the section list and each section&amp;#39;s param_head under the
global qat_cfg_read_lock mutex, not the per-device cfg-&amp;gt;lock used by the
add and delete paths, so the two do not serialise. Updating an existing
key frees the old key_val under cfg-&amp;gt;lock, so even a config write
concurrent with an open dev_cfg read can free an entry mid-walk, a wider
window than section deletion alone.&lt;/p&gt;
&lt;p&gt;Take cfg-&amp;gt;lock around the section lookup in adf_cfg_add_key_value_param()
and around the lookup and insert in adf_cfg_section_add(), and use
down_read()/up_read(&amp;amp;cfg-&amp;gt;lock) in the debugfs start/stop callbacks.
Remove the now-unused qat_cfg_read_lock.&lt;/p&gt;
&lt;p&gt;While here, return -ENOENT rather than -EFAULT when the section is not
found; EFAULT (bad userspace address) is not meaningful for this case.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-139647</guid>
    </item>
  </channel>
</rss>
