In the Linux kernel, the following vulnerability has been resolved: mm/khugepaged: write all dirty file folios when collapsing [There is no upstream… (CVE-2026-68086)
A vulnerability in the Linux kernel's memory management subsystem (khugepaged) could cause data loss when collapsing transparent huge pages (THPs) for files opened writable. The issue arises from an edge case where dirty file pages are discarded during page cache truncation, leading to potential loss of unwritten data. The problem is fixed by ensuring all dirty file pages are fully written back before collapsing THPs, preventing data loss.
AI Analysis
Technical Summary
The vulnerability in the Linux kernel involves the khugepaged subsystem, which manages transparent huge pages (THPs). Normally, files opened writable exclude THPs to avoid inconsistencies. However, an edge case allows collapse_file() to run concurrently with dirty folios from previous writes. When a file is opened writable, written to, closed, and then madvise() with MADV_COLLAPSE is called on a non-dirty range, followed by reopening the file writable, the kernel truncates the page cache and discards dirty folios, causing data loss. The fix involves fully writing back all dirty file pages and waiting for completion while holding the invalidate_lock, ensuring no dirty folios remain during THP collapse. Additionally, the nr_thps counter update was moved outside the i_pages lock for correctness.
Potential Impact
This vulnerability can cause data loss due to dirty file pages being discarded during transparent huge page collapse operations on writable files. There is no indication of remote code execution or privilege escalation. The impact is limited to potential loss of data integrity for affected file operations.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability description indicates that the issue has been resolved in the Linux kernel by removing the problematic code and implementing a writeback mechanism before collapsing THPs. Users should monitor official Linux kernel releases and apply updates that include this fix once available.
In the Linux kernel, the following vulnerability has been resolved: mm/khugepaged: write all dirty file folios when collapsing [There is no upstream… (CVE-2026-68086)
Description
A vulnerability in the Linux kernel's memory management subsystem (khugepaged) could cause data loss when collapsing transparent huge pages (THPs) for files opened writable. The issue arises from an edge case where dirty file pages are discarded during page cache truncation, leading to potential loss of unwritten data. The problem is fixed by ensuring all dirty file pages are fully written back before collapsing THPs, preventing data loss.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel involves the khugepaged subsystem, which manages transparent huge pages (THPs). Normally, files opened writable exclude THPs to avoid inconsistencies. However, an edge case allows collapse_file() to run concurrently with dirty folios from previous writes. When a file is opened writable, written to, closed, and then madvise() with MADV_COLLAPSE is called on a non-dirty range, followed by reopening the file writable, the kernel truncates the page cache and discards dirty folios, causing data loss. The fix involves fully writing back all dirty file pages and waiting for completion while holding the invalidate_lock, ensuring no dirty folios remain during THP collapse. Additionally, the nr_thps counter update was moved outside the i_pages lock for correctness.
Potential Impact
This vulnerability can cause data loss due to dirty file pages being discarded during transparent huge page collapse operations on writable files. There is no indication of remote code execution or privilege escalation. The impact is limited to potential loss of data integrity for affected file operations.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability description indicates that the issue has been resolved in the Linux kernel by removing the problematic code and implementing a writeback mechanism before collapsing THPs. Users should monitor official Linux kernel releases and apply updates that include this fix once available.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-f6v6-h22p-v3m3
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-68086"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a79f0c4bf8831d539f5df39
Added to database: 08/10/2026, 15:39:48 UTC
Last enriched: 08/10/2026, 15:44:25 UTC
Last updated: 08/10/2026, 22:51:04 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.