userfaultfd: gate must_wait writability check on pte_present()

Summary

CVECVE-2026-64514
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-07-25 10:17:37 UTC
Updated2026-07-25 10:17:37 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: userfaultfd: gate must_wait writability check on pte_present() userfaultfd_must_wait() and userfaultfd_huge_must_wait() read the PTE without taking the page table lock and then apply pte_write() / huge_pte_write() to it. Those accessors decode bits from the present encoding only; on a swap or migration entry they read the offset bits that happen to share the same position and return an undefined result. The intent of the check is "is this fault still WP-blocked?". A non-marker swap entry means the page is in transit -- the userfault context the original fault delivered against is no longer the same, and the swap-in or migration completion path will re-deliver a fresh fault if userspace still needs to handle it. Worst case under the current code the garbage write bit says "wait", and the thread stays asleep until a UFFDIO_WAKE that may never arrive. Gate the writability check on pte_present() so the lockless re-check only inspects present-PTE bits when the entry is actually present. The non-present, non-marker case returns "don't wait" and lets the fault path retry.

Risk And Classification

EPSS: 0.002200000 probability, percentile 0.125950000 (date 2026-07-25)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 369cd2121be440543280b91056de187f625d0dbb a5700a4c1c9099ac2ac73fe8a09cf059972e0d2f git Not specified
CNA Linux Linux affected 369cd2121be440543280b91056de187f625d0dbb d4026417e8184d13850a0bad4d96ceb6ed9f7152 git Not specified
CNA Linux Linux affected 369cd2121be440543280b91056de187f625d0dbb 29e6f952c5fb7dc1d6b90fe5b7f36063d44ddae0 git Not specified
CNA Linux Linux affected 369cd2121be440543280b91056de187f625d0dbb 5f4dbdb0a87596214076b20b94f2b71b522170b3 git Not specified
CNA Linux Linux affected 369cd2121be440543280b91056de187f625d0dbb a6e9a4939e359599701b1da351e84f72e021443a git Not specified
CNA Linux Linux affected 369cd2121be440543280b91056de187f625d0dbb 60d696a037eeeedfb57756dfe7ec08a1587c8631 git Not specified
CNA Linux Linux affected 369cd2121be440543280b91056de187f625d0dbb 710183888174639a15fcec16cd1af766b8480bb7 git Not specified
CNA Linux Linux affected 369cd2121be440543280b91056de187f625d0dbb 8e80af52db652fbc41320eee45a4f73bc029faf2 git Not specified
CNA Linux Linux affected 4.11 Not specified
CNA Linux Linux unaffected 4.11 semver Not specified
CNA Linux Linux unaffected 5.10.261 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.212 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.178 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.145 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.96 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.39 6.18.* semver Not specified
CNA Linux Linux unaffected 7.1.4 7.1.* semver Not specified
CNA Linux Linux unaffected 7.2-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/710183888174639a15fcec16cd1af766b8480bb7 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d4026417e8184d13850a0bad4d96ceb6ed9f7152 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/29e6f952c5fb7dc1d6b90fe5b7f36063d44ddae0 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a6e9a4939e359599701b1da351e84f72e021443a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/8e80af52db652fbc41320eee45a4f73bc029faf2 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a5700a4c1c9099ac2ac73fe8a09cf059972e0d2f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/5f4dbdb0a87596214076b20b94f2b71b522170b3 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/60d696a037eeeedfb57756dfe7ec08a1587c8631 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report