# CVE-2021-38160: In drivers/char/virtioconsole.c in the Linux kernel before 5.13.4, data corruption or loss can be triggered by an untrusted device that sup…

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2021-08-07T03:31:12.000Z
- Modified: 2026-06-17T04:01:36.330Z
- Weaknesses: CWE-120
- Assigned by: mitre

## 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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- linux linux_kernel: from 2.6.24 before 4.4.276; from 4.5 before 4.9.276; from 4.10 before 4.14.240; from 4.15 before 4.19.198; from 4.20 before 5.4.134; from 5.5 before 5.10.52; from 5.11 before 5.12.19; from 5.13 before 5.13.4
- netapp hci_bootstrap_os: no versions given
- netapp hci_management_node: no versions given
- netapp solidfire: no versions given
- netapp element_software: no versions given
- debian debian_linux: 9.0; 10.0
- redhat enterprise_linux: 8.0

## Every score

- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.2 High `AV:L/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://github.com/torvalds/linux/commit/d00d8da5869a2608e97cfede094dfc5e11462a46> (patch, third-party-advisory)
- <https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.13.4> (release-notes, vendor-advisory)
- <https://access.redhat.com/security/cve/cve-2021-38160> (third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20210902-0010/> (third-party-advisory)
- <https://www.debian.org/security/2021/dsa-4978> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2021/10/msg00010.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2021/12/msg00012.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2021-38160](https://www.cve.org/CVERecord?id=CVE-2021-38160), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-38160](https://nvd.nist.gov/vuln/detail/CVE-2021-38160), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-38160 · Whole record: https://cve.day/CVE-2021-38160.json · Rebuilt by cve.day 2026-11-25T22:58:03.048Z
