{"id":"CVE-2026-143103","summary":"arm64: hugetlb: Prevent write fault livelocks on stale TLB entries","details":"In the Linux kernel, the following vulnerability has been resolved:\n\narm64: hugetlb: Prevent write fault livelocks on stale TLB entries\n\nIn Meta production, we have had tasks get stuck in a fault loop while\nusing hugetlb on arm64. During my investigations I found that affected\ntasks share a private hugetlb page.\n\nLooking at the stuck task states, I found the following ordering:\n\n  CPU0                                 CPU1\n  ----                                 ----\n  read page\n  [read only entry cached in TLB]\n                                       write page\n                                       hugetlb_fault()\n                                         hugetlb_wp()\n                                         [reuse folio]\n                                         set_huge_ptep_maybe_writable()\n                                           set_huge_ptep_writable()\n                                         [flush local TLB only]\n\n  write page using stale entry\n  hugetlb_fault()\n    huge_ptep_set_access_flags()\n    [entry already writable, no flush]\n  retry write using stale entry\n  [fault indefinitely. well, that's not ideal!]\n\nThe reason is that when a write fault makes a non-contiguous hugetlb\nentry writable, it only invalidates the local TLB. However, another CPU\ncan keep the old read-only entry, so its write will fault even though\nthe page table already permits it. hugetlb_fault() then finds nothing to\nchange and leaves the stale entry in place, so the same write keeps\ngoing round in circles.\n\nThis is particularly bad because, if the kernel is copying to user\nmemory, the retry stays inside the kernel and the task can't act on the\npending signal.\n\nIt can even remain unkillable while holding locks across the copy,\nresulting in further failures. For example, a read into a hugetlb\nbuffer can hold the pipe mutex and block other users of the pipe until\nthe loop ends, causing cascading lockups across the machine.\n\nTo fix this, when a write fault finds nothing to change in a\nnon-contiguous hugetlb entry, let's invalidate the local entry.","modified":"2026-12-03T11:00:27.728499753Z","published":"2026-12-03T09:19:21.194Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143103.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3c47ec82540ce89a6fdfd5e0e6d79f35892adfa4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c397b00947566278202a26983497acdf3d9416d2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143103.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143103"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"cb1fa2e999558fd93b519f7c4c16e75e805af1e6"},{"fixed":"c397b00947566278202a26983497acdf3d9416d2"},{"fixed":"3c47ec82540ce89a6fdfd5e0e6d79f35892adfa4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143103.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143103.json"}}],"schema_version":"1.9.2"}