{"id":"CVE-2026-99731","summary":"mm/filemap: don't lose a folio lock wakeup to a signal","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/filemap: don't lose a folio lock wakeup to a signal\n\nAn exclusive waiter in folio_wait_bit_common() can leave the wait loop\nbecause of a fatal signal, then be woken by folio_unlock() before\nfinish_wait(). If the waker did not hand over the lock, the waiter returns\n-EINTR without trying to acquire it.\n\nfolio_wake_bit() stops after waking the first exclusive waiter, so this\nloses the wakeup and can leave other waiters asleep indefinitely on an\nunlocked folio.\n\nAfter finish_wait(), let a waiter woken without a lock handoff try once\nmore to acquire the lock. If successful, return success so the caller's\neventual unlock wakes the next waiter. Otherwise, the current lock owner\nwill do so.\n\nFix generated by an LLM and sent by Josef Bacik in private.\n\n[ david: clarify and simplify comment + description ]","modified":"2026-11-20T07:01:14.350318869Z","published":"2026-11-20T05:51:05.974Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99731.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/31cb998f208c078a6e9656b971bb311ea490ff1e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3ce549d0df658a36602f2d03882688af0ea03faf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8ccb6ded6a47b59b4907ed4f8c293cf8122de889"},{"type":"WEB","url":"https://git.kernel.org/stable/c/da815f785e568accf0d4f2ec36233d316d5035c8"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99731.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99731"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5ef64cc8987a9211d3f3667331ba3411a94ddc79"},{"fixed":"3ce549d0df658a36602f2d03882688af0ea03faf"},{"fixed":"da815f785e568accf0d4f2ec36233d316d5035c8"},{"fixed":"31cb998f208c078a6e9656b971bb311ea490ff1e"},{"fixed":"8ccb6ded6a47b59b4907ed4f8c293cf8122de889"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c404e1e19780d8977f67411a3b951a964c6361ae"}]}],"versions":["v7.3.4","v6.18.63","v6.12.117","v7.4-rc1","v7.3.3","v6.18.62","v6.12.116","v7.3","v7.3.2","v6.18.61","v6.12.115","v7.3.1","v6.18.60","v6.18.59","v6.12.114","v7.3-rc1","v7.3-rc7","v6.18.58","v7.3-rc5","v6.18.57","v6.12.113","v7.3-rc4","v7.3-rc3","v7.3-rc6","v6.18.56","v6.12.112","v7.3-rc2","v6.18.55","v6.18.54","v6.12.111","v7.2","v6.18.53","v6.18.52","v6.12.110","v6.18.51","v6.12.109","v6.18.50","v6.18.49","v6.12.108","v6.18.48","v6.12.107","v6.18.47","v6.12.106","v6.18.46","v6.12.105","v6.18.45","v6.12.104","v7.2-rc1","v7.2-rc5","v6.18.44","v6.12.103","v7.2-rc7","v7.2-rc2","v7.2-rc6","v7.2-rc3","v6.18.43","v6.12.102","v6.12.101","v6.18.42","v7.2-rc4","v6.18.41","v6.12.100","v6.18.40","v6.12.99","v6.12.98","v6.12.97","v6.18.39","v6.12.96","v6.18.38","v6.12.95","v6.18.37","v6.12.94","v6.18.36","v7.1","v7.1-rc1","v6.18.35","v6.12.93","v7.1-rc7","v7.1-rc6","v7.1-rc4","v7.1-rc3","v6.18.34","v6.12.92","v7.1-rc2","v7.1-rc5","v6.18.33","v6.12.91","v6.18.32","v6.12.90","v7.0","v6.18.31","v6.12.89","v6.18.30","v6.12.88","v6.18.29","v6.12.87","v6.18.28","v6.18.27","v6.12.86","v6.18.26","v6.12.85","v7.0-rc1","v6.12.84","v6.18.25","v6.18.24","v6.12.83","v6.18.23","v6.12.82","v6.18.22","v6.12.81","v7.0-rc5","v7.0-rc6","v6.18.21","v6.12.80","v7.0-rc7","v7.0-rc3","v7.0-rc4","v6.19-rc2","v6.18.20","v6.12.79","v7.0-rc2","v6.19","v6.12.78","v6.18.19","v6.12.77","v6.18.18","v6.18.17","v6.12.76","v6.18.16","v6.12.75","v6.18.15","v6.12.74","v6.18.14","v6.18.13","v6.18.12","v6.12.73","v6.18.11","v6.12.72","v6.18.10","v6.12.71","v6.12.70","v6.18.9","v6.12.69","v6.19-rc8","v6.19-rc1","v6.19-rc6","v6.18.8","v6.12.68","v6.19-rc7","v6.19-rc5","v6.19-rc4","v6.18.7","v6.12.67","v6.19-rc3","v6.18.6","v6.12.66","v6.18.5","v6.12.65","v6.18.4","v6.12.64","v6.18.3","v6.12.63","v6.18.2","v6.18.1","v6.12.62","v6.18","v6.12.61","v6.18-rc1","v6.12.60","v6.18-rc7","v6.18-rc3","v6.12.59","v6.18-rc5","v6.18-rc6","v6.18-rc2","v6.12.58","v6.18-rc4","v6.12.57","v6.12.56","v6.12.55","v6.12.54","v6.12.53","v6.12.52","v6.12.51","v6.17","v6.17-rc7","v6.12.50","v6.17-rc1","v6.17-rc2","v6.12.49","v6.17-rc6","v6.17-rc4","v6.17-rc5","v6.17-rc3","v6.16","v6.12.48","v6.12.47","v6.12.46","v6.12.45","v6.12.44","v6.12.43","v6.12.42","v6.12.41","v6.16-rc6","v6.12.40","v6.16-rc1","v6.16-rc4","v6.16-rc2","v6.16-rc5","v6.16-rc7","v6.16-rc3","v6.12.39","v6.14-rc3","v6.12.38","v6.12.37","v6.12.36","v6.12.35","v6.12.34","v6.12.33","v6.15","v6.12.32","v6.15-rc1","v6.15-rc6","v6.15-rc3","v6.12.31","v6.12.30","v6.15-rc2","v6.15-rc7","v6.15-rc4","v6.12.29","v6.12.28","v6.15-rc5","v6.12.27","v6.12.26","v6.14","v6.12.25","v6.12.24","v6.12.23","v6.12.22","v6.12.21","v6.14-rc1","v6.14-rc7","v6.14-rc6","v6.12.20","v6.14-rc4","v6.14-rc5","v6.12.19","v6.14-rc2","v6.12.18","v6.12.17","v6.12.16","v6.12.15","v6.13","v6.12.14","v6.13-rc1","v6.12.13","v6.12.12","v6.12.11","v6.13-rc6","v6.12.10","v6.13-rc7","v6.13-rc2","v6.12.9","v6.13-rc5","v6.13-rc3","v6.12.8","v6.12-rc1","v6.13-rc4","v6.12.7","v6.12.6","v6.12.5","v6.12.4","v6.12","v6.12.3","v6.12.2","v6.12.1","v6.12-rc7","v6.12-rc3","v6.12-rc4","v6.12-rc6","v6.12-rc5","v6.12-rc2","v6.11-rc1","v6.11-rc5","v6.11","v6.11-rc7","v6.10-rc1","v6.11-rc6","v6.11-rc3","v6.11-rc4","v6.11-rc2","v6.10","v6.10-rc6","v6.10-rc7","v6.10-rc3","v6.9-rc1","v6.10-rc5","v6.10-rc2","v6.10-rc4","v6.9","v6.9-rc6","v6.9-rc7","v6.9-rc5","v6.9-rc3","v6.9-rc2","v6.8","v6.9-rc4","v6.8-rc1","v6.7-rc1","v6.8-rc7","v6.8-rc6","v6.8-rc5","v6.8-rc4","v6.8-rc3","v6.8-rc2","v6.7","v6.7-rc3","v6.7-rc8","v6.7-rc7","v6.7-rc6","v6.7-rc2","v6.7-rc4","v6.7-rc5","v6.6","v6.6-rc1","v6.6-rc5","v6.6-rc3","v6.6-rc7","v6.6-rc6","v6.6-rc4","v6.6-rc2","v6.5","v6.5-rc1","v6.5-rc2","v6.5-rc7","v6.5-rc4","v6.5-rc3","v6.5-rc6","v6.5-rc5","v6.4","v6.4-rc7","v6.4-rc1","v6.4-rc6","v6.4-rc5","v6.4-rc3","v6.4-rc4","v6.4-rc2","v6.3","v6.3-rc1","v6.3-rc7","v6.3-rc2","v6.3-rc3","v6.3-rc5","v6.3-rc6","v6.3-rc4","v6.2-rc6","v6.2-rc1","v6.2","v6.2-rc2","v6.2-rc8","v6.2-rc5","v6.2-rc4","v6.2-rc7","v6.2-rc3","v6.1-rc1","v6.1","v6.1-rc8","v6.1-rc3","v6.1-rc6","v6.1-rc7","v6.1-rc4","v6.1-rc2","v6.1-rc5","v6.0-rc1","v6.0","v6.0-rc7","v6.0-rc3","v6.0-rc2","v6.0-rc6","v6.0-rc4","v6.0-rc5","v5.19","v5.19-rc1","v5.19-rc5","v5.19-rc8","v5.19-rc6","v5.18","v5.19-rc2","v5.19-rc7","v5.19-rc3","v5.19-rc4","v5.18-rc1","v5.18-rc7","v5.18-rc2","v5.18-rc5","v5.17","v5.18-rc4","v5.18-rc3","v5.18-rc6","v5.17-rc6","v5.17-rc4","v5.17-rc8","v5.17-rc7","v5.17-rc1","v5.17-rc3","v5.17-rc2","v5.17-rc5","v5.16","v5.16-rc1","v5.16-rc8","v5.16-rc5","v5.16-rc6","v5.16-rc7","v5.16-rc3","v5.16-rc2","v5.16-rc4","v5.15","v5.15-rc2","v5.15-rc1","v5.15-rc4","v5.15-rc7","v5.15-rc3","v5.15-rc5","v5.15-rc6","v5.14","v5.14-rc3","v5.14-rc1","v5.14-rc2","v5.14-rc7","v5.14-rc6","v5.13-rc1","v5.14-rc5","v5.14-rc4","v5.13","v5.13-rc6","v5.13-rc7","v5.13-rc3","v5.13-rc2","v5.13-rc4","v5.13-rc5","v5.12","v5.12-rc2","v5.12-rc1-dontuse","v5.12-rc1","v5.12-rc8","v5.12-rc3","v5.12-rc7","v5.12-rc5","v5.12-rc6","v5.12-rc4","v5.10","v5.11","v5.11-rc3","v5.11-rc7","v5.11-rc6","v5.11-rc5","v5.11-rc1","v5.11-rc4","v5.11-rc2","v5.10-rc1","v5.10-rc7","v5.10-rc4","v5.10-rc3","v5.10-rc6","v5.9","v5.10-rc2","v5.10-rc5","v5.9-rc7","v5.9-rc8","v5.9-rc6","v5.4.302","v5.4.301","v5.4.300","v5.4.299","v5.4.298","v5.4.297","v5.4.296","v5.4.295","v5.4.294","v5.4.293","v5.4.292","v5.4.291","v5.4.290","v5.4.289","v5.4.288","v5.4.287","v5.4.286","v5.4.285","v5.4.284","v5.4.283","v5.4.282","v5.4.281","v5.4.280","v5.4.279","v5.4.278","v5.4.277","v5.4.276","v5.4.275","v5.4.274","v5.4.273","v5.4.272","v5.4.271","v5.4.270","v5.4.269","v5.4.268","v5.4.267","v5.4.266","v5.4.265","v5.4.264","v5.4.263","v5.4.262","v5.4.261","v5.4.260","v5.4.259","v5.4.258","v5.4.257","v5.4.256","v5.4.255"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99731.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.4.255"},{"fixed":"5.5"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.9.0"},{"fixed":"6.12.118"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99731.json"}}],"schema_version":"1.9.2"}