← CVE Intelligence

CVE-2022-49284

coresight: syscfg: Fix memleak on registration failure in cscfg_create_device PUBLISHED

Description (CNA)

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 (CNA)

Vendor / productVersions
Linux / Linuxaffected 85e2414c518a03a21dddd4bc88fec2723c5e1197 before c61e2fc87f24cae4701f352fe9ecd4c5c143106c; affected 85e2414c518a03a21dddd4bc88fec2723c5e1197 before a529af1f5a5c096f3e18f0d5a32cfcc3d82df1ec; affected 85e2414c518a03a21dddd4bc88fec2723c5e1197 before 412225b32986d5b11c3c1ad9234c50a3f5c52c76; affected 85e2414c518a03a21dddd4bc88fec2723c5e1197 before cfa5dbcdd7aece76f3415284569f2f384aff0253
Linux / Linuxaffected 5.15; unaffected 0 before 5.15; unaffected 5.15.33 through 5.15.*; unaffected 5.16.19 through 5.16.*; unaffected 5.17.2 through 5.17.*; unaffected 5.18 through *

CWE

No CWE identifiers supplied.

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.