CVE-2026-139786
mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows
CVE-2026-139786 affects Linux (CVSS 7.0, High).
No known exploitation. No EPSS score yet. Fixed versions are out.
No public exploit knownFix1 product4 fixed builds listed below
No ready-made check. Neither Nuclei nor OpenVAS has one for this CVE yet.
What to do
Find your product and version, then upgrade to the build on the right.
- LinuxAffected: ≥ 5e31275cc997f8ec5d9e8d65fe9840ebed89db19, < 23f50b2fbf48f18fd1a6f2195a33c354619dedabUpgrade to: 23f50b2fbf48f18fd1a6f2195a33c354619dedabAffected: ≥ 5e31275cc997f8ec5d9e8d65fe9840ebed89db19, < 068a80b062757b208fa8af13554bd07608848203Upgrade to: 068a80b062757b208fa8af13554bd07608848203Affected: ≥ 5e31275cc997f8ec5d9e8d65fe9840ebed89db19, < 59381aea52a464e882eb85a61728dc147c1b8b50Upgrade to: 59381aea52a464e882eb85a61728dc147c1b8b50Affected: ≥ 5e31275cc997f8ec5d9e8d65fe9840ebed89db19, < 1a0b5660087189a322dd3b8f548701b887809d72Upgrade to: 1a0b5660087189a322dd3b8f548701b887809d72 + 1 more branchStated by: CVE record
Versions as the sources state them. Full version matrix after sign-in
What it is
From the CVE record
In the Linux kernel, the following vulnerability has been resolved: mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows So far the assumption has been that mm->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. 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. Since overflow only occurs every 2^31 write lock/unlock cycles, resolve the issue by resetting every VMA's vma->vm_lock_seq each time such an overflow occurs. 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(). Care must be taken, as resetting the sequence count at overflow means changing the seqcount of VMAs which are already attached and observable. 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. 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. However, vma_start_read() also checks vma->vm_lock_seq == mm->mm_lock_seq, bailing if so (indicating a write lock). This would cause any even reset value chosen to prevent VMA read locks from being taken - avoid this by also checking whether the VMA seqcount is odd before bailing on the read lock. So far, vma->vm_lock_seq has defaulted to UINT_MAX, but this has been unnecessary since commit e5e7fb278e59 ("mm: convert mm_lock_seq to a proper seqcount"), since this is assigned when the VMA is still detached, and cannot be observed. Therefore perform both reset and initialisation of vma->vm_lock_seq by simply setting vma->vm_lock_seq to zero. The reset, performed in __mm_reset_vma_seqcounts(), only needs to WRITE_ONCE() the value. However the read of vma->vm_lock_seq in vma_start_read() needs to have acquire semantics to pair with the smp_wmb() in do_raw_write_seqcount_end() so a reader reading a reset value also observes VMA modifications made under the write lock. Since all VMA write locks were just released and the mmap write lock is still held, there are no concurrent VMA writers. Concurrent VMA readers are unaffected. New VMA readers observe either zero, never a write lock, or the prior seqcount, behaving as before the reset. Since this only occurs every 2^31 write lock/unlock cycles, the time taken to update all VMAs is considered to be acceptable. Also update comments, documentation and VMA userland tests to reflect the change. User facing effects are - dangerous races that could cause memory corruption or NULL pointer derefences (especially on page table traversal) are avoided.
In plain language
No plain-language summary for this CVE yet.
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Not in the catalog. CISA has not confirmed exploitation.
- Public exploits
No public exploit or proof of concept found in the sources we track.
- EPSS
No EPSS score yet. New CVEs are usually scored within a few days.
Lifecycle
3 events over 1 day, from the signal feeds we watch.
- Record updated
- Publishedrecord updated
Affected products
Technical detail
CVSS 3.1 vector
Open in the CVSS calculatorCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Scored 7.0 by NVD.
How it is reached
- Attack Vector LocalRequires local access to the vulnerable system (e.g. local login, malicious file)
- Attack Complexity HighRequires specific conditions like a race condition or non-default configuration
- Privileges Required LowRequires basic user-level privileges
- User Interaction NoneNo user interaction needed — fully automated exploitation
Scope
- Scope UnchangedImpact is limited to the vulnerable component itself
Impact if exploited
- Confidentiality HighTotal information disclosure — all data in the component is compromised
- Integrity HighTotal loss of integrity — attacker can modify any data in the component
- Availability HighTotal denial of service — the component is completely unavailable
Sources
Questions about CVE-2026-139786
- Which versions are affected by CVE-2026-139786?
- Linux: ≥ 5e31275cc997f8ec5d9e8d65fe9840ebed89db19, < 23f50b2fbf48f18fd1a6f2195a33c354619dedab; ≥ 5e31275cc997f8ec5d9e8d65fe9840ebed89db19, < 068a80b062757b208fa8af13554bd07608848203; ≥ 5e31275cc997f8ec5d9e8d65fe9840ebed89db19, < 59381aea52a464e882eb85a61728dc147c1b8b50.
- How do I fix or mitigate CVE-2026-139786?
- Upgrade to a fixed build for your product branch: 23f50b2fbf48f18fd1a6f2195a33c354619dedab, 068a80b062757b208fa8af13554bd07608848203, 59381aea52a464e882eb85a61728dc147c1b8b50, 1a0b5660087189a322dd3b8f548701b887809d72.
Last updated
Related articles
All articles- Broadcom's VMSA-2026-0006 Patches Three Critical VMware Flaws — vCenter Has Failed This Exact Way Before
- Langflow's Auto-Login Endpoint Was Handing Out Admin Tokens — CVE-2026-9198 Has Been Under Attack Since Before It Had a CVE
- CVE-2021-29441: the Nacos backdoor you open by lying about your User-Agent
Watch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for Linux, not every advisory.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI