# CVE-2023-52764: media: gspca: cpia1: shift-out-of-bounds in set\_flicker

> 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.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-05-21T15:30:49.032Z
- **Modified:** 2026-06-17T06:43:31.553Z

## Who should check

- Anyone running Linux \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< 69bba62600bd91d6b7c1e8ca181faf8ac64f7060; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< 2eee8edfff90e22980a6b22079d238c3c9d323bb; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< 8f83c85ee88225319c52680792320c02158c2a9b; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< c6b6b8692218da73b33b310d7c1df90f115bdd9a; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< 09cd8b561aa9796903710a1046957f2b112c8f26; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< a647f27a7426d2fe1b40da7c8fa2b81354a51177; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< 93bddd6529f187f510eec759f37d0569243c9809; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< e2d7149b913d14352c82624e723ce1c211ca06d3; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< 099be1822d1f095433f4b08af9cc9d6308ec1953
- Anyone running Linux 2.6.34

## Description

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

media: gspca: cpia1: shift-out-of-bounds in set\_flicker

Syzkaller reported the following issue:
UBSAN: shift-out-of-bounds in drivers/media/usb/gspca/cpia1.c:1031:27
shift exponent 245 is too large for 32-bit type 'int'

When the value of the variable "sd-\>params.exposure.gain" exceeds the
number of bits in an integer, a shift-out-of-bounds error is reported. It
is triggered because the variable "currentexp" cannot be left-shifted by
more than the number of bits in an integer. In order to avoid invalid
range during left-shift, the conditional expression is added.

## Affected and fixed versions

- Linux: \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< 69bba62600bd91d6b7c1e8ca181faf8ac64f7060; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< 2eee8edfff90e22980a6b22079d238c3c9d323bb; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< 8f83c85ee88225319c52680792320c02158c2a9b; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< c6b6b8692218da73b33b310d7c1df90f115bdd9a; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< 09cd8b561aa9796903710a1046957f2b112c8f26; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< a647f27a7426d2fe1b40da7c8fa2b81354a51177; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< 93bddd6529f187f510eec759f37d0569243c9809; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< e2d7149b913d14352c82624e723ce1c211ca06d3; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< 099be1822d1f095433f4b08af9cc9d6308ec1953 (cvelist)
- Linux: 2.6.34 (cvelist)

## Mitigation

- Upgrade Linux to 099be1822d1f095433f4b08af9cc9d6308ec1953 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-52764.md
Affected: Linux >= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, < 69bba62600bd91d6b7c1e8ca181faf8ac64f7060; >= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, < 2eee8edfff90e22980a6b22079d238c3c9d323bb; >= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, < 8f83c85ee88225319c52680792320c02158c2a9b; >= 54e8bc5d64a651e2fb8b236…
Fixed in: Linux 69bba62600bd91d6b7c1e8ca181faf8ac64f7060, Linux 2eee8edfff90e22980a6b22079d238c3c9d323bb, Linux 8f83c85ee88225319c52680792320c02158c2a9b, Linux 09cd8b561aa9796903710a1046957f2b112c8f26, Linux 93bddd6529f187f510eec759f37d0569243c9809, Linux 099be1822d1f095433f4b08af9cc9d6308ec1953

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-2023-52764 being exploited?

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

### How serious is CVE-2023-52764?

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

### Which versions are affected by CVE-2023-52764?

Linux \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< 69bba62600bd91d6b7c1e8ca181faf8ac64f7060; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< 2eee8edfff90e22980a6b22079d238c3c9d323bb; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< 8f83c85ee88225319c52680792320c02158c2a9b; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< c6b6b8692218da73b33b310d7c1df90f115bdd9a; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< 09cd8b561aa9796903710a1046957f2b112c8f26; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< a647f27a7426d2fe1b40da7c8fa2b81354a51177; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< 93bddd6529f187f510eec759f37d0569243c9809; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< e2d7149b913d14352c82624e723ce1c211ca06d3; \>= 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70, \< 099be1822d1f095433f4b08af9cc9d6308ec1953; Linux 2.6.34.

### Is there a fix for CVE-2023-52764?

Yes. Fixed in Linux 69bba62600bd91d6b7c1e8ca181faf8ac64f7060, Linux 2eee8edfff90e22980a6b22079d238c3c9d323bb, Linux 8f83c85ee88225319c52680792320c02158c2a9b, Linux 09cd8b561aa9796903710a1046957f2b112c8f26, Linux 93bddd6529f187f510eec759f37d0569243c9809, Linux 099be1822d1f095433f4b08af9cc9d6308ec1953. Upgrade Linux to 099be1822d1f095433f4b08af9cc9d6308ec1953 or later.

### How do I check if I'm affected by CVE-2023-52764?

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/69bba62600bd91d6b7c1e8ca181faf8ac64f7060>
- patch: <https://git.kernel.org/stable/c/2eee8edfff90e22980a6b22079d238c3c9d323bb>
- patch: <https://git.kernel.org/stable/c/8f83c85ee88225319c52680792320c02158c2a9b>
- patch: <https://git.kernel.org/stable/c/c6b6b8692218da73b33b310d7c1df90f115bdd9a>
- patch: <https://git.kernel.org/stable/c/09cd8b561aa9796903710a1046957f2b112c8f26>
- patch: <https://git.kernel.org/stable/c/a647f27a7426d2fe1b40da7c8fa2b81354a51177>
- patch: <https://git.kernel.org/stable/c/93bddd6529f187f510eec759f37d0569243c9809>
- patch: <https://git.kernel.org/stable/c/e2d7149b913d14352c82624e723ce1c211ca06d3>
- patch: <https://git.kernel.org/stable/c/099be1822d1f095433f4b08af9cc9d6308ec1953>

## 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-2023-52764>

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