What’s Vulnerable › Vulnerabilities
CVE-2022-49284: coresight: syscfg: Fix memleak on registration failure in cscfg_create_device
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-02-26 · updated 2026-06-17
- Weakness: CWE-401
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.
Affected products
- Linux kernel: from 5.15 before 5.15.33; from 5.16 before 5.16.19; from 5.17 before 5.17.2 — fixed in 5.15.33, 5.16.19, 5.17.2
How to fix
Upgrade to a fixed version: Linux kernel 5.15.33, 5.16.19, 5.17.2. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/412225b32986d5b11c3c1ad9234c50a3f5c52c76
- https://git.kernel.org/stable/c/a529af1f5a5c096f3e18f0d5a32cfcc3d82df1ec
- https://git.kernel.org/stable/c/c61e2fc87f24cae4701f352fe9ecd4c5c143106c
- https://git.kernel.org/stable/c/cfa5dbcdd7aece76f3415284569f2f384aff0253
Get alerted when CVE-2022-49284 or the next vulnerability affects your stack