CVE-2022-49746

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

Medium · published March 27, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
8.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00195 · 8.7th percentile
Published
2025-03-27T16:42Z
EPSS history
Timeline
  • 27 MAR 16:42Z
    dmaengine: imx-sdma: Fix a possible memory leak in sdma_transfer_init
    cvelistv5