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

High 7.8 Published Updated

A shift-out-of-bounds error in the Linux kernel's gspca cpia1 driver can cause a denial of service when processing invalid exposure gain values.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-52764?

CVE-2023-52764 is a high-severity vulnerability in Linux kernel, published on 21 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-787

Which versions are affected by CVE-2023-52764?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-52764?

Apply the vendor's patch.

Is CVE-2023-52764 being exploited?

There is no known exploitation of CVE-2023-52764 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-52764, DEBIAN-CVE-2023-52764, GHSA-3f2p-fcxq-w4cm, UBUNTU-CVE-2023-52764.

Is CVE-2023-52764 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free