CVE-2022-49746

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

MEDIUM
5.5
CVSS Score
Published: March 27, 2025 at 04:42 PM UTC
Updated: June 17, 2026 at 05:19 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.19.2724.19 ≤ v < 4.19.2724.19 ≤ v < 5.10.1674.19 ≤ v < 5.15.924.19 ≤ v < 5.4.2314.19 ≤ v < 6.1.104.19 ≤ v < 6.24.20 ≤ v < 5.4.2315.11 ≤ v < 5.15.925.16 ≤ v < 6.1.105.5 ≤ v < 5.10.16721420841a554dae8a193cd3454ba91d913cfc3206.2 rc16.2 rc26.2 rc36.2 rc4
Vendor states this is fixed in 1417f59ac0b02130ee56c0c50794b9b257be3d17 (fixed)
Vendor states this is fixed in 43acd767bd90c5d4172ce7fee5d9007a9a08dea9 (fixed)
Vendor states this is fixed in 80ee99e52936b2c04cc37b17a14b2ae2f9d282ac (fixed)
Vendor states this is fixed in bd0050b7ffa87c7b260d563646af612f4112a778 (fixed)
Vendor states this is fixed in ce4745a6b8016fae74c95dcd457d4ceef7d98af1 (fixed)
Vendor states this is fixed in dbe634ce824329d8f14079c3e9f8f11670894bec (fixed)
Vendor states this is fixed in 4.19 (unaffected)
Vendor states this is fixed in 4.19.272 (unaffected)
Vendor states this is fixed in 5.10.167 (unaffected)
Vendor states this is fixed in 5.15.92 (unaffected)
Vendor states this is fixed in 5.4.231 (unaffected)
Vendor states this is fixed in 6.1.10 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1417f59ac0b02130ee56c0c50794b9b257be3d17
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/43acd767bd90c5d4172ce7fee5d9007a9a08dea9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/80ee99e52936b2c04cc37b17a14b2ae2f9d282ac
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bd0050b7ffa87c7b260d563646af612f4112a778
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ce4745a6b8016fae74c95dcd457d4ceef7d98af1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/dbe634ce824329d8f14079c3e9f8f11670894bec

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card