# CVE-2021-47405: HID: usbhid: free raw_report buffers in usbhid_stop

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-05-21T15:03:58.680Z
- Modified: 2026-06-17T04:17:23.873Z
- Weaknesses: CWE-401
- 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: 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

(As written by CVE List.)

## Affected

- Linux Linux: from f129ea6d1efe0eddcbb1f0faaec5623788ad9e58 before 7ce4e49146612261265671b1d30d117139021030; from f129ea6d1efe0eddcbb1f0faaec5623788ad9e58 before efc5c8d29256955cc90d8d570849b2d6121ed09f; from f129ea6d1efe0eddcbb1f0faaec5623788ad9e58 before c3156fea4d8a0e643625dff69a0421e872d1fdae; from f129ea6d1efe0eddcbb1f0faaec5623788ad9e58 before 764ac04de056801dfe52a716da63f6e7018e7f3b; from f129ea6d1efe0eddcbb1f0faaec5623788ad9e58 before 965147067fa1bedff3ae1f07ce3f89f1a14d2df3; from f129ea6d1efe0eddcbb1f0faaec5623788ad9e58 before f7ac4d24e1610b92689946fa88177673f1e88a3f; from f129ea6d1efe0eddcbb1f0faaec5623788ad9e58 before 2b704864c92dcec2b295f276fcfbfb81d9831f81; from f129ea6d1efe0eddcbb1f0faaec5623788ad9e58 before f7744fa16b96da57187dc8e5634152d3b63d72de; 2.6.28 (not affected: before 2.6.28; 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

## References

- <https://git.kernel.org/stable/c/7ce4e49146612261265671b1d30d117139021030> (patch)
- <https://git.kernel.org/stable/c/efc5c8d29256955cc90d8d570849b2d6121ed09f> (patch)
- <https://git.kernel.org/stable/c/c3156fea4d8a0e643625dff69a0421e872d1fdae> (patch)
- <https://git.kernel.org/stable/c/764ac04de056801dfe52a716da63f6e7018e7f3b> (patch)
- <https://git.kernel.org/stable/c/965147067fa1bedff3ae1f07ce3f89f1a14d2df3> (patch)
- <https://git.kernel.org/stable/c/f7ac4d24e1610b92689946fa88177673f1e88a3f> (patch)
- <https://git.kernel.org/stable/c/2b704864c92dcec2b295f276fcfbfb81d9831f81> (patch)
- <https://git.kernel.org/stable/c/f7744fa16b96da57187dc8e5634152d3b63d72de> (patch)

## Sources

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

---

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