Bug 2348242 (CVE-2021-47645)

Summary: CVE-2021-47645 kernel: media: staging: media: zoran: calculate the right buffer number for zoran_reap_stat_com
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dfreiber, drow, jburrell, rhel-process-autobot, vkumar, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel's Zoran video capture staging driver. When handling video capture buffers under specific conditions, the driver miscalculates the buffer index, triggering a NULL pointer dereference (an invalid memory access). A local user could exploit this vulnerability to crash the kernel, resulting in a denial of service (DoS).
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2025-02-26 03:22:35 UTC
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.

Comment 1 Avinash Hanwate 2025-02-26 19:58:05 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022648-CVE-2021-47645-ab28@gregkh/T