title: platform/x86: intel_pmc_core: fix memleak on registration failure
description: In the Linux kernel, the following vulnerability has been resolved:
platform/x86: intel_pmc_core: fix memleak on registration failure
In case device registration fails during module initialisation, the
platform device structure needs to be freed using platform_device_put()
to properly free all resources (e.g. the device name).
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 938835aa903a, lessThan: 7a37f2e37069, status: affected, versionType: git
version: 938835aa903a, lessThan: 9ca1324755f1, status: affected, versionType: git
version: 938835aa903a, lessThan: 26a8b0943780, status: affected, versionType: git
}
{
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 5.9, status: affected
version: 0, lessThan: 5.9, status: unaffected, versionType: custom
version: 5.10.89, lessThanOrEqual: 5.10.*, status: unaffected, versionType: custom
version: 5.15.12, lessThanOrEqual: 5.15.*, status: unaffected, versionType: custom
version: 5.16, lessThanOrEqual: *, status: unaffected, versionType: original_commit_for_fix
}
