CVE-2021-39686: Race Condition

Published Mar 1, 2022
·
Updated

In several functions of binder.c, there is a possible way to represent the wrong domain to SELinux due to a race condition. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.

Affected Software

100 affected componentsFixes available
Google Android
Google Android
ubuntu/linux*
ubuntu/linux-aws*
ubuntu/linux-azure*
ubuntu/linux-lts-xenial*
ubuntu/linux-aws-hwe*
ubuntu/linux-azure*
ubuntu/linux-gcp*
ubuntu/linux-hwe*
ubuntu/linux-hwe-edge*
ubuntu/linux-kvm*
ubuntu/linux-oracle*
ubuntu/linux-fips*
ubuntu/linux-fips*
ubuntu/linux-aws-5.4<5.4.0-1066.69~18.04.1
5.4.0-1066.69~18.04.1
ubuntu/linux-azure-5.4<5.4.0-1070.73~18.04.1
5.4.0-1070.73~18.04.1
ubuntu/linux-gcp-5.4<5.4.0-1065.69~18.04.1
5.4.0-1065.69~18.04.1
ubuntu/linux-gke-5.4<5.4.0-1063.66~18.04.1
5.4.0-1063.66~18.04.1
ubuntu/linux-gkeop-5.4<5.4.0-1034.35~18.04.1
5.4.0-1034.35~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-100.113~18.04.1
5.4.0-100.113~18.04.1
ubuntu/linux-ibm-5.4<5.4.0-1015.16~18.04.1
5.4.0-1015.16~18.04.1
ubuntu/linux-oracle-5.4<5.4.0-1064.68~18.04.1
5.4.0-1064.68~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1053.60~18.04.1
5.4.0-1053.60~18.04.1
ubuntu/linux*
ubuntu/linux-aws*
ubuntu/linux-aws-5.0*
ubuntu/linux-aws-5.3*
ubuntu/linux-azure*
ubuntu/linux-azure-4.15*
ubuntu/linux-azure-5.3*
ubuntu/linux-azure-edge*
ubuntu/linux-gcp*
ubuntu/linux-gcp-4.15*
ubuntu/linux-gcp-5.3*
ubuntu/linux-gke-4.15*
ubuntu/linux-hwe*
ubuntu/linux-hwe-edge*
ubuntu/linux-kvm*
ubuntu/linux-oem*
ubuntu/linux-oracle*
ubuntu/linux-oracle-5.0*
ubuntu/linux-oracle-5.3*
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-100.113
5.4.0-100.113
ubuntu/linux-aws<5.4.0-1066.69
5.4.0-1066.69
ubuntu/linux-azure<5.4.0-1070.73
5.4.0-1070.73
ubuntu/linux-bluefield<5.4.0-1028.31
5.4.0-1028.31
ubuntu/linux-gcp<5.4.0-1065.69
5.4.0-1065.69
ubuntu/linux-gke<5.4.0-1063.66
5.4.0-1063.66
ubuntu/linux-gkeop<5.4.0-1034.35
5.4.0-1034.35
ubuntu/linux-ibm<5.4.0-1015.16
5.4.0-1015.16
ubuntu/linux-kvm<5.4.0-1056.58
5.4.0-1056.58
ubuntu/linux-oem-5.14<5.14.0-1022.24
5.14.0-1022.24
ubuntu/linux-oracle<5.4.0-1064.68
5.4.0-1064.68
ubuntu/linux-raspi<5.4.0-1053.60
5.4.0-1053.60
ubuntu/linux-aws-5.11*
ubuntu/linux-aws-5.13*
ubuntu/linux-aws-5.8*
ubuntu/linux-azure-5.11*
ubuntu/linux-azure-5.13*
ubuntu/linux-azure-5.8*
ubuntu/linux-gcp-5.11*
ubuntu/linux-gcp-5.13*
ubuntu/linux-gcp-5.8*
ubuntu/linux-hwe-5.11*
ubuntu/linux-hwe-5.13*
ubuntu/linux-hwe-5.8*
ubuntu/linux-intel-5.13*
ubuntu/linux-oem-5.10*
ubuntu/linux-oem-5.13*
ubuntu/linux-oem-5.6*
ubuntu/linux-oracle-5.11*
ubuntu/linux-oracle-5.13*
ubuntu/linux-oracle-5.8*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.11*
ubuntu/linux-riscv-5.8*
ubuntu/linux-aws-fips<5.4.0-1069.73+fips2
5.4.0-1069.73+fips2
ubuntu/linux-azure-fips<5.4.0-1073.76+fips1
5.4.0-1073.76+fips1
ubuntu/linux-fips<5.4.0-1043.49
5.4.0-1043.49
ubuntu/linux-gcp-fips<5.4.0-1067.71~20.04.1
5.4.0-1067.71~20.04.1
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-realtime*
ubuntu/linux-raspi-realtime*
android/:linux_kernel:>=:0<:2022-03-05
:2022-03-05
debian/linux
4.9.303-14.19.232-15.15.15-1
debian/linux-4.19
4.19.232-1~deb9u1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/linux-aws-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1066.69~18.04.1
  2. Upgrade

    Upgrade ubuntu/linux-azure-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1070.73~18.04.1
  3. Upgrade

    Upgrade ubuntu/linux-gcp-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1065.69~18.04.1
  4. Upgrade

    Upgrade ubuntu/linux-gke-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1063.66~18.04.1
  5. Upgrade

    Upgrade ubuntu/linux-gkeop-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1034.35~18.04.1
  6. Upgrade

    Upgrade ubuntu/linux-hwe-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-100.113~18.04.1
  7. Upgrade

    Upgrade ubuntu/linux-ibm-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1015.16~18.04.1
  8. Upgrade

    Upgrade ubuntu/linux-oracle-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1064.68~18.04.1
  9. Upgrade

    Upgrade ubuntu/linux-raspi-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1053.60~18.04.1
  10. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 5.4.0-100.113
  11. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 5.4.0-1066.69
  12. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 5.4.0-1070.73
  13. Upgrade

    Upgrade ubuntu/linux-bluefield to a version that resolves this vulnerability.

    Fixed in 5.4.0-1028.31
  14. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 5.4.0-1065.69
  15. Upgrade

    Upgrade ubuntu/linux-gke to a version that resolves this vulnerability.

    Fixed in 5.4.0-1063.66
  16. Upgrade

    Upgrade ubuntu/linux-gkeop to a version that resolves this vulnerability.

    Fixed in 5.4.0-1034.35
  17. Upgrade

    Upgrade ubuntu/linux-ibm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1015.16
  18. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1056.58
  19. Upgrade

    Upgrade ubuntu/linux-oem-5.14 to a version that resolves this vulnerability.

    Fixed in 5.14.0-1022.24
  20. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 5.4.0-1064.68
  21. Upgrade

    Upgrade ubuntu/linux-raspi to a version that resolves this vulnerability.

    Fixed in 5.4.0-1053.60
  22. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1069.73+fips2
  23. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1073.76+fips1
  24. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1043.49
  25. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1067.71~20.04.1
  26. Upgrade

    Upgrade android/:linux_kernel: to a version that resolves this vulnerability.

    Fixed in :2022-03-05
  27. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 4.9.303-1Fixed in 4.19.232-1Fixed in 5.15.15-1
  28. Upgrade

    Upgrade debian/linux-4.19 to a version that resolves this vulnerability.

    Fixed in 4.19.232-1~deb9u1

