# CVE-2022-49284: coresight: syscfg: Fix memleak on registration failure in cscfg_create_device

- 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.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-02-26T01:56:24.622Z
- Modified: 2026-06-17T05:17:35.840Z
- 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:

coresight: syscfg: Fix memleak on registration failure in cscfg_create_device

device_register() calls device_initialize(),
according to doc of device_initialize:

    Use put_device() to give up your reference instead of freeing
    * @dev directly once you have called this function.

To prevent potential memleak, use put_device() for error handling.

(As written by CVE List.)

## Affected

- Linux Linux: from 85e2414c518a03a21dddd4bc88fec2723c5e1197 before c61e2fc87f24cae4701f352fe9ecd4c5c143106c; from 85e2414c518a03a21dddd4bc88fec2723c5e1197 before a529af1f5a5c096f3e18f0d5a32cfcc3d82df1ec; from 85e2414c518a03a21dddd4bc88fec2723c5e1197 before 412225b32986d5b11c3c1ad9234c50a3f5c52c76; from 85e2414c518a03a21dddd4bc88fec2723c5e1197 before cfa5dbcdd7aece76f3415284569f2f384aff0253; 5.15 (not affected: before 5.15; from 5.15.33 up to 5.15.*; from 5.16.19 up to 5.16.*; from 5.17.2 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: from 5.15 before 5.15.33; from 5.16 before 5.16.19; from 5.17 before 5.17.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/c61e2fc87f24cae4701f352fe9ecd4c5c143106c> (patch)
- <https://git.kernel.org/stable/c/a529af1f5a5c096f3e18f0d5a32cfcc3d82df1ec> (patch)
- <https://git.kernel.org/stable/c/412225b32986d5b11c3c1ad9234c50a3f5c52c76> (patch)
- <https://git.kernel.org/stable/c/cfa5dbcdd7aece76f3415284569f2f384aff0253> (patch)

## Sources

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

---

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