media: gspca: cpia1: shift-out-of-bounds in set_flicker
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 54e8bc5d64a651e2fb8b2366637e6a7d920a4c70 · < a647f27a7426d2fe1b40da7c8fa2b81354a51177| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's gspca cpia1 driver has a shift-out-of-bounds error in set_flicker when the exposure gain exceeds the number of bits in an integer. The input does not establish how an attacker could trigger it or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check whether their version includes the vulnerable gspca cpia1 driver; affected versions are not specified.