CVE-2022-49746

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

5.5 medium EPSS 0.19%

Published 27 Mar 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-49746

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-49746 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

5.5 medium CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 9.61% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 1 Oct 2025):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-401 Missing Release of Memory after Effective Lifetime

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 21420841a554dae8a193cd3454ba91d913cfc320, before 80ee99e52936b2c04cc37b17a14b2ae2f9d282ac
affected from 21420841a554dae8a193cd3454ba91d913cfc320, before dbe634ce824329d8f14079c3e9f8f11670894bec
affected from 21420841a554dae8a193cd3454ba91d913cfc320, before bd0050b7ffa87c7b260d563646af612f4112a778
affected from 21420841a554dae8a193cd3454ba91d913cfc320, before 43acd767bd90c5d4172ce7fee5d9007a9a08dea9
affected from 21420841a554dae8a193cd3454ba91d913cfc320, before ce4745a6b8016fae74c95dcd457d4ceef7d98af1
affected from 21420841a554dae8a193cd3454ba91d913cfc320, before 1417f59ac0b02130ee56c0c50794b9b257be3d17
Other versions: unaffected
Linux
affected 4.19
unaffected before 4.19
unaffected from 4.19.272 up to and including 4.19.*
unaffected from 5.4.231 up to and including 5.4.*
unaffected from 5.10.167 up to and including 5.10.*
unaffected from 5.15.92 up to and including 5.15.*
unaffected from 6.1.10 up to and including 6.1.*
unaffected 6.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-49746 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49746

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-49746
trivy image --scanners vuln IMAGE | grep CVE-2022-49746

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-49746 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.