CVE-2021-38160: 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…
Noroxi assessment
Priority: Monitor (action score 31/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.41% (FIRST EPSS).
- Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: linux (Debian:11) 5.10.46-5; linux (Debian:12) 5.14.6-1; linux (Debian:9) 4.9.290-1.
Low priority for now. Upgrade to linux (Debian:11) 5.10.46-5; linux (Debian:12) 5.14.6-1; linux (Debian:9) 4.9.290-1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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
- BDU:2021-04848
- DLA-2785-1
- DLA-2843-1
- DSA-4978-1
- openSUSE-SU-2021:1271-1
- openSUSE-SU-2021:3179-1
- openSUSE-SU-2021:3205-1
- SUSE-SU-2021:14849-1
- SUSE-SU-2021:3177-1
- SUSE-SU-2021:3178-1
- SUSE-SU-2021:3179-1
- SUSE-SU-2021:3192-1
- SUSE-SU-2021:3205-1
- SUSE-SU-2021:3205-2
- SUSE-SU-2021:3206-1
- SUSE-SU-2021:3207-1
- SUSE-SU-2021:3217-1
- SUSE-SU-2021:3360-1
- SUSE-SU-2021:3371-1
- SUSE-SU-2021:3374-1
- Published
- Aug 7, 2021
- Updated
- Jun 17, 2026
- EPSS
- 0.4% · 35th percentile
- CWE
- CWE-120
Report tools
Action score
31
Low priority for now.
- CVSS
- 31 / 40 · 7.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.4%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_kernel |
| netapp | hci bootstrap os | cpe:2.3:o:netapp:hci_bootstrap_os |
| netapp | hci compute node | cpe:2.3:h:netapp:hci_compute_node |
| netapp | hci management node | cpe:2.3:a:netapp:hci_management_node |
| netapp | solidfire | cpe:2.3:a:netapp:solidfire |
| netapp | hci storage node | cpe:2.3:h:netapp:hci_storage_node |
| netapp | element software | cpe:2.3:a:netapp:element_software |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| redhat | enterprise linux | cpe:2.3:o:redhat:enterprise_linux |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux10.0
- debian debian linux9.0
- linux linux kernel4.10 and later · before 4.14.240
- linux linux kernel4.15 and later · before 4.19.198
- linux linux kernel4.20 and later · before 5.4.134
- linux linux kernel5.5 and later · before 5.10.52
- linux linux kernel5.11 and later · before 5.12.19
- linux linux kernel5.13 and later · before 5.13.4
+7 more rows
- linux linux kernel2.6.24 and later · before 4.4.276
- linux linux kernel4.5 and later · before 4.9.276
- netapp element softwareall versions
- netapp hci bootstrap osall versions
- netapp hci management nodeall versions
- netapp solidfireall versions
- redhat enterprise linux8.0
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:11 | linux | before 5.10.46-5 | 5.10.46-5 |
| Debian:12 | linux | before 5.14.6-1 | 5.14.6-1 |
| Debian:9 | linux | before 4.9.290-1 | 4.9.290-1 |
| Debian:9 | linux-4.19 | before 4.19.208-1~deb9u1 | 4.19.208-1~deb9u1 |
| openSUSE:Leap 15.2 | kernel-debug | before 5.3.18-lp152.92.2 | 5.3.18-lp152.92.2 |
| openSUSE:Leap 15.2 | kernel-default | before 5.3.18-lp152.92.2 | 5.3.18-lp152.92.2 |
| openSUSE:Leap 15.2 | kernel-default-base | before 5.3.18-lp152.92.2.lp152.8.42.3 | 5.3.18-lp152.92.2.lp152.8.42.3 |
| openSUSE:Leap 15.2 | kernel-docs | before 5.3.18-lp152.92.1 | 5.3.18-lp152.92.1 |
| openSUSE:Leap 15.2 | kernel-kvmsmall | before 5.3.18-lp152.92.2 | 5.3.18-lp152.92.2 |
| openSUSE:Leap 15.2 | kernel-obs-build | before 5.3.18-lp152.92.2 | 5.3.18-lp152.92.2 |
| openSUSE:Leap 15.2 | kernel-obs-qa | before 5.3.18-lp152.92.1 | 5.3.18-lp152.92.1 |
| openSUSE:Leap 15.2 | kernel-preempt | before 5.3.18-lp152.92.2 | 5.3.18-lp152.92.2 |
| openSUSE:Leap 15.2 | kernel-source | before 5.3.18-lp152.92.2 | 5.3.18-lp152.92.2 |
| openSUSE:Leap 15.2 | kernel-syms | before 5.3.18-lp152.92.1 | 5.3.18-lp152.92.1 |
| openSUSE:Leap 15.3 | dtb-aarch64 | before 5.3.18-59.24.1 | 5.3.18-59.24.1 |
| openSUSE:Leap 15.3 | kernel-64kb | before 5.3.18-59.24.1 | 5.3.18-59.24.1 |
| openSUSE:Leap 15.3 | kernel-azure | before 5.3.18-38.22.2 | 5.3.18-38.22.2 |
| openSUSE:Leap 15.3 | kernel-debug | before 5.3.18-59.24.1 | 5.3.18-59.24.1 |
| openSUSE:Leap 15.3 | kernel-default | before 5.3.18-59.24.1 | 5.3.18-59.24.1 |
| openSUSE:Leap 15.3 | kernel-default-base | before 5.3.18-59.24.1.18.12.1 | 5.3.18-59.24.1.18.12.1 |
| openSUSE:Leap 15.3 | kernel-docs | before 5.3.18-59.24.1 | 5.3.18-59.24.1 |
| openSUSE:Leap 15.3 | kernel-kvmsmall | before 5.3.18-59.24.1 | 5.3.18-59.24.1 |
| openSUSE:Leap 15.3 | kernel-obs-build | before 5.3.18-59.24.1 | 5.3.18-59.24.1 |
| openSUSE:Leap 15.3 | kernel-obs-qa | before 5.3.18-59.24.1 | 5.3.18-59.24.1 |
+96
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV90Now
- CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe…KEV89Now
- CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV85Now
Published before and after this one in the same product
- ← EarlierCVE-2021-3679Aug 5, 2021 · A lack of CPU resource in the Linux kernel tracing module functionality in versions prior to 5.14-rc3 was found in the way user uses trace…22Monitor
- ← EarlierCVE-2021-3655Aug 5, 2021 · A vulnerability was found in the Linux kernel in versions prior to v5.14-rc1.13Monitor
- Later →CVE-2021-38166Aug 7, 2021 · In kernel/bpf/hashtab.c in the Linux kernel through 5.13.8, there is an integer overflow and out-of-bounds write when many elements are…31Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:linux | 5.14.6-1 · Debian:12 | Package registry (OSV) |
| debian:linux-4.19 | 4.19.208-1~deb9u1 · Debian:9 | Package registry (OSV) |
| opensuse:kernel-azure | 5.3.18-38.22.2 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:kernel-debug | 5.3.18-lp152.92.2 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:kernel-default | 5.3.18-lp152.92.2 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:kernel-default-base | 5.3.18-lp152.92.2.lp152.8.42.3 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:kernel-docs | 5.3.18-lp152.92.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:kernel-kvmsmall | 5.3.18-lp152.92.2 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:kernel-obs-build | 5.3.18-lp152.92.2 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:kernel-obs-qa | 5.3.18-lp152.92.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:kernel-preempt | 5.3.18-lp152.92.2 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:kernel-source | 5.3.18-lp152.92.2 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:kernel-source-azure | 5.3.18-38.22.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:kernel-syms | 5.3.18-lp152.92.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| suse:kernel-bigmem | 3.0.101-108.132.1 · SUSE:Linux Enterprise Server 11 SP4-LTSS | Package registry (OSV) |
| suse:kernel-default | 3.0.101-108.132.1 · SUSE:Linux Enterprise Server 11 SP4-LTSS | Package registry (OSV) |
| suse:kernel-ec2 | 3.0.101-108.132.1 · SUSE:Linux Enterprise Server 11 SP4-LTSS | Package registry (OSV) |
| suse:kernel-pae | 3.0.101-108.132.1 · SUSE:Linux Enterprise Server 11 SP4-LTSS | Package registry (OSV) |
| suse:kernel-ppc64 | 3.0.101-108.132.1 · SUSE:Linux Enterprise Server 11 SP4-LTSS | Package registry (OSV) |
| suse:kernel-rt | 5.3.18-51.2 · SUSE:Real Time Module 15 SP2 | Package registry (OSV) |
| suse:kernel-rt_debug | 5.3.18-51.2 · SUSE:Real Time Module 15 SP2 | Package registry (OSV) |
| suse:kernel-source | 3.0.101-108.132.1 · SUSE:Linux Enterprise Server 11 SP4-LTSS | Package registry (OSV) |
| suse:kernel-source-rt | 5.3.18-51.1 · SUSE:Real Time Module 15 SP2 | Package registry (OSV) |
| suse:kernel-syms | 3.0.101-108.132.1 · SUSE:Linux Enterprise Server 11 SP4-LTSS | Package registry (OSV) |
| suse:kernel-trace | 3.0.101-108.132.1 · SUSE:Linux Enterprise Server 11 SP4-LTSS | Package registry (OSV) |
| suse:kernel-xen | 3.0.101-108.132.1 · SUSE:Linux Enterprise Server 11 SP4-LTSS | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Not on record for this CVE: EPSS history · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Root cause
When data is copied, the source length is not compared with the size of the destination buffer. Excess data overwrites adjacent memory.
The bug in code
The whole CWE-120 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
char buf[256];
memcpy(buf, pkt->data, pkt->len);Fixed
char buf[256];
if (pkt->len > sizeof(buf)) {
return -EINVAL;
}
memcpy(buf, pkt->data, pkt->len);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Overflow BuffersCAPEC-100likelihood: High · Very High
- Client-side Injection-induced Buffer OverflowCAPEC-14likelihood: Medium · High
- Filter Failure through Buffer OverflowCAPEC-24likelihood: High · High
- MIME ConversionCAPEC-42likelihood: High · High
- Overflow Binary Resource FileCAPEC-44likelihood: High · Very High
- Buffer Overflow via Symbolic LinksCAPEC-45likelihood: High · High
- Overflow Variables and TagsCAPEC-46likelihood: High · High
ATT&CK techniques
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (6 more)Show less
- cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.13.4
- github.com/torvalds/linux/commit/d00d8da5869a2608e97cfede094dfc5e11462a46
- lists.debian.org/debian-lts-announce/2021/10/msg00010.html
- lists.debian.org/debian-lts-announce/2021/12/msg00012.html
- security.netapp.com/advisory/ntap-20210902-0010/
- www.debian.org/security/2021/dsa-4978
Vendor advisories and official records. Exploit/PoC links are deliberately left out.