# CVE-2022-48948: usb: gadget: uvc: Prevent buffer overflow in setup handler

- 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.27%, higher than 20% of CVEs (2026-12-02)
- Published: 2024-10-21T20:05:37.122Z
- Modified: 2026-06-17T05:16:41.390Z
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: uvc: Prevent buffer overflow in setup handler

Setup function uvc_function_setup permits control transfer
requests with up to 64 bytes of payload (UVC_MAX_REQUEST_SIZE),
data stage handler for OUT transfer uses memcpy to copy req->actual
bytes to uvc_event->data.data array of size 60. This may result
in an overflow of 4 bytes.

(As written by CVE List.)

## Affected

- Linux Linux: from cdda479f15cd13fa50a913ca85129c0437cc7b91 before 4972e3528b968665b596b5434764ff8fd9446d35; from cdda479f15cd13fa50a913ca85129c0437cc7b91 before 06fd17ee92c8f1704c7e54ec0fd50ae0542a49a5; from cdda479f15cd13fa50a913ca85129c0437cc7b91 before bc8380fe5768c564f921f7b4eaba932e330b9e4b; from cdda479f15cd13fa50a913ca85129c0437cc7b91 before b8fb1cba934ea122b50f13a4f9d6fc4fdc43d2be; from cdda479f15cd13fa50a913ca85129c0437cc7b91 before c79538f32df12887f110dcd6b9c825b482905f24; from cdda479f15cd13fa50a913ca85129c0437cc7b91 before 6b41a35b41f77821db24f2d8f66794b390a585c5; from cdda479f15cd13fa50a913ca85129c0437cc7b91 before 7b1f773277a72f9756d47a41b94e43506cce1954; from cdda479f15cd13fa50a913ca85129c0437cc7b91 before d1a92bb8d697f170d93fe922da763d7d156b8841; from cdda479f15cd13fa50a913ca85129c0437cc7b91 before 4c92670b16727365699fe4b19ed32013bab2c107; 2.6.35 (not affected: before 2.6.35; from 4.9.337 up to 4.9.*; from 4.14.303 up to 4.14.*; from 4.19.270 up to 4.19.*; from 5.4.229 up to 5.4.*; from 5.10.161 up to 5.10.*; from 5.15.85 up to 5.15.*; from 6.0.15 up to 6.0.*; from 6.1.1 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 2.6.35 before 4.9.337; from 4.10 before 4.14.303; from 4.15 before 4.19.270; from 4.20 before 5.4.229; from 5.5 before 5.10.161; from 5.11 before 5.15.85; from 5.16 before 6.0.15; 6.1

## References

- <https://git.kernel.org/stable/c/4972e3528b968665b596b5434764ff8fd9446d35> (patch)
- <https://git.kernel.org/stable/c/06fd17ee92c8f1704c7e54ec0fd50ae0542a49a5> (patch)
- <https://git.kernel.org/stable/c/bc8380fe5768c564f921f7b4eaba932e330b9e4b> (patch)
- <https://git.kernel.org/stable/c/b8fb1cba934ea122b50f13a4f9d6fc4fdc43d2be> (patch)
- <https://git.kernel.org/stable/c/c79538f32df12887f110dcd6b9c825b482905f24> (patch)
- <https://git.kernel.org/stable/c/6b41a35b41f77821db24f2d8f66794b390a585c5> (patch)
- <https://git.kernel.org/stable/c/7b1f773277a72f9756d47a41b94e43506cce1954> (patch)
- <https://git.kernel.org/stable/c/d1a92bb8d697f170d93fe922da763d7d156b8841> (patch)
- <https://git.kernel.org/stable/c/4c92670b16727365699fe4b19ed32013bab2c107> (patch)

## Sources

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

---

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