Event History

Mar 1, 2022
Advisory Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionAffected Software
Mar 7, 2022
CVE Published
12:00 AM
Data Sourced
12:00 AM
SeverityWeaknessAffected Software
Mar 16, 2022
CVE Published
via MITRE·02:04 PM
Data Sourced
via MITRE·02:04 PM
DescriptionWeakness
Data Sourced
via OSV·03:15 PM
Severity
Jul 12, 2022
Data Sourced
05:42 PM
RemedyDescription
Oct 25, 2022
Data Sourced
via Android·12:00 AM
SeverityWeaknessAffected Software
Feb 7, 2024
Updated
via Android·12:00 AM
Affected Software
Mar 11, 2024
Updated
via Android·12:00 AM
Affected Software
Mar 18, 2024
Updated
via Android·12:00 AM
Affected Software
Apr 29, 2024
Updated
via Android·12:00 AM
Affected Software
Aug 26, 2024
Updated
via Android·12:00 AM
Affected Software
Sep 30, 2026
Updated
via Android·12:00 AM
Affected Software
Nov 11, 2026
Updated
via OSV·09:37 AM
Affected Software
Nov 12, 2026
Updated
via OSV·05:22 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2021-39686?

CVE-2021-39686 is a vulnerability in Android's binder.c file that allows for the incorrect representation of the SELinux domain due to a race condition.

2

What is the severity of CVE-2021-39686?

CVE-2021-39686 has a severity level of 7, which is considered high.

3

How does CVE-2021-39686 lead to privilege escalation?

CVE-2021-39686 can lead to local escalation of privilege without requiring additional execution privileges.

4

Is user interaction required for CVE-2021-39686 exploitation?

No, user interaction is not needed for the exploitation of CVE-2021-39686.

5

How can I fix CVE-2021-39686?

To fix CVE-2021-39686, update your Android device to the recommended versions provided by Google or Debian.

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