cpufreq: Avoid a bad reference count on CPU node
In the Linux kernel, the following vulnerability has been resolved: cpufreq: Avoid a bad reference count on CPU node In the parse_perf_domain function, if the call to of_parse_phandle_with_args returns an error, then the reference to the CPU device node that was acquired at the start of the function would not be properly decremented. Address this by declaring the variable with the __free(device_node) cleanup attribute.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.209, 6.1.116, 6.10.14, 6.11.3, 6.6.55
- CVEs
- CVE-2024-50012
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 23:09 UTC · Revision 1
Source evidence
cpufreq: Avoid a bad reference count on CPU node
core-osv · Original sourcePublished 21 Oct 2024, 18:54 UTC
In the Linux kernel, the following vulnerability has been resolved: cpufreq: Avoid a bad reference count on CPU node In the parse_perf_domain function, if the call to of_parse_phandle_with_args returns an error, then the reference to the CPU device node that was acquired at the start of the function would not be properly decremented. Address this by declaring the variable with the __free(device_node) cleanup attribute.
osv:CVE-2024-50012
Kernel
Fixed versions: 5.15.209, 6.1.116, 6.6.55, 6.10.14, 6.11.3
Complete source record
{
"id": "13822d60bd416db60665805e1b28c4b63a1a209715508bef84cfa6883000a37e",
"url": "https://osv.dev/vulnerability/CVE-2024-50012",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "cpufreq: Avoid a bad reference count on CPU node",
"summary": "In the Linux kernel, the following vulnerability has been resolved: cpufreq: Avoid a bad reference count on CPU node In the parse_perf_domain function, if the call to of_parse_phandle_with_args returns an error, then the reference to the CPU device node that was acquired at the start of the function would not be properly decremented. Address this by declaring the variable with the __free(device_node) cleanup attribute.",
"evidence": "osv:CVE-2024-50012",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.209",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.116",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.55",
"evidence": "/affected/1/ranges"
},
{
"value": "6.10.14",
"evidence": "/affected/1/ranges"
},
{
"value": "6.11.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2024-50012",
"aliases": [
"CVE-2024-50012"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "8486a32dd484a7d7ec25295c7439094608f54915"
},
{
"fixed": "2b846344b15f933a56903b7cdba9080f06c725ff"
},
{
"fixed": "6c3d8387839252f1a0fc6367f314446e4a2ebd0b"
},
{
"fixed": "0f41f383b5a61a2bf6429a449ebba7fb08179d81"
},
{
"fixed": "77f88b17387a017416babf1e6488fa17682287e2"
},
{
"fixed": "47cb1d9278f179df8250304ec41009e3e836a926"
},
{
"fixed": "c0f02536fffbbec71aced36d52a765f8c4493dc2"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50012.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.15.0"
},
{
"fixed": "5.15.209"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.116"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.55"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.10.14"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.11.0"
},
{
"fixed": "6.11.3"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50012.json"
}
}
],
"modified": "2026-10-28T02:30:40.474530861Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0f41f383b5a61a2bf6429a449ebba7fb08179d81",
"https://git.kernel.org/stable/c/2b846344b15f933a56903b7cdba9080f06c725ff",
"https://git.kernel.org/stable/c/47cb1d9278f179df8250304ec41009e3e836a926",
"https://git.kernel.org/stable/c/6c3d8387839252f1a0fc6367f314446e4a2ebd0b",
"https://git.kernel.org/stable/c/77f88b17387a017416babf1e6488fa17682287e2",
"https://git.kernel.org/stable/c/c0f02536fffbbec71aced36d52a765f8c4493dc2",
"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50012.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-50012",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50012.json"
}
},
"related_cves": [
{
"value": "CVE-2024-50012",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 507868,
"published_at": "2024-10-21T18:54:04.377+00:00"
}