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

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-02-26T01:54:14.651Z
- Modified: 2026-08-11T03:17:33.520Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 83f89a8bcbc3c520a889b5fc7c4b95669d712f65 before 8dce4b265a5357731058f69645840dabc718c687; from 83f89a8bcbc3c520a889b5fc7c4b95669d712f65 before bafec1a6ba4b187a7fcdcfce0faebdc623d4ef8e; from 83f89a8bcbc3c520a889b5fc7c4b95669d712f65 before 7e76f3ed7ab2ae026c6ef9cc23096a7554af8c52; from 83f89a8bcbc3c520a889b5fc7c4b95669d712f65 before 20db2ed1e2f9fcd417fa67853e5154f0c2537d6c; from 83f89a8bcbc3c520a889b5fc7c4b95669d712f65 before 20811bbe685ca3eddd34b0c750860427d7030910; 5.10 (not affected: before 5.10; from 5.2 before 5.10; from 5.10.110 up to 5.10.*; from 5.15.33 up to 5.15.*; from 5.16.19 up to 5.16.*; from 5.17.2 up to 5.17.*)
- linux linux_kernel: before 5.10.110; from 5.11 before 5.15.33; from 5.16 before 5.16.19; from 5.17 before 5.17.2

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/8dce4b265a5357731058f69645840dabc718c687>
- <https://git.kernel.org/stable/c/bafec1a6ba4b187a7fcdcfce0faebdc623d4ef8e> (patch)
- <https://git.kernel.org/stable/c/7e76f3ed7ab2ae026c6ef9cc23096a7554af8c52> (patch)
- <https://git.kernel.org/stable/c/20db2ed1e2f9fcd417fa67853e5154f0c2537d6c> (patch)
- <https://git.kernel.org/stable/c/20811bbe685ca3eddd34b0c750860427d7030910> (patch)

## Sources

- CVE List: [CVE-2021-47645](https://www.cve.org/CVERecord?id=CVE-2021-47645), CVE Terms of Use, modified 2026-08-11
- NVD: [CVE-2021-47645](https://nvd.nist.gov/vuln/detail/CVE-2021-47645), Public domain, modified 2026-08-11

---

Page: https://cve.day/CVE-2021-47645 · Whole record: https://cve.day/CVE-2021-47645.json · Rebuilt by cve.day 2026-11-25T22:58:09.003Z
