Bug 2348299 (CVE-2021-47655) - CVE-2021-47655 kernel: media: venus: vdec: fixed possible memory leak issue
Summary: CVE-2021-47655 kernel: media: venus: vdec: fixed possible memory leak issue
Keywords:
Status: NEW
Alias: CVE-2021-47655
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:24 UTC by OSIDB Bzimport
Modified: 2025-02-26 19:07 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:24:36 UTC
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")

Comment 1 Avinash Hanwate 2025-02-26 18:59:21 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022650-CVE-2021-47655-0491@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.