In the Linux kernel, the following vulnerability has been resolved: mm/shmem: fix truncate hang in large swap entry Truncating a tmpfs file…
CVE-2026-99739
In the Linux kernel, the following vulnerability has been resolved: mm/shmem: fix truncate hang in large swap entry Truncating a tmpfs file or memfd to a page-aligned size inside a large swap entry can loop indefinitely in shmemundorange(). The task holds the inode lock and cannot be killed. A large swap entry represents a whole swapped-out folio. For example, truncate a file whose pages 0-7 share one swap entry to four pages: [ 0 1 2 3 | 4 5 6 7 ] keep | discard ^ new EOF, start = 4 isize has already been updated when boundary handling asks shmemgetpartialfolio() for page 4. Since it is swapped out, the helper calls shmemgetfolio() with SGPREAD. That rejects page 4 with -EINVAL because its starting offset equals isize. Nothing is read back. The final scan cannot free the entry without losing pages 0-3. It skips it, restarts from start = 4, and finds it again indefinitely. An unaligned truncate avoids this particular failure because the requested page starts below isize. Folios already in the page-cache cannot trigger it as the direct lookup will return them beyond EOF. Fix it by letting shmemgetpartialfolio() call shmemswapinfolio() directly for swap entries. This bypasses the…
Assessment
- CVSS
- Not yet scored
- Severity
- Unscored
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 20 November 2026
- Last updated
- 20 November 2026
- Assigner
- Linux
At the source
References
- https://git.kernel.org/stable/c/9fbca74e8efbb8fed180639af349449f04a2a3c3
- https://git.kernel.org/stable/c/577374a2171cdb68e492725feb564364f93161b6
- https://git.kernel.org/stable/c/ef6daf302dc569a67fe50968f9b6085f111b8560
- https://git.kernel.org/stable/c/fa213b08f37f9dff78ce240a87579dc264fc7a5d
- https://nvd.nist.gov/vuln/detail/CVE-2026-99739
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-99739