CVE-2023-52609: binder: fix race between mmput() and do_exit()

Published Mar 18, 2024
·
Updated

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

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

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

Task A | Task B ------------------+------------------ mmgetnotzero() | | doexit() | exitmm() | mmput() mmput() | exitmmap() | removevma() | fput() |

In this case, the work of fput() from Task B is queued up in Task A as TWARESUME. 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 binderdeferredrelease() 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 mmputasync() that will schedule the work in the corresponding mm->asyncputwork WQ instead of Task A.

Affected Software

9 affected componentsFixes available
Linux Linux kernel>=2.6.29<4.19.306
Linux Linux kernel>=4.20<5.4.268
Linux Linux kernel>=5.5<5.10.209
Linux Linux kernel>=5.11<5.15.148
Linux Linux kernel>=5.16<6.1.75
Linux Linux kernel>=6.2<6.6.14
Linux Linux kernel>=6.7<6.7.2
Debian Debian Linux=10.0
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1

Event History

Mar 18, 2024
CVE Published
via MITRE·10:07 AM
Data Sourced
via MITRE·10:07 AM
Description
Apr 9, 2024
Data Sourced
via Launchpad·02:37 PM
Description
Apr 29, 2025
Data Sourced
via Ubuntu·05:36 AM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-52609?

CVE-2023-52609 is classified as a medium severity vulnerability affecting the Linux kernel.

2

How do I fix CVE-2023-52609?

To remediate CVE-2023-52609, update your Linux kernel to versions 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.119-1, 6.12.11-1, or 6.12.12-1.

3

Is my system affected by CVE-2023-52609?

If you are running an affected version of the Linux kernel listed in the vulnerability, then your system is at risk for CVE-2023-52609.

4

What type of vulnerability is CVE-2023-52609?

CVE-2023-52609 is a race condition vulnerability related to memory management in the Linux kernel.

5

When was CVE-2023-52609 discovered?

CVE-2023-52609 was discovered and reported in 2023.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203