# CVE-2022-49422: dmaengine: idxd: Fix the error handling path in idxd_cdev_register()

- 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.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-02-26T02:12:45.269Z
- Modified: 2026-11-05T20:17:06.070Z
- 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: idxd: Fix the error handling path in idxd_cdev_register()

If a call to alloc_chrdev_region() fails, the already allocated resources
are leaking.

Add the needed error handling path to fix the leak.

(As written by CVE List.)

## Affected

- Linux Linux: from 42d279f9137ab7d5503836baec2739284b278d8f before 6073af78156b8c3fc1198f8bcc190b7ac3ac0143; from 42d279f9137ab7d5503836baec2739284b278d8f before b3c7b5d08e9d5b2ff31c03078c00ecf11042419f; from 42d279f9137ab7d5503836baec2739284b278d8f before 5e88561eceb34ae3f88451c2b8e30fe403484189; from 42d279f9137ab7d5503836baec2739284b278d8f before c308a2e711a52a47f4b45e7add2b5200169e429a; from 42d279f9137ab7d5503836baec2739284b278d8f before aab08c1aac01097815fbcf10fce7021d2396a31f; 5.6 (not affected: before 5.6; from 5.10.121 up to 5.10.*; from 5.15.46 up to 5.15.*; from 5.17.14 up to 5.17.*; from 5.18.3 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 5.6 before 5.10.121; from 5.11 before 5.15.46; from 5.16 before 5.17.14; from 5.18 before 5.18.3

## References

- <https://git.kernel.org/stable/c/6073af78156b8c3fc1198f8bcc190b7ac3ac0143> (patch)
- <https://git.kernel.org/stable/c/b3c7b5d08e9d5b2ff31c03078c00ecf11042419f> (patch)
- <https://git.kernel.org/stable/c/5e88561eceb34ae3f88451c2b8e30fe403484189> (patch)
- <https://git.kernel.org/stable/c/c308a2e711a52a47f4b45e7add2b5200169e429a> (patch)
- <https://git.kernel.org/stable/c/aab08c1aac01097815fbcf10fce7021d2396a31f> (patch)

## Sources

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

---

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