CVE-2021-47352·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: virtio-net: Add validation for used length This adds validation for used length (might come from an untrusted device) to avoid data corruption or loss.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.13.3
- Published
- 2024-05-21
Affected versions
From: 5.13
Until: 5.13.3
Fixed in: 5.13.3
How to fix this CVE
Update your Linux kernel to version 5.13.3 or later to patch the virtio-net device validation vulnerability. This fix ensures that untrusted virtual network devices cannot inject malformed packet length values that could corrupt kernel memory or cause data loss. Apply the patch immediately if you are running kernel versions 5.13 through 5.13.2 on systems using virtio-net drivers.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with `uname -r` and verify if it falls between 5.13.0 and 5.13.2
- Step 2: Confirm virtio-net driver is loaded by running `lsmod | grep virtio_net`
- Step 3: Search system logs for errors related to virtio-net packet handling: `journalctl -u kernel | grep -i 'virtio\|net\|corruption'`
- Step 4: After patching, reboot the system and run `uname -r` to confirm kernel is 5.13.3 or later
FAQ
What is CVE-2021-47352?
This vulnerability affects the Linux kernel's virtio-net driver, which is used in virtualized environments. An untrusted virtual network device could send malicious packet length values that the kernel fails to validate, leading to memory corruption or data loss in the guest operating system.
Is CVE-2021-47352 being actively exploited?
No, this vulnerability is not currently listed in the CISA KEV catalog and has no known public exploits. However, it still requires patching due to its high severity rating and potential impact in virtualized infrastructure.
What versions of Kernel are affected by CVE-2021-47352?
Linux kernel versions 5.13.0 through 5.13.2 are vulnerable. The fix was included in kernel 5.13.3 and all subsequent releases.
How do I check if my server is vulnerable to CVE-2021-47352?
Run `uname -r` to display your kernel version. If it shows a version between 5.13.0 and 5.13.2, and you have virtio-net enabled (check with `lsmod | grep virtio_net`), your system is vulnerable.
Does Defensia detect CVE-2021-47352?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2021-47352 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/3133e01514c3c498f2b01ff210ee6134b70c663c
- https://git.kernel.org/stable/c/ad993a95c508417acdeb15244109e009e50d8758
- https://git.kernel.org/stable/c/ba710baa1cc1b17a0483f7befe03e696efd17292
- https://git.kernel.org/stable/c/c1b40d1959517ff2ea473d40eeab4691d6d62462
- https://git.kernel.org/stable/c/c92298d228f61589dd21657af2bea95fc866b813
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47352. Free for 1 server.
Get started free