# CVE-2022-48774: dmaengine: ptdma: Fix the error handling path in pt_core_init()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `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.22%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-07-16T11:13:13.806Z
- Modified: 2026-06-17T05:16:09.807Z
- 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: ptdma: Fix the error handling path in pt_core_init()

In order to free resources correctly in the error handling path of
pt_core_init(), 2 goto's have to be switched. Otherwise, some resources
will leak and we will try to release things that have not been allocated
yet.

Also move a dev_err() to a place where it is more meaningful.

(As written by CVE List.)

## Affected

- Linux Linux: from fa5d823b16a9442d609617abeec31da8b6afa224 before 3e41445287afa3cf6d572778e5aab31d25e60a8d; from fa5d823b16a9442d609617abeec31da8b6afa224 before d7de1e4820c5a42441ff7276174c8c0e63575c1b; from fa5d823b16a9442d609617abeec31da8b6afa224 before 3c62fd3406e0b2277c76a6984d3979c7f3f1d129; 5.15 (not affected: before 5.15; from 5.15.25 up to 5.15.*; from 5.16.11 up to 5.16.*; from 5.17 up to *)
- linux linux_kernel: from 5.15 before 5.15.25; from 5.16 before 5.16.11; 5.17

## References

- <https://git.kernel.org/stable/c/3e41445287afa3cf6d572778e5aab31d25e60a8d> (patch)
- <https://git.kernel.org/stable/c/d7de1e4820c5a42441ff7276174c8c0e63575c1b> (patch)
- <https://git.kernel.org/stable/c/3c62fd3406e0b2277c76a6984d3979c7f3f1d129> (patch)

## Sources

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

---

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