CVE-2026-99665
publishedmm/khugepaged: preserve dirty bits when collapsing PTE-mapped THPs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux27e1f8273113adec0e98bf513e4091636b27cc2a to < 6c464f31f20de4a402361b47aa1ed03c1c751ea7 · 27e1f8273113adec0e98bf513e4091636b27cc2a to < 6f27bc4072cd1b4c451056244595bf8d28185fd7 · 27e1f8273113adec0e98bf513e4091636b27cc2a to < 3e5e2c190539f360f48a98301f5ba3a0946ca093 · 27e1f8273113adec0e98bf513e4091636b27cc2a to < 0af947ae4d91af0c6e9573220a1298cd8302b6c3 · 27e1f8273113adec0e98bf513e4091636b27cc2a to < 1f54708f40b8dea6951426ca567fc96160693388 · 27e1f8273113adec0e98bf513e4091636b27cc2a to < fe2817e3d5ea347214342c9a5cd8bcbff20c0574 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.4 (affected) · 0 to < 5.4 (unaffected · semver) · 5.10.276 through 5.10.* (unaffected · semver) · 5.15.227 through 5.15.* (unaffected · semver) · 6.12.120 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.5 through 7.3.* (unaffected · semver) · 7.4-rc2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Show 12 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Description
In the Linux kernel, the following vulnerability has been resolved: mm/khugepaged: preserve dirty bits when collapsing PTE-mapped THPs try_collapse_pte_mapped_thp() clears PTEs without transferring their dirty bits to the folio. A shmem read fault can map a clean folio writable, so a later store only dirties the PTE. Losing that dirty bit allows reclaim to discard modified data. The assumption that regular files are read-only is also obsolete since commit 1b6444331bebb ("mm/khugepaged: enable clean pagecache folio collapse for writable files"). In any case, transferring PTE dirty bits to the folio when removing mappings (and while the folio is still mapped) is the right thing to do. Use get_and_clear_ptes() to collect the dirty bits and mark the folio dirty before unmapping it. Update the comment. This was reproduced with shmem using MADV_COLLAPSE followed by MADV_PAGEOUT. Fix generated by an LLM and sent by Chris Mason in private. [ david: adjust comment; simplify description; cover file-thp as well ]
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 27e1f8273113adec0e98bf513e4091636b27cc2a to < 6c464f31f20de4a402361b47aa1ed03c1c751ea7 (affected · git)27e1f8273113adec0e98bf513e4091636b27cc2a to < 6f27bc4072cd1b4c451056244595bf8d28185fd7 (affected · git)27e1f8273113adec0e98bf513e4091636b27cc2a to < 3e5e2c190539f360f48a98301f5ba3a0946ca093 (affected · git)27e1f8273113adec0e98bf513e4091636b27cc2a to < 0af947ae4d91af0c6e9573220a1298cd8302b6c3 (affected · git)27e1f8273113adec0e98bf513e4091636b27cc2a to < 1f54708f40b8dea6951426ca567fc96160693388 (affected · git)27e1f8273113adec0e98bf513e4091636b27cc2a to < fe2817e3d5ea347214342c9a5cd8bcbff20c0574 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.4 (affected)0 to < 5.4 (unaffected · semver)5.10.276 through 5.10.* (unaffected · semver)5.15.227 through 5.15.* (unaffected · semver)6.12.120 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.5 through 7.3.* (unaffected · semver)7.4-rc2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
6- https://git.kernel.org/stable/c/0af947ae4d91af0c6e9573220a1298cd8302b6c3
- https://git.kernel.org/stable/c/1f54708f40b8dea6951426ca567fc96160693388
- https://git.kernel.org/stable/c/3e5e2c190539f360f48a98301f5ba3a0946ca093
- https://git.kernel.org/stable/c/6c464f31f20de4a402361b47aa1ed03c1c751ea7
- https://git.kernel.org/stable/c/6f27bc4072cd1b4c451056244595bf8d28185fd7
- https://git.kernel.org/stable/c/fe2817e3d5ea347214342c9a5cd8bcbff20c0574
Provider assertions
1Linux · cna
mm/khugepaged: preserve dirty bits when collapsing PTE-mapped THPs
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 34b8f771eeab11e1c47b6f006c9ea922c85a45588d41932845c374685d1feaa7
- Ingested
- 01 Dec 2026, 06:59:11 UTC
- Source record
- Official CVE record