CVE-2026-139799
mm/shmem: hold off eviction in shmem_writeout()
No exploitation reported by the sources we read.
- Published2026-11-30
- Fixed in7.3.6 · 6.18.65
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
In the Linux kernel, the following vulnerability has been resolved: mm/shmem: hold off eviction in shmem_writeout() Once shmem_writeout() has moved the folio from the page cache to the swap cache, the folio lock no longer keeps the inode alive: truncation and eviction find a swap entry, free it and do not wait for anybody. That did not matter as long as swap_writeout() was the last thing the function did. But since it puts the folio back when swap_writeout() returns AOP_WRITEPAGE_ACTIVATE, it uses the mapping and the inode afterwards: reclaim last close of an unlinked file shmem_writeout() shmem_delete_from_page_cache() swap_writeout() zswap_store() fails shmem_evict_inode() writeback is disabled shmem_truncate_range() return AOP_WRITEPAGE_ACTIVATE shmem_free_swap() destroy_inode() ... RCU grace period, freed shmem_add_to_page_cache(mapping) xas_lock_irq() <- use after free swap_writeout() behaves that way if zswap is enabled, cannot take the folio and the memcg or one of its ancestors has memory.zswap.writeback set to 0. shmem_unuse() already added infrastructure to deal with that. Reuse info->stop_eviction to protect the inode during writeout. Increment it before removing the folio from the page cache, and decrement it after swap_writeout() and any attempted reinsertion and inode accounting. In shmem_evict_inode(), wait for the counter to reach zero even if swapoff has already removed the inode from the swap list. Add some helpers to make the code easier to digest. There is a known remaining issue with two swapoffs racing, and the empty list check not being able to detect that race. That will be addressed separately later. Fix generated by an LLM and sent by Josef Bacik in private. [ david: code cleanups; improve description ]
Timeline
dates in UTC- 2026-11-3013:38CVE publishedCNA
Versions per branch
OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 7.3 | ≥ 6.19.0, < 7.3.6 | 7.3.6 | OSV |
| 6.x | ≥ 6.17.0, < 6.18.65 | 6.18.65 | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA2 products
As Linux, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Linuxother versions: not affected
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Affected- ≥ 6344a6d9ce13ae29e3ddf280fd8a1109a77b9996, < d64fd1229fb1437d7c62c49eba82691bfd65d541fixed in d64fd1229fb1437d7c62c49eba82691bfd65d541git
- ≥ 6344a6d9ce13ae29e3ddf280fd8a1109a77b9996, < f53ee5a65460010cabd75895d83258d90923ca7afixed in f53ee5a65460010cabd75895d83258d90923ca7agit
- ≥ 6344a6d9ce13ae29e3ddf280fd8a1109a77b9996, < 8f59173b5ca358bf4d1017b44da3cbe6faa80daffixed in 8f59173b5ca358bf4d1017b44da3cbe6faa80dafgit
- Linuxother versions: affected
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Affected- = 6.17no fix stated
Not affected < 6.17 · ≥ 6.18.65, ≤ 6.18.* · ≥ 7.3.6, ≤ 7.3.* · ≥ 7.4-rc2
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-11-30
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- linuxDebian:14all versions · fixed in 7.3.6-1
Fix
- Update Linux kernel to 7.3.6 · 6.18.65
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-12-01
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-11-30
- CNACVSS 3.172026-12-01
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- EUVD-2026-139505same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-jvq3-59rq-qwgxsame flawGitHub Advisory Database · CC-BY-4.0
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Published
- 2026-11-30
- Last modified
- 2026-11-30
- NVD status
- Received
- GitHub advisory
- GHSA-jvq3-59rq-qwgx
Frequently asked questions
What is CVE-2026-139799?
Is CVE-2026-139799 actively exploited?
What is the CVSS score for CVE-2026-139799?
Running Linux kernel? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-jvq3-59rq-qwgx
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served