{"id":"CVE-2023-52609","aliases":["CVE-2023-52609"],"related":[],"kind":"vulnerability","state":"published","title":"binder: fix race between mmput() and do_exit()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbinder: fix race between mmput() and do_exit()\n\nTask A calls binder_update_page_range() to allocate and insert pages on\na remote address space from Task B. For this, Task A pins the remote mm\nvia mmget_not_zero() first. This can race with Task B do_exit() and the\nfinal mmput() refcount decrement will come from Task A.\n\n  Task A            | Task B\n  ------------------+------------------\n  mmget_not_zero()  |\n                    |  do_exit()\n                    |    exit_mm()\n                    |      mmput()\n  mmput()           |\n    exit_mmap()     |\n      remove_vma()  |\n        fput()      |\n\nIn this case, the work of ____fput() from Task B is queued up in Task A\nas TWA_RESUME. So in theory, Task A returns to userspace and the cleanup\nwork gets executed. However, Task A instead sleep, waiting for a reply\nfrom Task B that never comes (it's dead).\n\nThis means the binder_deferred_release() is blocked until an unrelated\nbinder event forces Task A to go back to userspace. All the associated\ndeath notifications will also be delayed until then.\n\nIn order to fix this use mmput_async() that will schedule the work in\nthe corresponding mm->async_put_work WQ instead of Task A.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbinder: fix race between mmput() and do_exit()\n\nTask A calls binder_update_page_range() to allocate and insert pages on\na remote address space from Task B. For this, Task A pins the remote mm\nvia mmget_not_zero() first. This can race with Task B do_exit() and the\nfinal mmput() refcount decrement will come from Task A.\n\n  Task A            | Task B\n  ------------------+------------------\n  mmget_not_zero()  |\n                    |  do_exit()\n                    |    exit_mm()\n                    |      mmput()\n  mmput()           |\n    exit_mmap()     |\n      remove_vma()  |\n        fput()      |\n\nIn this case, the work of ____fput() from Task B is queued up in Task A\nas TWA_RESUME. So in theory, Task A returns to userspace and the cleanup\nwork gets executed. However, Task A instead sleep, waiting for a reply\nfrom Task B that never comes (it's dead).\n\nThis means the binder_deferred_release() is blocked until an unrelated\nbinder event forces Task A to go back to userspace. All the associated\ndeath notifications will also be delayed until then.\n\nIn order to fix this use mmput_async() that will schedule the work in\nthe corresponding mm->async_put_work WQ instead of Task A.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: binder: corrige la ejecución entre mmput() y do_exit() La tarea A llama a binder_update_page_range() para asignar e insertar páginas en un espacio de direcciones remoto desde la tarea B. Para esto, la tarea A fija el mm remoto a través de mmget_not_zero() primero. Esto puede competir con la Tarea B do_exit() y la disminución final del recuento de mmput() provendrá de la Tarea A. Tarea A | Tarea B ------------------+------------------ mmget_not_zero() | | hacer_salir() | salida_mm() | mmput() mmput() | salida_mmap() | eliminar_vma() | salida() | En este caso, el trabajo de ____fput() de la Tarea B se pone en cola en la Tarea A como TWA_RESUME. Entonces, en teoría, la Tarea A regresa al espacio de usuario y se ejecuta el trabajo de limpieza. Sin embargo, la Tarea A duerme, esperando una respuesta de la Tarea B que nunca llega (está muerta). Esto significa que binder_deferred_release() está bloqueado hasta que un evento de carpeta no relacionado obligue a la Tarea A a regresar al espacio de usuario. Todas las notificaciones de defunción asociadas también se retrasarán hasta entonces. Para solucionar este problema, utilice mmput_async() que programará el trabajo en el mm-&gt;async_put_work WQ correspondiente en lugar de la Tarea A.","source":"nvd"}],"published":"2024-03-18T10:07:45.486Z","modified":"2026-06-17T06:43:09.087Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"type":"git","introduced":"457b9a6f09f011ebcb9b52cc203a6331a6fc2de7","fixed":"95b1d336b0642198b56836b89908d07b9a0c9608","status":"affected"},{"type":"git","introduced":"457b9a6f09f011ebcb9b52cc203a6331a6fc2de7","fixed":"252a2a5569eb9f8d16428872cc24dea1ac0bb097","status":"affected"},{"type":"git","introduced":"457b9a6f09f011ebcb9b52cc203a6331a6fc2de7","fixed":"7e7a0d86542b0ea903006d3f42f33c4f7ead6918","status":"affected"},{"type":"git","introduced":"457b9a6f09f011ebcb9b52cc203a6331a6fc2de7","fixed":"98fee5bee97ad47b527a997d5786410430d1f0e9","status":"affected"},{"type":"git","introduced":"457b9a6f09f011ebcb9b52cc203a6331a6fc2de7","fixed":"6696f76c32ff67fec26823fc2df46498e70d9bf3","status":"affected"},{"type":"git","introduced":"457b9a6f09f011ebcb9b52cc203a6331a6fc2de7","fixed":"67f16bf2cc1698fd50e01ee8a2becc5a8e6d3a3e","status":"affected"},{"type":"git","introduced":"457b9a6f09f011ebcb9b52cc203a6331a6fc2de7","fixed":"77d210e8db4d61d43b2d16df66b1ec46fad2ee01","status":"affected"},{"type":"git","introduced":"457b9a6f09f011ebcb9b52cc203a6331a6fc2de7","fixed":"9a9ab0d963621d9d12199df9817e66982582d5a5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.29","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.29","status":"unaffected"},{"type":"semver","introduced":"4.19.306","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.268","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.209","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.148","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.75","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.14","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.7.2","lastAffected":"6.7.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.8","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.29","fixed":"4.19.306"},{"status":"affected","introduced":"4.20","fixed":"5.4.268"},{"status":"affected","introduced":"5.5","fixed":"5.10.209"},{"status":"affected","introduced":"5.11","fixed":"5.15.148"},{"status":"affected","introduced":"5.16","fixed":"6.1.75"},{"status":"affected","introduced":"6.2","fixed":"6.6.14"},{"status":"affected","introduced":"6.7","fixed":"6.7.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/95b1d336b0642198b56836b89908d07b9a0c9608","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/252a2a5569eb9f8d16428872cc24dea1ac0bb097","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7e7a0d86542b0ea903006d3f42f33c4f7ead6918","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/98fee5bee97ad47b527a997d5786410430d1f0e9","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6696f76c32ff67fec26823fc2df46498e70d9bf3","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/67f16bf2cc1698fd50e01ee8a2becc5a8e6d3a3e","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/77d210e8db4d61d43b2d16df66b1ec46fad2ee01","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9a9ab0d963621d9d12199df9817e66982582d5a5","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00016.html","tags":["mailing-list","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","tags":["mailing-list","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-03-18T14:26:58.041Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-52609","url":"https://www.cve.org/CVERecord?id=CVE-2023-52609","licence":"CVE Terms of Use","modified":"2026-05-11T19:30:17.511Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-52609","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52609","licence":"Public domain","modified":"2026-06-17T06:43:09.087Z"}],"updatedAt":"2026-11-25T22:58:33.352Z","epss":{"score":0.00185,"percentile":0.08523,"date":"2026-12-01T12:00:22.000Z"}}