CVE-2021-38160
Vulnerability Summary
Timeline
Description
In drivers/char/virtio_console.c in the Linux kernel before 5.13.4, data corruption or loss can be triggered by an untrusted device that supplies a buf->len value exceeding the buffer size. NOTE: the vendor indicates that the cited data corruption is not a vulnerability in any existing use case; the length validation was added solely for robustness in the face of anomalous host OS behavior
CVSS Metrics
- v3.1•HIGH•Score: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- v2.0•HIGH•Score: 7.2AV:L/AC:L/Au:N/C:C/I:C/A:C
EPSS Trends
Current EPSS score: 0.40%• Percentile: 34%
Techniques & Countermeasures
- CWE-120•Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.
Affected Systems
- debian•linux
< 5.10.46-5 | < 5.14.6-1 | < 5.14.6-1 | < 5.14.6-1
- ubuntu•linux
all | < 4.4.0-222.255 | < 4.15.0-156.163 | < 5.4.0-88.99
- ubuntu•linux-aws
< 4.4.0-1102.107 | < 4.4.0-1138.152 | < 4.15.0-1111.118 | < 5.4.0-1057.60
- 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-1057.60~18.04.1
- ubuntu•linux-aws-5.8
all
- ubuntu•linux-aws-fips
< 4.15.0-2053.55 | all | < 5.4.0-1069.73+fips2
- ubuntu•linux-aws-hwe
< 4.15.0-1111.118~16.04.1
- ubuntu•linux-azure
< 4.15.0-1123.136~14.04.1 | < 4.15.0-1123.136~16.04.1 | all | < 5.4.0-1059.62
- ubuntu•linux-azure-4.15
< 4.15.0-1123.136
- 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-1059.62~18.04.1
- ubuntu•linux-azure-5.8
all
- ubuntu•linux-azure-edge
all
- ubuntu•linux-azure-fips
< 4.15.0-2035.39 | all | < 5.4.0-1073.76+fips1
- ubuntu•linux-bluefield
all | < 5.4.0-1019.22
- ubuntu•linux-dell300x
< 4.15.0-1027.32
- ubuntu•linux-fips
< 4.4.0-1072.78 | all | < 4.15.0-1069.78 | < 5.4.0-1034.40
- ubuntu•linux-gcp
< 4.15.0-1108.122~16.04.1 | all | < 5.4.0-1053.57
- ubuntu•linux-gcp-4.15
< 4.15.0-1108.122
- 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-1053.57~18.04.1
- ubuntu•linux-gcp-5.8
all
- ubuntu•linux-gcp-edge
all
- ubuntu•linux-gcp-fips
< 4.15.0-2018.20 | all | < 5.4.0-1067.71~20.04.1
- ubuntu•linux-gke
< 5.4.0-1053.56
- ubuntu•linux-gke-4.15
all
- ubuntu•linux-gke-5.4
< 5.4.0-1053.56~18.04.1
- ubuntu•linux-gkeop
< 5.4.0-1024.25
- ubuntu•linux-gkeop-5.4
< 5.4.0-1024.25~18.04.1
- ubuntu•linux-hwe
< 4.15.0-156.163~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-87.98~18.04.1
- ubuntu•linux-hwe-5.8
all
- ubuntu•linux-hwe-edge
all | all
- ubuntu•linux-ibm
< 5.4.0-1005.6
- ubuntu•linux-intel-iot-realtime
all
- ubuntu•linux-kvm
< 4.4.0-1103.112 | < 4.15.0-1099.101 | < 5.4.0-1047.49
- ubuntu•linux-lts-xenial
< 4.4.0-222.255~14.04.1
- ubuntu•linux-oem
all
- ubuntu•linux-oem-5.10
< 5.10.0-1049.51
- ubuntu•linux-oem-5.13
< 5.13.0-1014.18
- ubuntu•linux-oem-5.6
all
- ubuntu•linux-oracle
< 4.15.0-1080.88~16.04.1 | < 4.15.0-1080.88 | < 5.4.0-1055.59
- ubuntu•linux-oracle-5.0
all
- ubuntu•linux-oracle-5.11
< 5.11.0-1019.20~20.04.1
Showing first 50 affected entries in server-rendered view.
References (21)
- https://github.com/torvalds/linux/commit/d00d8da5869a2608e97cfede094dfc5e11462a46
- https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.13.4
- https://access.redhat.com/security/cve/cve-2021-38160
- https://security.netapp.com/advisory/ntap-20210902-0010/
- https://www.debian.org/security/2021/dsa-4978
- https://lists.debian.org/debian-lts-announce/2021/10/msg00010.html
- https://lists.debian.org/debian-lts-announce/2021/12/msg00012.html
- https://ubuntu.com/security/CVE-2021-38160
- https://git.kernel.org/linus/d00d8da5869a2608e97cfede094dfc5e11462a46
- https://ubuntu.com/security/notices/USN-5073-1
- https://ubuntu.com/security/notices/USN-5073-2
- https://ubuntu.com/security/notices/USN-5073-3
- https://ubuntu.com/security/notices/USN-5091-1
- 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-5091-2
- https://ubuntu.com/security/notices/USN-5106-1
- https://ubuntu.com/security/notices/USN-5343-1
- https://www.cve.org/CVERecord?id=CVE-2021-38160
- https://security-tracker.debian.org/tracker/CVE-2021-38160