CVE-2020-36385: Use After Free

Published Jun 7, 2021
·
Updated

An issue was discovered in the Linux kernel before 5.10. drivers/infiniband/core/ucma.c has a use-after-free because the ctx is reached via the ctxlist in some ucmamigrateid situations where ucmaclose is called, aka CID-f5449e74802c.

Other sources

An issue was discovered in the Linux kernels Userspace Connection Manager Access for RDMA. The UCMA has a use-after-free condition, when the end of ctx is reached via the ctxlist in some situations in ucmamigrateid where ucmaclose is called. This could allow a local attacker to crash the system when using a crafted attack.

External Reference:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f5449e74802c1112dea984aec8af7a33c4516af1

— Red Hat

An issue was discovered in the Linux kernels Userspace Connection Manager Access for RDMA. This could allow a local attacker to crash the system, corrupt memory or escalate privileges.

Affected Software

137 affected componentsFixes available
redhat/kernel<0:2.6.32-754.43.1.el6
0:2.6.32-754.43.1.el6
redhat/kernel-rt<0:3.10.0-1160.49.1.rt56.1189.el7
0:3.10.0-1160.49.1.rt56.1189.el7
redhat/kernel<0:3.10.0-1160.49.1.el7
0:3.10.0-1160.49.1.el7
redhat/kernel<0:3.10.0-327.102.1.el7
0:3.10.0-327.102.1.el7
redhat/kernel<0:3.10.0-514.95.1.el7
0:3.10.0-514.95.1.el7
redhat/kernel<0:3.10.0-693.95.1.el7
0:3.10.0-693.95.1.el7
redhat/kernel<0:3.10.0-957.86.1.el7
0:3.10.0-957.86.1.el7
redhat/kernel<0:3.10.0-1062.59.1.el7
0:3.10.0-1062.59.1.el7
redhat/kernel-rt<0:4.18.0-305.25.1.rt7.97.el8_4
0:4.18.0-305.25.1.rt7.97.el8_4
redhat/kernel<0:4.18.0-305.25.1.el8_4
0:4.18.0-305.25.1.el8_4
redhat/kernel<0:4.18.0-147.57.1.el8_1
0:4.18.0-147.57.1.el8_1
redhat/kernel-rt<0:4.18.0-193.70.1.rt13.120.el8_2
0:4.18.0-193.70.1.rt13.120.el8_2
redhat/kernel<0:4.18.0-193.70.1.el8_2
0:4.18.0-193.70.1.el8_2
redhat/redhat-virtualization-host<0:4.3.20-20211202.1.el7_9
0:4.3.20-20211202.1.el7_9
Linux Linux kernel<5.10
All of the following
NetApp H300s Firmware
NetApp H300s
All of the following
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H700s Firmware
NetApp H700s
All of the following
NetApp H300e Firmware
NetApp H300e
All of the following
NetApp H500e Firmware
NetApp H500e
All of the following
NetApp H700e Firmware
NetApp H700e
All of the following
NetApp H410s Firmware
NetApp H410s
All of the following
NetApp H410c Firmware
NetApp H410c
Starwindsoftware Starwind San \& Nas=v8r12
Starwindsoftware Starwind Virtual San=v8-build14338
NetApp H300s Firmware
NetApp H300s
NetApp H500s Firmware
NetApp H500s
NetApp H700s Firmware
NetApp H700s
NetApp H300e Firmware
NetApp H300e
NetApp H500e Firmware
NetApp H500e
NetApp H700e Firmware
NetApp H700e
NetApp H410s Firmware
NetApp H410s
NetApp H410c Firmware
NetApp H410c
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
redhat/kernel<5.10
5.10
ubuntu/linux-aws<4.4.0-1102.107
4.4.0-1102.107
ubuntu/linux-azure<4.15.0-1126.139~14.04.1
4.15.0-1126.139~14.04.1
ubuntu/linux-lts-xenial<4.4.0-222.255~14.04.1
4.4.0-222.255~14.04.1
ubuntu/linux*
ubuntu/linux<4.4.0-222.255
4.4.0-222.255
ubuntu/linux-aws<4.4.0-1138.152
4.4.0-1138.152
ubuntu/linux-aws-hwe<4.15.0-1115.122~16.04.1
4.15.0-1115.122~16.04.1
ubuntu/linux-azure<4.15.0-1126.139~16.04.1
4.15.0-1126.139~16.04.1
ubuntu/linux-gcp<4.15.0-1111.125~16.04.1
4.15.0-1111.125~16.04.1
ubuntu/linux-hwe<4.15.0-162.170~16.04.1
4.15.0-162.170~16.04.1
ubuntu/linux-kvm<4.4.0-1103.112
4.4.0-1103.112
ubuntu/linux-oracle<4.15.0-1083.91~16.04.1
4.15.0-1083.91~16.04.1
ubuntu/linux-hwe-edge*
ubuntu/linux-fips<4.4.0-1072.78
4.4.0-1072.78
ubuntu/linux-fips*
ubuntu/linux<4.15.0-162.170
4.15.0-162.170
ubuntu/linux-aws<4.15.0-1115.122
4.15.0-1115.122
ubuntu/linux-aws-5.4<5.4.0-1059.62~18.04.1
5.4.0-1059.62~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1126.139
4.15.0-1126.139
ubuntu/linux-azure-5.4<5.4.0-1063.66~18.04.1
5.4.0-1063.66~18.04.1
ubuntu/linux-dell300x<4.15.0-1030.35
4.15.0-1030.35
ubuntu/linux-gcp-4.15<4.15.0-1111.125
4.15.0-1111.125
ubuntu/linux-gcp-5.4<5.4.0-1057.61~18.04.1
5.4.0-1057.61~18.04.1
ubuntu/linux-gke-5.4<5.4.0-1055.58~18.04.1
5.4.0-1055.58~18.04.1
ubuntu/linux-gkeop-5.4<5.4.0-1026.27~18.04.1
5.4.0-1026.27~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-90.101~18.04.1
5.4.0-90.101~18.04.1
ubuntu/linux-kvm<4.15.0-1102.104
4.15.0-1102.104
ubuntu/linux-oracle<4.15.0-1083.91
4.15.0-1083.91
ubuntu/linux-oracle-5.4<5.4.0-1057.61~18.04.1
5.4.0-1057.61~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1046.50~18.04.1
5.4.0-1046.50~18.04.1
ubuntu/linux-raspi2<4.15.0-1098.104
4.15.0-1098.104
ubuntu/linux-snapdragon<4.15.0-1115.124
4.15.0-1115.124
ubuntu/linux-aws-5.0*
ubuntu/linux-aws-5.3*
ubuntu/linux-azure*
ubuntu/linux-azure-5.3*
ubuntu/linux-azure-edge*
ubuntu/linux-gcp*
ubuntu/linux-gcp-5.3*
ubuntu/linux-gcp-edge*
ubuntu/linux-gke-4.15*
ubuntu/linux-hwe*
ubuntu/linux-hwe-edge*
ubuntu/linux-oem*
ubuntu/linux-oracle-5.0*
ubuntu/linux-oracle-5.3*
ubuntu/linux-aws-fips<4.15.0-2056.58
4.15.0-2056.58
ubuntu/linux-azure-fips<4.15.0-2038.42
4.15.0-2038.42
ubuntu/linux-fips<4.15.0-1072.81
4.15.0-1072.81
ubuntu/linux-gcp-fips<4.15.0-2021.23
4.15.0-2021.23
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-90.101
5.4.0-90.101
ubuntu/linux-aws<5.4.0-1059.62
5.4.0-1059.62
ubuntu/linux-azure<5.4.0-1063.66
5.4.0-1063.66
ubuntu/linux-bluefield<5.4.0-1021.24
5.4.0-1021.24
ubuntu/linux-gcp<5.4.0-1057.61
5.4.0-1057.61
ubuntu/linux-gke<5.4.0-1055.58
5.4.0-1055.58
ubuntu/linux-gkeop<5.4.0-1026.27
5.4.0-1026.27
ubuntu/linux-ibm<5.4.0-1007.8
5.4.0-1007.8
ubuntu/linux-kvm<5.4.0-1049.51
5.4.0-1049.51
ubuntu/linux-oracle<5.4.0-1057.61
5.4.0-1057.61
ubuntu/linux-raspi<5.4.0-1046.50
5.4.0-1046.50
ubuntu/linux-aws-5.8*
ubuntu/linux-azure-5.8*
ubuntu/linux-gcp-5.8*
ubuntu/linux-hwe-5.8*
ubuntu/linux-oem-5.6*
ubuntu/linux-oracle-5.8*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
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-1036.42
5.4.0-1036.42
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*
ubuntu/linux-vmware*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:2.6.32-754.43.1.el6
  2. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-1160.49.1.rt56.1189.el7
  3. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-1160.49.1.el7
  4. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-327.102.1.el7
  5. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-514.95.1.el7
  6. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-693.95.1.el7
  7. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-957.86.1.el7
  8. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-1062.59.1.el7
  9. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-305.25.1.rt7.97.el8_4
  10. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-305.25.1.el8_4
  11. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-147.57.1.el8_1
  12. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-193.70.1.rt13.120.el8_2
  13. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-193.70.1.el8_2
  14. Upgrade

    Upgrade redhat/redhat-virtualization-host to a version that resolves this vulnerability.

    Fixed in 0:4.3.20-20211202.1.el7_9
  15. Upgrade

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

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
  16. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.10
  17. Upgrade

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

    Fixed in 4.4.0-1102.107
  18. Upgrade

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

    Fixed in 4.15.0-1126.139~14.04.1
  19. Upgrade

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

    Fixed in 4.4.0-222.255~14.04.1
  20. Upgrade

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

    Fixed in 4.4.0-222.255
  21. Upgrade

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

    Fixed in 4.4.0-1138.152
  22. Upgrade

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

    Fixed in 4.15.0-1115.122~16.04.1
  23. Upgrade

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

    Fixed in 4.15.0-1126.139~16.04.1
  24. Upgrade

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

    Fixed in 4.15.0-1111.125~16.04.1
  25. Upgrade

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

    Fixed in 4.15.0-162.170~16.04.1
  26. Upgrade

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

    Fixed in 4.4.0-1103.112
  27. Upgrade

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

    Fixed in 4.15.0-1083.91~16.04.1
  28. Upgrade

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

    Fixed in 4.4.0-1072.78
  29. Upgrade

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

    Fixed in 4.15.0-162.170
  30. Upgrade

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

    Fixed in 4.15.0-1115.122
  31. Upgrade

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

    Fixed in 5.4.0-1059.62~18.04.1
  32. Upgrade

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

    Fixed in 4.15.0-1126.139
  33. Upgrade

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

    Fixed in 5.4.0-1063.66~18.04.1
  34. Upgrade

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

    Fixed in 4.15.0-1030.35
  35. Upgrade

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

    Fixed in 4.15.0-1111.125
  36. Upgrade

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

    Fixed in 5.4.0-1057.61~18.04.1
  37. Upgrade

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

    Fixed in 5.4.0-1055.58~18.04.1
  38. Upgrade

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

    Fixed in 5.4.0-1026.27~18.04.1
  39. Upgrade

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

    Fixed in 5.4.0-90.101~18.04.1
  40. Upgrade

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

    Fixed in 4.15.0-1102.104
  41. Upgrade

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

    Fixed in 4.15.0-1083.91
  42. Upgrade

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

    Fixed in 5.4.0-1057.61~18.04.1
  43. Upgrade

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

    Fixed in 5.4.0-1046.50~18.04.1
  44. Upgrade

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

    Fixed in 4.15.0-1098.104
  45. Upgrade

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

    Fixed in 4.15.0-1115.124
  46. Upgrade

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

    Fixed in 4.15.0-2056.58
  47. Upgrade

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

    Fixed in 4.15.0-2038.42
  48. Upgrade

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

    Fixed in 4.15.0-1072.81
  49. Upgrade

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

    Fixed in 4.15.0-2021.23
  50. Upgrade

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

    Fixed in 5.4.0-90.101
  51. Upgrade

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

    Fixed in 5.4.0-1059.62
  52. Upgrade

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

    Fixed in 5.4.0-1063.66
  53. Upgrade

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

    Fixed in 5.4.0-1021.24
  54. Upgrade

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

    Fixed in 5.4.0-1057.61
  55. Upgrade

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

    Fixed in 5.4.0-1055.58
  56. Upgrade

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

    Fixed in 5.4.0-1026.27
  57. Upgrade

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

    Fixed in 5.4.0-1007.8
  58. Upgrade

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

    Fixed in 5.4.0-1049.51
  59. Upgrade

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

    Fixed in 5.4.0-1057.61
  60. Upgrade

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

    Fixed in 5.4.0-1046.50
  61. Upgrade

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

    Fixed in 5.4.0-1069.73+fips2
  62. Upgrade

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

    Fixed in 5.4.0-1073.76+fips1
  63. Upgrade

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

    Fixed in 5.4.0-1036.42
  64. Upgrade

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

    Fixed in 5.4.0-1067.71~20.04.1
  65. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Fixed in 5.10Patch f5449e74802c1112dea984aec8af7a33c4516af1

Event History

Jun 7, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via OSV·12:15 PM
DescriptionSeverityAffected Software
Jun 21, 2021
Data Sourced
via Red Hat·11:17 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2020-36385?

CVE-2020-36385 has been identified with a severity level of high due to the potential for a use-after-free vulnerability in the Linux kernel.

2

How do I fix CVE-2020-36385?

To fix CVE-2020-36385, upgrade your Linux kernel to version 5.10 or later, or apply specific patched versions provided by your distribution.

3

Which Linux kernel versions are affected by CVE-2020-36385?

CVE-2020-36385 affects Linux kernel versions prior to 5.10, including various versions in the Red Hat kernel series.

4

What is the potential impact of exploiting CVE-2020-36385?

Exploiting CVE-2020-36385 may allow an attacker to execute arbitrary code in the context of the kernel, leading to system compromise.

5

Is there a workaround for CVE-2020-36385 if I cannot immediately upgrade?

Currently, there are no known workarounds for CVE-2020-36385, so it is recommended to upgrade to a fixed version as soon as possible.

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