{"id":"CVE-2022-49284","summary":"coresight: syscfg: Fix memleak on registration failure in cscfg_create_device","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncoresight: syscfg: Fix memleak on registration failure in cscfg_create_device\n\ndevice_register() calls device_initialize(),\naccording to doc of device_initialize:\n\n    Use put_device() to give up your reference instead of freeing\n    * @dev directly once you have called this function.\n\nTo prevent potential memleak, use put_device() for error handling.","modified":"2026-04-02T08:27:27.967211Z","published":"2025-02-26T01:56:24.622Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49284.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/412225b32986d5b11c3c1ad9234c50a3f5c52c76"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a529af1f5a5c096f3e18f0d5a32cfcc3d82df1ec"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c61e2fc87f24cae4701f352fe9ecd4c5c143106c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cfa5dbcdd7aece76f3415284569f2f384aff0253"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49284.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49284"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"85e2414c518a03a21dddd4bc88fec2723c5e1197"},{"fixed":"c61e2fc87f24cae4701f352fe9ecd4c5c143106c"},{"fixed":"a529af1f5a5c096f3e18f0d5a32cfcc3d82df1ec"},{"fixed":"412225b32986d5b11c3c1ad9234c50a3f5c52c76"},{"fixed":"cfa5dbcdd7aece76f3415284569f2f384aff0253"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49284.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}