CVE-2021-47405·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: HID: usbhid: free raw_report buffers in usbhid_stop Free the unsent raw_report buffers when the device is removed. Fixes a memory leak reported by syzbot at: https://syzkaller.appspot.com/bug?id=7b4fa7cb1a7c2d3342a2a8a6c53371c8c418ab47
- Severity
- medium
- Software
- Kernel
- Fixed in
- 5.14.10
- Published
- 2024-05-21
Affected versions
From: 5.11
Until: 5.14.10
Fixed in: 5.14.10
How to fix this CVE
Update your Linux kernel to version 5.14.10 or later to patch a memory leak in the USB HID subsystem that occurs when HID devices are disconnected. The vulnerability causes raw_report buffers to remain allocated in kernel memory even after device removal, gradually consuming system resources. Apply the patch through your distribution's kernel update mechanism to resolve the issue and restore proper memory management.
sudo dnf check-update kernel && sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with `uname -r` and compare against the vulnerable range 5.11.x through 5.14.9
- Step 2: Verify USB HID devices are present on the system with `lsusb | grep -i hid` or check `/proc/bus/input/devices` for HID input devices
- Step 3: Monitor kernel memory usage before and after connecting/disconnecting HID devices using `free -h` and `cat /proc/meminfo` to detect gradual memory consumption that doesn't recover
- Step 4: After updating the kernel, reboot with `sudo reboot` and confirm the new version with `uname -r` is 5.14.10 or later
FAQ
What is CVE-2021-47405?
CVE-2021-47405 is a memory leak vulnerability in the Linux kernel's USB HID (Human Interface Device) driver that fails to properly deallocate raw_report buffers when HID devices are disconnected, causing kernel memory to be consumed without recovery.
Is CVE-2021-47405 being actively exploited?
No, CVE-2021-47405 is not listed in CISA's Known Exploited Vulnerabilities catalog and has no public exploits available. The vulnerability is primarily a denial-of-service risk through resource exhaustion rather than a direct attack vector.
What versions of Kernel are affected by CVE-2021-47405?
Linux kernel versions 5.11 through 5.14.9 are affected. Kernel 5.14.10 and later contain the fix.
How do I check if my server is vulnerable to CVE-2021-47405?
Run `uname -r` to display your kernel version. If the output shows version 5.11.x, 5.12.x, 5.13.x, or 5.14.0 through 5.14.9, your system is vulnerable and requires a kernel update.
Does Defensia detect CVE-2021-47405?
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-47405 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/2b704864c92dcec2b295f276fcfbfb81d9831f81
- https://git.kernel.org/stable/c/764ac04de056801dfe52a716da63f6e7018e7f3b
- https://git.kernel.org/stable/c/7ce4e49146612261265671b1d30d117139021030
- https://git.kernel.org/stable/c/965147067fa1bedff3ae1f07ce3f89f1a14d2df3
- https://git.kernel.org/stable/c/c3156fea4d8a0e643625dff69a0421e872d1fdae
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47405. Free for 1 server.
Get started free