<?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://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-12-04T19:23:06.126824+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" 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://db.gcve.eu/vuln/cve-2026-139786</id>
    <title>CVE-2026-139786 — mm/vma: avoid spurious write locks when mm-&gt;mm_lock_seq overflows</title>
    <updated>2026-12-04T19:23:06.128307+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>mm/vma: avoid spurious write locks when mm-&gt;mm_lock_seq overflows</p>
<p>So far the assumption has been that mm-&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.</p>
<p>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.</p>
<p>Since overflow only occurs every 2^31 write lock/unlock cycles, resolve the
issue by resetting every VMA's vma-&gt;vm_lock_seq each time such an overflow
occurs.</p>
<p>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().</p>
<p>Care must be taken, as resetting the sequence count at overflow means
changing the seqcount of VMAs which are already attached and observable.</p>
<p>The mm'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.</p>
<p>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.</p>
<p>However, vma_start_read() also checks vma-&gt;vm_lock_seq == mm-&gt;mm_lock_seq,
bailing if so (indicating a write lock).</p>
<p>This would cause any even reset value chosen to prevent VMA read locks from
being taken - avoid this by also checking w…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-139786"/>
  </entry>
</feed>
