CVE-2021-47404 HID: betop: fix slab-out-of-bounds Write in betop_probe
A malicious HID device can trigger a slab-out-of-bounds write in the Linux kernel betop driver, potentially leading to code execution or system crash.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-47404?
CVE-2021-47404 is a high-severity memory corruption vulnerability in Linux kernel, published on 21 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
HID: betop: fix slab-out-of-bounds Write in betop_probe
Syzbot reported slab-out-of-bounds Write bug in hid-betopff driver. The problem is the driver assumes the device must have an input report but some malicious devices violate this assumption.
So this patch checks hid_device's input is non empty before it's been used.
Weakness: CWE-787
Which versions are affected by CVE-2021-47404?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47404?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-47404 being exploited?
There is no known exploitation of CVE-2021-47404 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47404, GHSA-w883-jj58-rv96, UBUNTU-CVE-2021-47404.