# CVE-2022-49746: dmaengine: imx-sdma: Fix a possible memory leak in sdma_transfer_init

- 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.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-03-27T16:42:56.372Z
- Modified: 2026-06-17T05:19:01.707Z
- 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:

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 21420841a554dae8a193cd3454ba91d913cfc320 before 80ee99e52936b2c04cc37b17a14b2ae2f9d282ac; from 21420841a554dae8a193cd3454ba91d913cfc320 before dbe634ce824329d8f14079c3e9f8f11670894bec; from 21420841a554dae8a193cd3454ba91d913cfc320 before bd0050b7ffa87c7b260d563646af612f4112a778; from 21420841a554dae8a193cd3454ba91d913cfc320 before 43acd767bd90c5d4172ce7fee5d9007a9a08dea9; from 21420841a554dae8a193cd3454ba91d913cfc320 before ce4745a6b8016fae74c95dcd457d4ceef7d98af1; from 21420841a554dae8a193cd3454ba91d913cfc320 before 1417f59ac0b02130ee56c0c50794b9b257be3d17; 4.19 (not affected: before 4.19; from 4.19.272 up to 4.19.*; from 5.4.231 up to 5.4.*; from 5.10.167 up to 5.10.*; from 5.15.92 up to 5.15.*; from 6.1.10 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: before 4.19.272; from 4.20 before 5.4.231; from 5.5 before 5.10.167; from 5.11 before 5.15.92; from 5.16 before 6.1.10; 6.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/80ee99e52936b2c04cc37b17a14b2ae2f9d282ac> (patch)
- <https://git.kernel.org/stable/c/dbe634ce824329d8f14079c3e9f8f11670894bec> (patch)
- <https://git.kernel.org/stable/c/bd0050b7ffa87c7b260d563646af612f4112a778> (patch)
- <https://git.kernel.org/stable/c/43acd767bd90c5d4172ce7fee5d9007a9a08dea9> (patch)
- <https://git.kernel.org/stable/c/ce4745a6b8016fae74c95dcd457d4ceef7d98af1> (patch)
- <https://git.kernel.org/stable/c/1417f59ac0b02130ee56c0c50794b9b257be3d17> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2022-49746 · Whole record: https://cve.day/CVE-2022-49746.json · Rebuilt by cve.day 2026-11-25T22:58:20.843Z
