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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.35% (percentile 21, 2026-11-26)
- **CWE:** CWE-120
- **Published:** 2024-10-21T20:05:37.122Z
- **Modified:** 2026-06-17T05:16:41.390Z

## Who should check

- Anyone running Linux \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< 4972e3528b968665b596b5434764ff8fd9446d35; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< 06fd17ee92c8f1704c7e54ec0fd50ae0542a49a5; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< bc8380fe5768c564f921f7b4eaba932e330b9e4b; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< b8fb1cba934ea122b50f13a4f9d6fc4fdc43d2be; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< c79538f32df12887f110dcd6b9c825b482905f24; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< 6b41a35b41f77821db24f2d8f66794b390a585c5; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< 7b1f773277a72f9756d47a41b94e43506cce1954; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< d1a92bb8d697f170d93fe922da763d7d156b8841; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< 4c92670b16727365699fe4b19ed32013bab2c107
- Anyone running Linux 2.6.35

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

## Affected and fixed versions

- Linux: \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< 4972e3528b968665b596b5434764ff8fd9446d35; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< 06fd17ee92c8f1704c7e54ec0fd50ae0542a49a5; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< bc8380fe5768c564f921f7b4eaba932e330b9e4b; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< b8fb1cba934ea122b50f13a4f9d6fc4fdc43d2be; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< c79538f32df12887f110dcd6b9c825b482905f24; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< 6b41a35b41f77821db24f2d8f66794b390a585c5; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< 7b1f773277a72f9756d47a41b94e43506cce1954; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< d1a92bb8d697f170d93fe922da763d7d156b8841; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< 4c92670b16727365699fe4b19ed32013bab2c107 (cvelist)
- Linux: 2.6.35 (cvelist)

## Mitigation

- Upgrade Linux to 4c92670b16727365699fe4b19ed32013bab2c107 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-48948. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48948.md
Affected: Linux >= cdda479f15cd13fa50a913ca85129c0437cc7b91, < 4972e3528b968665b596b5434764ff8fd9446d35; >= cdda479f15cd13fa50a913ca85129c0437cc7b91, < 06fd17ee92c8f1704c7e54ec0fd50ae0542a49a5; >= cdda479f15cd13fa50a913ca85129c0437cc7b91, < bc8380fe5768c564f921f7b4eaba932e330b9e4b; >= cdda479f15cd13fa50a913c…
Fixed in: Linux 4972e3528b968665b596b5434764ff8fd9446d35, Linux 06fd17ee92c8f1704c7e54ec0fd50ae0542a49a5, Linux 6b41a35b41f77821db24f2d8f66794b390a585c5, Linux 7b1f773277a72f9756d47a41b94e43506cce1954, Linux 4c92670b16727365699fe4b19ed32013bab2c107

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-48948 being exploited?

There is no confirmed exploitation: CVE-2022-48948 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-48948?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-48948?

Linux \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< 4972e3528b968665b596b5434764ff8fd9446d35; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< 06fd17ee92c8f1704c7e54ec0fd50ae0542a49a5; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< bc8380fe5768c564f921f7b4eaba932e330b9e4b; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< b8fb1cba934ea122b50f13a4f9d6fc4fdc43d2be; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< c79538f32df12887f110dcd6b9c825b482905f24; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< 6b41a35b41f77821db24f2d8f66794b390a585c5; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< 7b1f773277a72f9756d47a41b94e43506cce1954; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< d1a92bb8d697f170d93fe922da763d7d156b8841; \>= cdda479f15cd13fa50a913ca85129c0437cc7b91, \< 4c92670b16727365699fe4b19ed32013bab2c107; Linux 2.6.35.

### Is there a fix for CVE-2022-48948?

Yes. Fixed in Linux 4972e3528b968665b596b5434764ff8fd9446d35, Linux 06fd17ee92c8f1704c7e54ec0fd50ae0542a49a5, Linux 6b41a35b41f77821db24f2d8f66794b390a585c5, Linux 7b1f773277a72f9756d47a41b94e43506cce1954, Linux 4c92670b16727365699fe4b19ed32013bab2c107. Upgrade Linux to 4c92670b16727365699fe4b19ed32013bab2c107 or later.

### How do I check if I'm affected by CVE-2022-48948?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-48948>

HTML: <https://flawdb.com/CVE-2022-48948> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-48948>
