coresight: syscfg: Fix memleak on registration failure in cscfg_create_device
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's CoreSight syscfg code can leak memory when device registration fails in cscfg_create_device. The input does not describe how an attacker could trigger the failure or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with CoreSight syscfg should check their versions against the vendor advisory; affected versions were not provided.