{"id":"CVE-2026-99728","summary":"mm/huge_memory: fix list corruption when deferred_split_scan() races with deferred_split_folio()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/huge_memory: fix list corruption when deferred_split_scan() races with deferred_split_folio()\n\nSince the deferred split queue became a list_lru, the isolate callback\nmoves the folios it took a reference on to an on-stack list, linked\nthrough folio-\u003e_deferred_list, and deferred_split_scan() takes them off\nthat list with list_del_init() without holding the list_lru lock.\n\ndeferred_split_folio() does not know about the on-stack list. It only\nholds the list_lru lock when it looks at the same list_head, and it can\nrun for such a folio: a THP is queued when it is mapped, as a candidate\nfor the underused check, and is queued \"again\" when a part of it gets\nunmapped:\n\n  CPU0 deferred_split_scan()          CPU1 deferred_split_folio()\n  list_del_init(&folio-\u003e_deferred_list)\n    next-\u003eprev = prev\n    prev-\u003enext = next\n    entry-\u003enext = entry\n                                      list_lru_lock_irqsave()\n                                      folio_set_partially_mapped()\n                                      __list_lru_add()\n                                        list_empty(item)  -\u003e true\n                                        list_add_tail(item, &l-\u003elist)\n                                          item-\u003enext = &l-\u003elist\n                                          item-\u003eprev = tail\n    entry-\u003eprev = entry\n\nThe folio now sits on the list_lru with -\u003eprev pointing to itself. The\nnext removal leaves the neighbours pointing to it, and they still do so\nafter the folio has been freed. With CONFIG_DEBUG_LIST:\n\n  list_del corruption. prev-\u003enext should be ffd4000000270090, but was\n  ffd4000000278090. (prev=ffd4000000270090)\n\nFix it by grabbing the lock around list_del_init() so\ndeferred_split_folio() cannot race with it.","modified":"2026-11-20T07:01:12.797102667Z","published":"2026-11-20T05:51:03.661Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99728.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/877a9fbabf760714f510f36b310a986c4be2c2d8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f09171b67ea06a7fe425db33e8b74a92de1426b9"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99728.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99728"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67"},{"fixed":"877a9fbabf760714f510f36b310a986c4be2c2d8"},{"fixed":"f09171b67ea06a7fe425db33e8b74a92de1426b9"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99728.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.2.0"},{"fixed":"7.3.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99728.json"}}],"schema_version":"1.9.2"}