# CVE-2022-24958: drivers/usb/gadget/legacy/inode.c in the Linux kernel through 5.16.8 mishandles dev-buf release.

- 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.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2022-02-11T04:21:36.000Z
- Modified: 2026-09-11T16:17:32.383Z
- Weaknesses: CWE-763
- Assigned by: mitre

## Description

drivers/usb/gadget/legacy/inode.c in the Linux kernel through 5.16.8 mishandles dev->buf release.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- linux linux_kernel: before 4.9.305; from 4.10 before 4.14.270; from 4.15 before 4.19.233; from 4.20 before 5.4.183; from 5.5 before 5.10.104; from 5.11 before 5.15.27; from 5.16 before 5.16.13
- fedoraproject fedora: 34; 35
- netapp h300s_firmware: no versions given
- netapp h500s_firmware: no versions given
- netapp h700s_firmware: no versions given
- netapp h300e_firmware: no versions given
- netapp h500e_firmware: no versions given
- netapp h700e_firmware: no versions given
- netapp h410s_firmware: no versions given
- netapp h410c_firmware: no versions given
- debian debian_linux: 9.0

## Every score

- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=89f3594d0de58e8a57d92d497dea9fee3d4b9cda> (patch, vendor-advisory)
- <https://github.com/torvalds/linux/commit/89f3594d0de58e8a57d92d497dea9fee3d4b9cda> (patch, third-party-advisory)
- <https://github.com/torvalds/linux/commit/501e38a5531efbd77d5c73c0ba838a889bfc1d74> (patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TCW2KZYJ2H6BKZE3CVLHRIXYDGNYYC5P/> (broken-link, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SUVZA2YVOQJBJTDIDQ5HF5TAU2C6WP6H/> (broken-link, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20220225-0008/> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/07/msg00000.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2022-24958](https://www.cve.org/CVERecord?id=CVE-2022-24958), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2022-24958](https://nvd.nist.gov/vuln/detail/CVE-2022-24958), Public domain, modified 2026-09-11

---

Page: https://cve.day/CVE-2022-24958 · Whole record: https://cve.day/CVE-2022-24958.json · Rebuilt by cve.day 2026-11-25T22:58:09.642Z
