# CVE-2021-47404: HID: betop: fix slab-out-of-bounds Write in betop_probe

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2024-05-21T15:03:58.021Z
- Modified: 2026-06-17T04:17:23.723Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 52cd7785f3cdd2724f4efb5b21dbc75d6f9ccef4 before a4faa7153b87fbcfe4be15f4278676f79ca6e019; from 52cd7785f3cdd2724f4efb5b21dbc75d6f9ccef4 before 6fc4476dda58f6c00097c7ddec3b772513f57525; from 52cd7785f3cdd2724f4efb5b21dbc75d6f9ccef4 before 1c83c38dec83d57bc18d0c01d82c413d3b34ccb9; from 52cd7785f3cdd2724f4efb5b21dbc75d6f9ccef4 before bb8b72374db69afa25a5b65cf1c092860c6fe914; from 52cd7785f3cdd2724f4efb5b21dbc75d6f9ccef4 before fe9bb925e7096509711660d39c0493a1546e9550; from 52cd7785f3cdd2724f4efb5b21dbc75d6f9ccef4 before dedfc35a2de2bae9fa3da8210a05bfd515f83fee; from 52cd7785f3cdd2724f4efb5b21dbc75d6f9ccef4 before 708107b80aa616976d1c5fa60ac0c1390749db5e; from 52cd7785f3cdd2724f4efb5b21dbc75d6f9ccef4 before 1e4ce418b1cb1a810256b5fb3fd33d22d1325993; 4.0 (not affected: before 4.0; from 4.4.286 up to 4.4.*; from 4.9.285 up to 4.9.*; from 4.14.249 up to 4.14.*; from 4.19.209 up to 4.19.*; from 5.4.151 up to 5.4.*; from 5.10.71 up to 5.10.*; from 5.14.10 up to 5.14.*; from 5.15 up to *)
- linux linux_kernel: before 4.4.286; from 4.5 before 4.9.285; from 4.10 before 4.14.249; from 4.15 before 4.19.209; from 4.20 before 5.4.151; from 5.5 before 5.10.71; from 5.11 before 5.14.10; 5.15

## References

- <https://git.kernel.org/stable/c/a4faa7153b87fbcfe4be15f4278676f79ca6e019> (patch)
- <https://git.kernel.org/stable/c/6fc4476dda58f6c00097c7ddec3b772513f57525> (patch)
- <https://git.kernel.org/stable/c/1c83c38dec83d57bc18d0c01d82c413d3b34ccb9> (patch)
- <https://git.kernel.org/stable/c/bb8b72374db69afa25a5b65cf1c092860c6fe914> (patch)
- <https://git.kernel.org/stable/c/fe9bb925e7096509711660d39c0493a1546e9550> (patch)
- <https://git.kernel.org/stable/c/dedfc35a2de2bae9fa3da8210a05bfd515f83fee> (patch)
- <https://git.kernel.org/stable/c/708107b80aa616976d1c5fa60ac0c1390749db5e> (patch)
- <https://git.kernel.org/stable/c/1e4ce418b1cb1a810256b5fb3fd33d22d1325993> (patch)

## Sources

- CVE List: [CVE-2021-47404](https://www.cve.org/CVERecord?id=CVE-2021-47404), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47404](https://nvd.nist.gov/vuln/detail/CVE-2021-47404), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47404 · Whole record: https://cve.day/CVE-2021-47404.json · Rebuilt by cve.day 2026-11-25T22:58:08.839Z
