CVE-2021-37159
Vulnerability Summary
Timeline
Description
hso_free_net_device in drivers/net/usb/hso.c in the Linux kernel through 5.13.4 calls unregister_netdev without checking for the NETREG_REGISTERED state, leading to a use-after-free and a double free.
CVSS Metrics
- v3.1•MEDIUM•Score: 6.4CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- v2.0•MEDIUM•Score: 4.4AV:L/AC:M/Au:N/C:P/I:P/A:P
EPSS Trends
Current EPSS score: 0.39%• Percentile: 33%
Techniques & Countermeasures
- CWE-415•Double Free
The product calls free() twice on the same memory address.
- 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.70-1 | < 5.14.6-1 | < 5.14.6-1 | < 5.14.6-1
- ubuntu•linux
< 3.13.0-199.250 | < 4.4.0-223.256 | < 4.15.0-163.171 | < 5.4.0-91.102
- ubuntu•linux-aws
< 4.4.0-1103.108 | < 4.4.0-1139.153 | < 4.15.0-1116.123 | < 5.4.0-1060.63
- ubuntu•linux-aws-5.0
all
- ubuntu•linux-aws-5.11
< 5.11.0-1019.20~20.04.1
- ubuntu•linux-aws-5.3
all
- ubuntu•linux-aws-5.4
< 5.4.0-1060.63~18.04.1
- ubuntu•linux-aws-5.8
all
- ubuntu•linux-aws-fips
< 4.15.0-2057.59 | all | < 5.4.0-1069.73+fips2
- ubuntu•linux-aws-hwe
< 4.15.0-1116.123~16.04.1
- ubuntu•linux-azure
< 4.15.0-1127.140~14.04.1 | < 4.15.0-1127.140~16.04.1 | all | < 5.4.0-1064.67
- ubuntu•linux-azure-4.15
< 4.15.0-1127.140
- ubuntu•linux-azure-5.11
< 5.11.0-1017.18~20.04.1
- ubuntu•linux-azure-5.3
all
- ubuntu•linux-azure-5.4
< 5.4.0-1064.67~18.04.1
- ubuntu•linux-azure-5.8
all
- ubuntu•linux-azure-edge
all
- ubuntu•linux-azure-fde-5.15
< 5.15.0-1114.123~20.04.1
- ubuntu•linux-azure-fips
< 4.15.0-2039.43 | all | < 5.4.0-1073.76+fips1
- ubuntu•linux-bluefield
all | < 5.4.0-1022.25
- ubuntu•linux-dell300x
< 4.15.0-1031.36
- ubuntu•linux-fips
< 4.4.0-1073.79 | all | < 4.15.0-1073.82 | < 5.4.0-1037.43
- ubuntu•linux-gcp
< 4.15.0-1112.126~16.04.1 | all | < 5.4.0-1058.62
- ubuntu•linux-gcp-4.15
< 4.15.0-1112.126
- ubuntu•linux-gcp-5.11
< 5.11.0-1020.22~20.04.1
- ubuntu•linux-gcp-5.3
all
- ubuntu•linux-gcp-5.4
< 5.4.0-1058.62~18.04.1
- ubuntu•linux-gcp-5.8
all
- ubuntu•linux-gcp-edge
all
- ubuntu•linux-gcp-fips
< 4.15.0-2022.24 | all | < 5.4.0-1067.71~20.04.1
- ubuntu•linux-gke
< 5.4.0-1056.59
- ubuntu•linux-gke-4.15
all
- ubuntu•linux-gke-5.4
< 5.4.0-1056.59~18.04.1
- ubuntu•linux-gkeop
< 5.4.0-1027.28
- ubuntu•linux-gkeop-5.4
< 5.4.0-1027.28~18.04.1
- ubuntu•linux-hwe
< 4.15.0-163.171~16.04.1 | all
- ubuntu•linux-hwe-5.11
< 5.11.0-37.41~20.04.2
- ubuntu•linux-hwe-5.4
< 5.4.0-91.102~18.04.1
- ubuntu•linux-hwe-5.8
all
- ubuntu•linux-hwe-edge
all | all
- ubuntu•linux-ibm
< 5.4.0-1008.9
- ubuntu•linux-intel-iot-realtime
all
- ubuntu•linux-kvm
< 4.4.0-1104.113 | < 4.15.0-1103.105 | < 5.4.0-1050.52
- ubuntu•linux-lts-xenial
< 4.4.0-223.256~14.04.1
- ubuntu•linux-oem
all
- ubuntu•linux-oem-5.10
< 5.10.0-1050.52
- ubuntu•linux-oem-5.13
< 5.13.0-1014.18
- ubuntu•linux-oem-5.6
all
- ubuntu•linux-oracle
< 4.15.0-1084.92~16.04.1 | < 4.15.0-1084.92 | < 5.4.0-1058.62
- ubuntu•linux-oracle-5.0
all
Showing first 50 affected entries in server-rendered view.
References (20)
- https://www.spinics.net/lists/linux-usb/msg202228.html
- https://lists.debian.org/debian-lts-announce/2021/10/msg00010.html
- https://lists.debian.org/debian-lts-announce/2021/12/msg00012.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://security.netapp.com/advisory/ntap-20210819-0003/
- https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=a6ecfb39ba9d7316057cea823b196b734f6b18ca
- https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=dcb713d53e2eadf42b878c12a471e74dc6ed3145
- https://bugzilla.suse.com/show_bug.cgi?id=1188601
- https://ubuntu.com/security/CVE-2021-37159
- https://lore.kernel.org/linux-usb/20201002114323.GA3296553@kroah.com/
- https://ubuntu.com/security/notices/USN-5092-1
- https://ubuntu.com/security/notices/USN-5092-2
- https://ubuntu.com/security/notices/USN-5096-1
- https://ubuntu.com/security/notices/USN-5115-1
- https://ubuntu.com/security/notices/USN-5163-1
- https://ubuntu.com/security/notices/USN-5164-1
- https://ubuntu.com/security/notices/USN-5361-1
- https://www.cve.org/CVERecord?id=CVE-2021-37159
- https://ubuntu.com/security/notices/USN-6971-1
- https://security-tracker.debian.org/tracker/CVE-2021-37159