CVE-2026-64514

userfaultfd: gate must_wait writability check on pte_present()

State
Published
Severity
Not scored
Published
Jul 25, 2026
Updated
Aug 17, 2026
Reserved
Jul 19, 2026

Read the record on cve.org

Description

In 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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 369cd2121be440543280b91056de187f625d0dbb to before a5700a4c1c9099ac2ac73fe8a09cf059972e0d2fAffected
  • 369cd2121be440543280b91056de187f625d0dbb to before d4026417e8184d13850a0bad4d96ceb6ed9f7152Affected
  • 369cd2121be440543280b91056de187f625d0dbb to before 29e6f952c5fb7dc1d6b90fe5b7f36063d44ddae0Affected
  • 369cd2121be440543280b91056de187f625d0dbb to before 5f4dbdb0a87596214076b20b94f2b71b522170b3Affected
  • 369cd2121be440543280b91056de187f625d0dbb to before a6e9a4939e359599701b1da351e84f72e021443aAffected
  • 369cd2121be440543280b91056de187f625d0dbb to before 60d696a037eeeedfb57756dfe7ec08a1587c8631Affected
  • 369cd2121be440543280b91056de187f625d0dbb to before 710183888174639a15fcec16cd1af766b8480bb7Affected
  • 369cd2121be440543280b91056de187f625d0dbb to before 8e80af52db652fbc41320eee45a4f73bc029faf2Affected
LinuxLinux
  • 4.11Affected
  • before 4.11Not affected
  • 5.10.261 through 5.10.*Not affected
  • 5.15.212 through 5.15.*Not affected
  • 6.1.178 through 6.1.*Not affected
  • 6.6.145 through 6.6.*Not affected
  • 6.12.96 through 6.12.*Not affected
  • 6.18.39 through 6.18.*Not affected
  • 7.1.4 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.