<?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:42:01 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-139786 — mm/vma: avoid spurious write locks when mm-&gt;mm_lock_seq overflows</title>
      <link>https://db.gcve.eu/vuln/cve-2026-139786</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;mm/vma: avoid spurious write locks when mm-&amp;gt;mm_lock_seq overflows&lt;/p&gt;
&lt;p&gt;So far the assumption has been that mm-&amp;gt;mm_lock_seq overflow is benign,
resulting only in readers spuriously falling back to the mmap lock, however
it turns out that this was an unsafe assumption.&lt;/p&gt;
&lt;p&gt;If a VMA can be spuriously considered write locked that means read lock
exclusion does not take place, and thus a VMA can end up write-locked with
concurrent readers.&lt;/p&gt;
&lt;p&gt;Since overflow only occurs every 2^31 write lock/unlock cycles, resolve the
issue by resetting every VMA&amp;#39;s vma-&amp;gt;vm_lock_seq each time such an overflow
occurs.&lt;/p&gt;
&lt;p&gt;This is done in vma_end_write_all(), which is called when the mmap write
lock is released, i.e. in mmap_write_unlock() and mmap_write_downgrade().&lt;/p&gt;
&lt;p&gt;Care must be taken, as resetting the sequence count at overflow means
changing the seqcount of VMAs which are already attached and observable.&lt;/p&gt;
&lt;p&gt;The mm&amp;#39;s seqcount is guaranteed to be odd when a write lock is held, and
thus any write locked VMA will have an odd seqcount assigned.&lt;/p&gt;
&lt;p&gt;Therefore resetting to an even value prevents spurious write locks, since
these can only occur with the mmap write lock held, at which point the mmap
seqcount will be odd.&lt;/p&gt;
&lt;p&gt;However, vma_start_read() also checks vma-&amp;gt;vm_lock_seq == mm-&amp;gt;mm_lock_seq,
bailing if so (indicating a write lock).&lt;/p&gt;
&lt;p&gt;This would cause any even reset value chosen to prevent VMA read locks from
being taken - avoid this by also checking w…&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;mm/vma: avoid spurious write locks when mm-&amp;gt;mm_lock_seq overflows&lt;/p&gt;
&lt;p&gt;So far the assumption has been that mm-&amp;gt;mm_lock_seq overflow is benign,
resulting only in readers spuriously falling back to the mmap lock, however
it turns out that this was an unsafe assumption.&lt;/p&gt;
&lt;p&gt;If a VMA can be spuriously considered write locked that means read lock
exclusion does not take place, and thus a VMA can end up write-locked with
concurrent readers.&lt;/p&gt;
&lt;p&gt;Since overflow only occurs every 2^31 write lock/unlock cycles, resolve the
issue by resetting every VMA&amp;#39;s vma-&amp;gt;vm_lock_seq each time such an overflow
occurs.&lt;/p&gt;
&lt;p&gt;This is done in vma_end_write_all(), which is called when the mmap write
lock is released, i.e. in mmap_write_unlock() and mmap_write_downgrade().&lt;/p&gt;
&lt;p&gt;Care must be taken, as resetting the sequence count at overflow means
changing the seqcount of VMAs which are already attached and observable.&lt;/p&gt;
&lt;p&gt;The mm&amp;#39;s seqcount is guaranteed to be odd when a write lock is held, and
thus any write locked VMA will have an odd seqcount assigned.&lt;/p&gt;
&lt;p&gt;Therefore resetting to an even value prevents spurious write locks, since
these can only occur with the mmap write lock held, at which point the mmap
seqcount will be odd.&lt;/p&gt;
&lt;p&gt;However, vma_start_read() also checks vma-&amp;gt;vm_lock_seq == mm-&amp;gt;mm_lock_seq,
bailing if so (indicating a write lock).&lt;/p&gt;
&lt;p&gt;This would cause any even reset value chosen to prevent VMA read locks from
being taken - avoid this by also checking w…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-139786</guid>
    </item>
  </channel>
</rss>
