CVE-2021-47604·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: vduse: check that offset is within bounds in get_config() This condition checks "len" but it does not check "offset" and that could result in an out of bounds read if "offset > dev->config_size". The problem is that since both variables are unsigned the "dev->config_size - offset" subtraction would result in a very high unsigned value. I think these checks might not be necessary because "len" and "offset" are supposed to already have been validated using the vhost_vdpa_config_validate() function. But I do not know the code perfectly, and I like to be safe.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.15.11
- Published
- 2024-06-19
Affected versions
From: 5.15
Until: 5.15.11
Fixed in: 5.15.11
How to fix this CVE
Update your Linux kernel to version 5.15.11 or later to address a bounds-checking vulnerability in the vduse subsystem's get_config() function. This vulnerability could allow local attackers with limited privileges to read sensitive kernel memory by exploiting improper offset validation. Apply the patch immediately to systems running kernel versions 5.15.0 through 5.15.10.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check your current kernel version and confirm if it falls within the vulnerable range (5.15.0-5.15.10)
- Verify vduse module is loaded by running 'lsmod | grep vduse'; if present, your system could be affected
- Check kernel logs for vduse-related errors using 'dmesg | grep -i vduse' to identify any abnormal memory access attempts
- After patching, confirm the new kernel version with 'uname -r' and verify it is 5.15.11 or later
FAQ
What is CVE-2021-47604?
This vulnerability exists in the Linux kernel's vduse (vhost-user device) subsystem where the get_config() function fails to properly validate the offset parameter before performing a read operation, potentially allowing out-of-bounds memory access by unprivileged local users.
Is CVE-2021-47604 being actively exploited?
No, this CVE is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are currently available. However, the vulnerability is technically sound and should be patched promptly.
What versions of Kernel are affected by CVE-2021-47604?
Linux kernel versions 5.15.0 through 5.15.10 are affected. The vulnerability was fixed in version 5.15.11.
How do I check if my server is vulnerable to CVE-2021-47604?
Execute 'uname -r' to display your kernel version. If the output shows a version between 5.15.0 and 5.15.10, your system requires the patch. Additionally, check if the vduse module is in use with 'lsmod | grep vduse'.
Does Defensia detect CVE-2021-47604?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2021-47604 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47604. Free for 1 server.
Get started free