Bug 2355504 (CVE-2022-49746) - CVE-2022-49746 kernel: dmaengine: imx-sdma: Fix a possible memory leak in sdma_transfer_init
Summary: CVE-2022-49746 kernel: dmaengine: imx-sdma: Fix a possible memory leak in sdm...
Keywords:
Status: NEW
Alias: CVE-2022-49746
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-27 17:04 UTC by OSIDB Bzimport
Modified: 2025-04-01 04:16 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-03-27 17:04:40 UTC
In the Linux kernel, the following vulnerability has been resolved:

dmaengine: imx-sdma: Fix a possible memory leak in sdma_transfer_init

If the function sdma_load_context() fails, the sdma_desc will be
freed, but the allocated desc->bd is forgot to be freed.

We already met the sdma_load_context() failure case and the log as
below:
[ 450.699064] imx-sdma 30bd0000.dma-controller: Timeout waiting for CH0 ready
...

In this case, the desc->bd will not be freed without this change.


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