CVE-2020-36385
Vulnerability Summary
Timeline
Description
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 ctx_list in some ucma_migrate_id situations where ucma_close is called, aka CID-f5449e74802c.
CVSS Metrics
- v3.1•HIGH•Score: 7.8CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- v2.0•MEDIUM•Score: 6.8AV:N/AC:M/Au:N/C:P/I:P/A:P
EPSS Trends
Current EPSS score: 1.48%• Percentile: 73%
Techniques & Countermeasures
- CWE-416•Use After Free
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
Affected Systems
- debian•linux
< 5.10.4-1 | < 5.10.4-1 | < 5.10.4-1 | < 5.10.4-1
- ubuntu•linux
all | < 4.4.0-222.255 | < 4.15.0-162.170 | < 5.4.0-90.101
- ubuntu•linux-aws
< 4.4.0-1102.107 | < 4.4.0-1138.152 | < 4.15.0-1115.122 | < 5.4.0-1059.62
- ubuntu•linux-aws-5.0
all
- ubuntu•linux-aws-5.3
all
- ubuntu•linux-aws-5.4
< 5.4.0-1059.62~18.04.1
- ubuntu•linux-aws-5.8
all
- ubuntu•linux-aws-fips
< 4.15.0-2056.58 | all | < 5.4.0-1069.73+fips2
- ubuntu•linux-aws-hwe
< 4.15.0-1115.122~16.04.1
- ubuntu•linux-azure
< 4.15.0-1126.139~14.04.1 | < 4.15.0-1126.139~16.04.1 | all | < 5.4.0-1063.66
- ubuntu•linux-azure-4.15
< 4.15.0-1126.139
- ubuntu•linux-azure-5.3
all
- ubuntu•linux-azure-5.4
< 5.4.0-1063.66~18.04.1
- ubuntu•linux-azure-5.8
all
- ubuntu•linux-azure-edge
all
- ubuntu•linux-azure-fips
< 4.15.0-2038.42 | all | < 5.4.0-1073.76+fips1
- ubuntu•linux-bluefield
all | < 5.4.0-1021.24
- ubuntu•linux-dell300x
< 4.15.0-1030.35
- ubuntu•linux-fips
< 4.4.0-1072.78 | all | < 4.15.0-1072.81 | < 5.4.0-1036.42
- ubuntu•linux-gcp
< 4.15.0-1111.125~16.04.1 | all | < 5.4.0-1057.61
- ubuntu•linux-gcp-4.15
< 4.15.0-1111.125
- ubuntu•linux-gcp-5.3
all
- ubuntu•linux-gcp-5.4
< 5.4.0-1057.61~18.04.1
- ubuntu•linux-gcp-5.8
all
- ubuntu•linux-gcp-edge
all
- ubuntu•linux-gcp-fips
< 4.15.0-2021.23 | all | < 5.4.0-1067.71~20.04.1
- ubuntu•linux-gke
< 5.4.0-1055.58
- ubuntu•linux-gke-4.15
all
- ubuntu•linux-gke-5.4
< 5.4.0-1055.58~18.04.1
- ubuntu•linux-gkeop
< 5.4.0-1026.27
- ubuntu•linux-gkeop-5.4
< 5.4.0-1026.27~18.04.1
- ubuntu•linux-hwe
< 4.15.0-162.170~16.04.1 | all
- ubuntu•linux-hwe-5.4
< 5.4.0-90.101~18.04.1
- ubuntu•linux-hwe-5.8
all
- ubuntu•linux-hwe-edge
all | all
- ubuntu•linux-ibm
< 5.4.0-1007.8
- ubuntu•linux-intel-iot-realtime
all
- ubuntu•linux-kvm
< 4.4.0-1103.112 | < 4.15.0-1102.104 | < 5.4.0-1049.51
- ubuntu•linux-lts-xenial
< 4.4.0-222.255~14.04.1
- ubuntu•linux-oem
all
- ubuntu•linux-oem-5.6
all
- ubuntu•linux-oracle
< 4.15.0-1083.91~16.04.1 | < 4.15.0-1083.91 | < 5.4.0-1057.61
- ubuntu•linux-oracle-5.0
all
- ubuntu•linux-oracle-5.3
all
- ubuntu•linux-oracle-5.4
< 5.4.0-1057.61~18.04.1
- ubuntu•linux-oracle-5.8
all
- ubuntu•linux-raspi
< 5.4.0-1046.50
- ubuntu•linux-raspi-5.4
< 5.4.0-1046.50~18.04.1
- ubuntu•linux-raspi-realtime
all
- ubuntu•linux-raspi2
< 4.15.0-1098.104 | all
Showing first 50 affected entries in server-rendered view.
References (37)
- https://syzkaller.appspot.com/bug?id=457491c4672d7b52c1007db213d93e47c711fae6
- https://sites.google.com/view/syzscope/kasan-use-after-free-read-in-ucma_close-2
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f5449e74802c1112dea984aec8af7a33c4516af1
- https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.10
- https://security.netapp.com/advisory/ntap-20210720-0004/
- https://www.starwindsoftware.com/security/sw-20220802-0002/
- https://access.redhat.com/errata/RHSA-2021:4597
- https://access.redhat.com/security/updates/classification/#important
- https://bugzilla.redhat.com/show_bug.cgi?id=1974319
- https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_4597.json
- https://access.redhat.com/security/cve/CVE-2020-36385
- https://www.cve.org/CVERecord?id=CVE-2020-36385
- https://nvd.nist.gov/vuln/detail/CVE-2020-36385
- https://access.redhat.com/errata/RHSA-2021:4770
- https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_4770.json
- https://access.redhat.com/errata/RHSA-2021:4773
- https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_4773.json
- https://access.redhat.com/errata/RHSA-2021:4774
- https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_4774.json
- https://access.redhat.com/errata/RHSA-2021:4777
- https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_4777.json
- https://access.redhat.com/errata/RHSA-2021:4779
- https://bugzilla.redhat.com/show_bug.cgi?id=1833860
- https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_4779.json
- https://access.redhat.com/errata/RHSA-2021:4798
- https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_4798.json
- https://access.redhat.com/errata/RHSA-2021:4859
- https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_4859.json
- https://access.redhat.com/errata/RHSA-2021:4971
- https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_4971.json
- https://ubuntu.com/security/CVE-2020-36385
- https://git.kernel.org/linus/f5449e74802c1112dea984aec8af7a33c4516af1
- https://ubuntu.com/security/notices/USN-5136-1
- https://ubuntu.com/security/notices/USN-5137-1
- https://ubuntu.com/security/notices/USN-5137-2
- https://ubuntu.com/security/notices/USN-5343-1
- https://security-tracker.debian.org/tracker/CVE-2020-36385