CVE-2023-52764

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

HIGH
7.8
CVSS Score
Published: May 21, 2024 at 03:30 PM UTC
Updated: June 17, 2026 at 06:43 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.14.3312.6.34 ≤ v < 4.14.3312.6.34 ≤ v < 4.19.3002.6.34 ≤ v < 5.10.2022.6.34 ≤ v < 5.15.1402.6.34 ≤ v < 5.4.2622.6.34 ≤ v < 6.1.642.6.34 ≤ v < 6.5.132.6.34 ≤ v < 6.6.32.6.34 ≤ v < 6.74.15 ≤ v < 4.19.3004.20 ≤ v < 5.4.2625.11 ≤ v < 5.15.1405.16 ≤ v < 6.1.645.5 ≤ v < 5.10.2026.2 ≤ v < 6.5.136.6 ≤ v < 6.6.32.6.3454e8bc5d64a651e2fb8b2366637e6a7d920a4c70
Vendor states this is fixed in 099be1822d1f095433f4b08af9cc9d6308ec1953 (fixed)
Vendor states this is fixed in 09cd8b561aa9796903710a1046957f2b112c8f26 (fixed)
Vendor states this is fixed in 2eee8edfff90e22980a6b22079d238c3c9d323bb (fixed)
Vendor states this is fixed in 69bba62600bd91d6b7c1e8ca181faf8ac64f7060 (fixed)
Vendor states this is fixed in 8f83c85ee88225319c52680792320c02158c2a9b (fixed)
Vendor states this is fixed in 93bddd6529f187f510eec759f37d0569243c9809 (fixed)
Vendor states this is fixed in a647f27a7426d2fe1b40da7c8fa2b81354a51177 (fixed)
Vendor states this is fixed in c6b6b8692218da73b33b310d7c1df90f115bdd9a (fixed)
Vendor states this is fixed in e2d7149b913d14352c82624e723ce1c211ca06d3 (fixed)
Vendor states this is fixed in 2.6.34 (unaffected)
Vendor states this is fixed in 4.14.331 (unaffected)
Vendor states this is fixed in 4.19.300 (unaffected)
Vendor states this is fixed in 5.10.202 (unaffected)
Vendor states this is fixed in 5.15.140 (unaffected)
Vendor states this is fixed in 5.4.262 (unaffected)
Vendor states this is fixed in 6.1.64 (unaffected)
Vendor states this is fixed in 6.5.13 (unaffected)
Vendor states this is fixed in 6.6.3 (unaffected)
Vendor states this is fixed in 6.7 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/099be1822d1f095433f4b08af9cc9d6308ec1953
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/09cd8b561aa9796903710a1046957f2b112c8f26
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2eee8edfff90e22980a6b22079d238c3c9d323bb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/69bba62600bd91d6b7c1e8ca181faf8ac64f7060
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8f83c85ee88225319c52680792320c02158c2a9b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/93bddd6529f187f510eec759f37d0569243c9809
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a647f27a7426d2fe1b40da7c8fa2b81354a51177
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c6b6b8692218da73b33b310d7c1df90f115bdd9a

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-787

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card