# CVE-2023-52764: media: gspca: cpia1: shift-out-of-bounds in set_flicker

- 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.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2024-05-21T15:30:49.032Z
- Modified: 2026-06-17T06:43:31.553Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70 before 69bba62600bd91d6b7c1e8ca181faf8ac64f7060; from 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70 before 2eee8edfff90e22980a6b22079d238c3c9d323bb; from 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70 before 8f83c85ee88225319c52680792320c02158c2a9b; from 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70 before c6b6b8692218da73b33b310d7c1df90f115bdd9a; from 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70 before 09cd8b561aa9796903710a1046957f2b112c8f26; from 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70 before a647f27a7426d2fe1b40da7c8fa2b81354a51177; from 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70 before 93bddd6529f187f510eec759f37d0569243c9809; from 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70 before e2d7149b913d14352c82624e723ce1c211ca06d3; from 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70 before 099be1822d1f095433f4b08af9cc9d6308ec1953; 2.6.34 (not affected: before 2.6.34; from 4.14.331 up to 4.14.*; from 4.19.300 up to 4.19.*; from 5.4.262 up to 5.4.*; from 5.10.202 up to 5.10.*; from 5.15.140 up to 5.15.*; from 6.1.64 up to 6.1.*; from 6.5.13 up to 6.5.*; from 6.6.3 up to 6.6.*; from 6.7 up to *)
- linux linux_kernel: before 4.14.331; from 4.15 before 4.19.300; from 4.20 before 5.4.262; from 5.5 before 5.10.202; from 5.11 before 5.15.140; from 5.16 before 6.1.64; from 6.2 before 6.5.13; from 6.6 before 6.6.3

## References

- <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> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2023-52764 · Whole record: https://cve.day/CVE-2023-52764.json · Rebuilt by cve.day 2026-11-25T22:58:34.007Z
