CVE-2023-52764
JSON

7.8high

media: gspca: cpia1: shift-out-of-bounds in set_flicker

Severity
7.8high CVSS:3.1 by NVD
Exploit likelihood
0.26% (higher than 18% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 and 2 more
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.*
CVE List
linux linux_kernelbefore 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.3NVD

Classification

CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: media: gspca: cpia1: desplazamiento fuera de los límites en set_flicker. Syzkaller informó el siguiente problema: UBSAN: desplazamiento fuera de los límites en drivers/media/usb/gspca /cpia1.c:1031:27 el exponente de desplazamiento 245 es demasiado grande para el tipo 'int' de 32 bits. Cuando el valor de la variable "sd->params.exposure.gain" excede el número de bits en un número entero, se realiza un desplazamiento. Se informa un error fuera de los límites. Se activa porque la variable "currentexp" no puede desplazarse hacia la izquierda más que el número de bits de un número entero. Para evitar un rango no válido durante el desplazamiento a la izquierda, se agrega la expresión condicional.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-52764 changed 2026-05-11CVE Terms of Use
NVDCVE-2023-52764 changed 2026-06-17Public domain