CVE-2021-47645 media: staging: media: zoran: calculate the right buffer number for zoran_reap_stat_com

Medium 5.5 Published Updated

A miscalculated buffer index in the Zoran media driver causes a NULL pointer dereference, leading to a system crash.

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-2021-47645?

CVE-2021-47645 is a medium-severity vulnerability in Linux kernel, published on 26 Feb 2025. 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: staging: media: zoran: calculate the right buffer number for zoran_reap_stat_com

On the case tmp_dcim=1, the index of buffer is miscalculated. This generate a NULL pointer dereference later.

So let's fix the calcul and add a check to prevent this to reappear.

Weakness: CWE-476

Which versions are affected by CVE-2021-47645?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47645?

Apply the vendor's patch.

Is CVE-2021-47645 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-47645, GHSA-h53v-ff66-979g, UBUNTU-CVE-2021-47645.

Is CVE-2021-47645 in your software?

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

Check your SBOMs for free