CVE-2023-52609

MediumCVSS 4.7/10Last modified Jun 17, 2026

Description

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

binder: fix race between mmput() and do_exit()

Task A calls binder_update_page_range() to allocate and insert pages on a remote address space from Task B. For this, Task A pins the remote mm via mmget_not_zero() first. This can race with Task B do_exit() and the final mmput() refcount decrement will come from Task A.

Task A | Task B ------------------+------------------ mmget_not_zero() | | do_exit() | exit_mm() | mmput() mmput() | exit_mmap() | remove_vma() | fput() |

In this case, the work of ____fput() from Task B is queued up in Task A as TWA_RESUME. So in theory, Task A returns to userspace and the cleanup work gets executed. However, Task A instead sleep, waiting for a reply from Task B that never comes (it's dead).

This means the binder_deferred_release() is blocked until an unrelated binder event forces Task A to go back to userspace. All the associated death notifications will also be delayed until then.

In order to fix this use mmput_async() that will schedule the work in the corresponding mm->async_put_work WQ instead of Task A.

Metrics

CVSS 3.1 4.7/10CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Weakness enumeration

Affected software

VendorProductVersions
LinuxLinux>= 457b9a6f09f011ebcb9b52cc203a6331a6fc2de7, < 95b1d336b0642198b56836b89908d07b9a0c9608; >= 457b9a6f09f011ebcb9b52cc203a6331a6fc2de7, < 252a2a5569eb9f8d16428872cc24dea1ac0bb097; >= 457b9a6f09f011ebcb9b52cc203a6331a6fc2de7, < 7e7a0d86542b0ea903006d3f42f33c4f7ead6918; >= 457b9a6f09f011ebcb9b52cc203a6331a6fc2de7, < 98fee5bee97ad47b527a997d5786410430d1f0e9; >= 457b9a6f09f011ebcb9b52cc203a6331a6fc2de7, < 6696f76c32ff67fec26823fc2df46498e70d9bf3; >= 457b9a6f09f011ebcb9b52cc203a6331a6fc2de7, < 67f16bf2cc1698fd50e01ee8a2becc5a8e6d3a3e; >= 457b9a6f09f011ebcb9b52cc203a6331a6fc2de7, < 77d210e8db4d61d43b2d16df66b1ec46fad2ee01; >= 457b9a6f09f011ebcb9b52cc203a6331a6fc2de7, < 9a9ab0d963621d9d12199df9817e66982582d5a5
LinuxLinux2.6.29

References

Timeline

Published
Mar 18, 2024
Last modified
Jun 17, 2026
NVD status
Analyzed

Related CVEs from 2023

CVE-2023-52619.8A vulnerability, which was classified as critical, was found in Tongda OA 2017. Affected is an unknown function of the file general/hr/managCVE-2023-526105.5In the Linux kernel, the following vulnerability has been resolved: net/sched: act_ct: fix skb leak and crash on ooo frags act_ct adds skbCVE-2023-526115.5In the Linux kernel, the following vulnerability has been resolved: wifi: rtw88: sdio: Honor the host max_req_size in the RX path Lukas reCVE-2023-526127.8In the Linux kernel, the following vulnerability has been resolved: crypto: scomp - fix req->dst buffer overflow The req->dst buffer size CVE-2023-526135.5In the Linux kernel, the following vulnerability has been resolved: drivers/thermal/loongson2_thermal: Fix incorrect PTR_ERR() judgment PTCVE-2023-526147.8In the Linux kernel, the following vulnerability has been resolved: PM / devfreq: Fix buffer overflow in trans_stat_show Fix buffer overflCVE-2023-526155.5In the Linux kernel, the following vulnerability has been resolved: hwrng: core - Fix page fault dead lock on mmap-ed hwrng There is a deaCVE-2023-526165.5In the Linux kernel, the following vulnerability has been resolved: crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_init When thCVE-2023-526174.4In the Linux kernel, the following vulnerability has been resolved: PCI: switchtec: Fix stdev_release() crash after surprise hot remove A CVE-2023-526185.3In the Linux kernel, the following vulnerability has been resolved: block/rnbd-srv: Check for unlikely string overflow Since "dev_search_pCVE-2023-526195.5In the Linux kernel, the following vulnerability has been resolved: pstore/ram: Fix crash when setting number of cpus to an odd number WheCVE-2023-52628.8A vulnerability has been found in OpenRapid RapidCMS 1.3.1 and classified as critical. Affected by this vulnerability is the function isImg
CVE-2023-52609: Medium severity, CVSS 4.7 | Vulnix