GHSA-PVWX-3VW8-CWG6

Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32
VLAI
Details

In the Linux kernel, the following vulnerability has been resolved:

userfaultfd: fix UFFDIO_MOVE livelock on large folio with extra references

To move one page out of a large folio, move_pages_ptes() first has to split the folio. __folio_split() refuses if the folio has any reference beyond its page table mappings and the caller's own, and it reports the refusal as -EAGAIN. move_pages() treats returned -EAGAIN as a transient race and keeps retrying the same address, holding the VMA read locks the whole time. This is incorrect since in some cases userspace can hold such a reference indefinitely, such as by registering the page as an io_uring buffer.

An unprivileged user can trigger this with three threads: first holds such a reference on a page of a THP, second calls UFFDIO_MOVE on another page of the same THP and spins in the kernel forever holding the VMA read locks, and third calls fork() or mprotect(), which takes mmap_lock for writing and then waits forever for those read locks. From then on every mmap_lock user of that mm hangs, including other processes inspecting it through /proc//, until the process is SIGKILLed. The hung task detector reports the blocked tasks (third one), and with kernel.hung_task_panic=1 the machine panics:

INFO: task wedge:95 blocked for more than 122 seconds. task:wedge state:D stack:12528 pid:95 tgid:95 ppid:94 Call Trace: __schedule+0x596/0x1110 schedule+0x36/0xf0 __vma_start_exclude_readers+0x100/0x170 __vma_start_write+0x51/0xd0 __split_vma+0x208/0x3d0 vma_modify+0x6a8/0x840 vma_modify_flags+0xce/0x110 mprotect_fixup+0xbe/0x480 do_mprotect_pkey+0x2d9/0x580 __x64_sys_mprotect+0x1a/0x30

Fix by returning -EBUSY instead of -EAGAIN in move_pages_ptes(), the caller of split_folio(), when the split fails. Thus, move_pages() does not retry -EBUSY and the ioctl drops its locks and returns to userspace instead of spinning.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-99919"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:20:28Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nuserfaultfd: fix UFFDIO_MOVE livelock on large folio with extra references\n\nTo move one page out of a large folio, move_pages_ptes() first has to\nsplit the folio.  __folio_split() refuses if the folio has any reference\nbeyond its page table mappings and the caller\u0027s own, and it reports the\nrefusal as -EAGAIN.  move_pages() treats returned -EAGAIN as a transient\nrace and keeps retrying the same address, holding the VMA read locks the\nwhole time.  This is incorrect since in some cases userspace can hold such\na reference indefinitely, such as by registering the page as an io_uring\nbuffer.\n\nAn unprivileged user can trigger this with three threads: first holds such\na reference on a page of a THP, second calls UFFDIO_MOVE on another page\nof the same THP and spins in the kernel forever holding the VMA read\nlocks, and third calls fork() or mprotect(), which takes mmap_lock for\nwriting and then waits forever for those read locks.  From then on every\nmmap_lock user of that mm hangs, including other processes inspecting it\nthrough /proc/\u003cpid\u003e/, until the process is SIGKILLed.  The hung task\ndetector reports the blocked tasks (third one), and with\nkernel.hung_task_panic=1 the machine panics:\n\n  INFO: task wedge:95 blocked for more than 122 seconds.\n  task:wedge  state:D stack:12528 pid:95 tgid:95 ppid:94\n  Call Trace:\n   __schedule+0x596/0x1110\n   schedule+0x36/0xf0\n   __vma_start_exclude_readers+0x100/0x170\n   __vma_start_write+0x51/0xd0\n   __split_vma+0x208/0x3d0\n   vma_modify+0x6a8/0x840\n   vma_modify_flags+0xce/0x110\n   mprotect_fixup+0xbe/0x480\n   do_mprotect_pkey+0x2d9/0x580\n   __x64_sys_mprotect+0x1a/0x30\n\nFix by returning -EBUSY instead of -EAGAIN in move_pages_ptes(), the\ncaller of split_folio(), when the split fails.  Thus, move_pages() does\nnot retry -EBUSY and the ioctl drops its locks and returns to userspace\ninstead of spinning.",
  "id": "GHSA-pvwx-3vw8-cwg6",
  "modified": "2026-11-30T15:32:49Z",
  "published": "2026-11-30T15:32:49Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99919"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/285b62e0b489ffb54f9d501da48ccb3020a99351"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/454143aeb4c6c85ca7d50df36d1a66a64d88283e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/87f6bb4b82ac4334ff4b5ff0becff9690fe39911"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f6ebda09bdc3b88ca370e37e2df2163de1bf7530"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.