<?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>Tue, 29 Sep 2026 21:57:12 +0000</lastBuildDate>
    <item>
      <title>CVE-2023-53810 — blk-mq: release crypto keyslot before reporting I/O complete</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2023-53810</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;blk-mq: release crypto keyslot before reporting I/O complete&lt;/p&gt;
&lt;p&gt;Once all I/O using a blk_crypto_key has completed, filesystems can call
blk_crypto_evict_key().  However, the block layer currently doesn&amp;#39;t call
blk_crypto_put_keyslot() until the request is being freed, which happens
after upper layers have been told (via bio_endio()) the I/O has
completed.  This causes a race condition where blk_crypto_evict_key()
can see &amp;#39;slot_refs != 0&amp;#39; without there being an actual bug.&lt;/p&gt;
&lt;p&gt;This makes __blk_crypto_evict_key() hit the
&amp;#39;WARN_ON_ONCE(atomic_read(&amp;amp;slot-&amp;gt;slot_refs) != 0)&amp;#39; and return without
doing anything, eventually causing a use-after-free in
blk_crypto_reprogram_all_keys().  (This is a very rare bug and has only
been seen when per-file keys are being used with fscrypt.)&lt;/p&gt;
&lt;p&gt;There are two options to fix this: either release the keyslot before
bio_endio() is called on the request&amp;#39;s last bio, or make
__blk_crypto_evict_key() ignore slot_refs.  Let&amp;#39;s go with the first
solution, since it preserves the ability to report bugs (via
WARN_ON_ONCE) where a key is evicted while still in-use.&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;blk-mq: release crypto keyslot before reporting I/O complete&lt;/p&gt;
&lt;p&gt;Once all I/O using a blk_crypto_key has completed, filesystems can call
blk_crypto_evict_key().  However, the block layer currently doesn&amp;#39;t call
blk_crypto_put_keyslot() until the request is being freed, which happens
after upper layers have been told (via bio_endio()) the I/O has
completed.  This causes a race condition where blk_crypto_evict_key()
can see &amp;#39;slot_refs != 0&amp;#39; without there being an actual bug.&lt;/p&gt;
&lt;p&gt;This makes __blk_crypto_evict_key() hit the
&amp;#39;WARN_ON_ONCE(atomic_read(&amp;amp;slot-&amp;gt;slot_refs) != 0)&amp;#39; and return without
doing anything, eventually causing a use-after-free in
blk_crypto_reprogram_all_keys().  (This is a very rare bug and has only
been seen when per-file keys are being used with fscrypt.)&lt;/p&gt;
&lt;p&gt;There are two options to fix this: either release the keyslot before
bio_endio() is called on the request&amp;#39;s last bio, or make
__blk_crypto_evict_key() ignore slot_refs.  Let&amp;#39;s go with the first
solution, since it preserves the ability to report bugs (via
WARN_ON_ONCE) where a key is evicted while still in-use.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2023-53810</guid>
    </item>
  </channel>
</rss>
