# CVE-2022-25258: An issue was discovered in drivers/usb/gadget/composite.c in the Linux kernel before 5.16.10.

- Severity: Medium 4.6 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:P/AC:L/PR:N/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.92%, higher than 61% of CVEs (2026-12-01)
- Published: 2022-02-16T00:00:00.000Z
- Modified: 2026-06-17T04:33:17.313Z
- Weaknesses: CWE-476
- Assigned by: mitre

## Description

An issue was discovered in drivers/usb/gadget/composite.c in the Linux kernel before 5.16.10. The USB Gadget subsystem lacks certain validation of interface OS descriptor requests (ones with a large array index and ones associated with NULL function pointer retrieval). Memory corruption might occur.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- linux linux_kernel: before 5.16.10
- fedoraproject fedora: 35
- debian debian_linux: 9.0; 10.0; 11.0
- netapp active_iq_unified_manager: no versions given
- netapp h300s_firmware: no versions given
- netapp h500s_firmware: no versions given
- netapp h700s_firmware: no versions given
- netapp h410s_firmware: no versions given
- netapp h410c_firmware: no versions given

## Every score

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

## References

- <https://github.com/torvalds/linux/commit/75e5b4849b81e19e9efe1654b30d7f3151c33c2c> (patch, third-party-advisory)
- <https://github.com/szymonh/d-os-descriptor> (issue-tracking, third-party-advisory)
- <https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.16.10> (release-notes, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TCW2KZYJ2H6BKZE3CVLHRIXYDGNYYC5P/> (vendor-advisory)
- <https://www.debian.org/security/2022/dsa-5092> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/03/msg00011.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/03/msg00012.html> (mailing-list, third-party-advisory)
- <https://www.debian.org/security/2022/dsa-5096> (third-party-advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20221028-0007/> (third-party-advisory)

## Sources

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

---

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