# CVE-2021-47655: media: venus: vdec: fixed possible memory leak issue

- 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.25%, higher than 16% of CVEs (2026-12-01)
- Published: 2025-02-26T01:54:19.584Z
- Modified: 2026-06-17T04:18:15.527Z
- Weaknesses: CWE-401
- 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: venus: vdec: fixed possible memory leak issue

The venus_helper_alloc_dpb_bufs() implementation allows an early return
on an error path when checking the id from ida_alloc_min() which would
not release the earlier buffer allocation.

Move the direct kfree() from the error checking of dma_alloc_attrs() to
the common fail path to ensure that allocations are released on all
error paths in this function.

Addresses-Coverity: 1494120 ("Resource leak")

(As written by CVE List.)

## Affected

- Linux Linux: from 745e6d8bbe6a6e2e40b1609cea114c129f17031a before 5cedfe8aaf1875a5305897107b7f298db4260019; from 40d87aafee29fb01ce1e1868502fb2059a6a7f34 before 55bccafc246b2e64763a155ec454470c07a54a6e; from 40d87aafee29fb01ce1e1868502fb2059a6a7f34 before 5f89d05ba93df9c2cdfe493843f93288e55e99eb; from 40d87aafee29fb01ce1e1868502fb2059a6a7f34 before 8403fdd775858a7bf04868d43daea0acbe49ddfc; 5.16 (not affected: before 5.16; from 5.16.19 up to 5.16.*; from 5.17.2 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: 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/5cedfe8aaf1875a5305897107b7f298db4260019> (patch)
- <https://git.kernel.org/stable/c/55bccafc246b2e64763a155ec454470c07a54a6e> (patch)
- <https://git.kernel.org/stable/c/5f89d05ba93df9c2cdfe493843f93288e55e99eb> (patch)
- <https://git.kernel.org/stable/c/8403fdd775858a7bf04868d43daea0acbe49ddfc> (patch)

## Sources

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

---

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