{"api_version":"1","generated_at":"2026-07-23T14:03:47+00:00","cve":"CVE-2024-50012","urls":{"html":"https://cve.report/CVE-2024-50012","api":"https://cve.report/api/cve/CVE-2024-50012.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-50012","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-50012"},"summary":{"title":"cpufreq: Avoid a bad reference count on CPU node","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncpufreq: Avoid a bad reference count on CPU node\n\nIn the parse_perf_domain function, if the call to\nof_parse_phandle_with_args returns an error, then the reference to the\nCPU device node that was acquired at the start of the function would not\nbe properly decremented.\n\nAddress this by declaring the variable with the __free(device_node)\ncleanup attribute.","state":"PUBLISHED","assigner":"Linux","published_at":"2024-10-21 19:15:04","updated_at":"2026-06-01 17:16:30"},"problem_types":["NVD-CWE-Other"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"5.5","severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"}}],"references":[{"url":"https://git.kernel.org/stable/c/77f88b17387a017416babf1e6488fa17682287e2","name":"https://git.kernel.org/stable/c/77f88b17387a017416babf1e6488fa17682287e2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0f41f383b5a61a2bf6429a449ebba7fb08179d81","name":"https://git.kernel.org/stable/c/0f41f383b5a61a2bf6429a449ebba7fb08179d81","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2b846344b15f933a56903b7cdba9080f06c725ff","name":"https://git.kernel.org/stable/c/2b846344b15f933a56903b7cdba9080f06c725ff","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/47cb1d9278f179df8250304ec41009e3e836a926","name":"https://git.kernel.org/stable/c/47cb1d9278f179df8250304ec41009e3e836a926","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c0f02536fffbbec71aced36d52a765f8c4493dc2","name":"https://git.kernel.org/stable/c/c0f02536fffbbec71aced36d52a765f8c4493dc2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","name":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6c3d8387839252f1a0fc6367f314446e4a2ebd0b","name":"https://git.kernel.org/stable/c/6c3d8387839252f1a0fc6367f314446e4a2ebd0b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-50012","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50012","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8486a32dd484a7d7ec25295c7439094608f54915 2b846344b15f933a56903b7cdba9080f06c725ff git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8486a32dd484a7d7ec25295c7439094608f54915 6c3d8387839252f1a0fc6367f314446e4a2ebd0b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8486a32dd484a7d7ec25295c7439094608f54915 0f41f383b5a61a2bf6429a449ebba7fb08179d81 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8486a32dd484a7d7ec25295c7439094608f54915 77f88b17387a017416babf1e6488fa17682287e2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8486a32dd484a7d7ec25295c7439094608f54915 47cb1d9278f179df8250304ec41009e3e836a926 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8486a32dd484a7d7ec25295c7439094608f54915 c0f02536fffbbec71aced36d52a765f8c4493dc2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.15","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.209 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.116 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.55 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.10.14 6.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.11.3 6.11.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2024","cve_id":"50012","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2024-50012","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2024-10-22T13:28:30.584566Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2024-10-22T13:28:48.565Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"},{"providerMetadata":{"dateUpdated":"2025-11-03T22:24:27.744Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"}],"title":"CVE Program Container"}],"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["include/linux/cpufreq.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"2b846344b15f933a56903b7cdba9080f06c725ff","status":"affected","version":"8486a32dd484a7d7ec25295c7439094608f54915","versionType":"git"},{"lessThan":"6c3d8387839252f1a0fc6367f314446e4a2ebd0b","status":"affected","version":"8486a32dd484a7d7ec25295c7439094608f54915","versionType":"git"},{"lessThan":"0f41f383b5a61a2bf6429a449ebba7fb08179d81","status":"affected","version":"8486a32dd484a7d7ec25295c7439094608f54915","versionType":"git"},{"lessThan":"77f88b17387a017416babf1e6488fa17682287e2","status":"affected","version":"8486a32dd484a7d7ec25295c7439094608f54915","versionType":"git"},{"lessThan":"47cb1d9278f179df8250304ec41009e3e836a926","status":"affected","version":"8486a32dd484a7d7ec25295c7439094608f54915","versionType":"git"},{"lessThan":"c0f02536fffbbec71aced36d52a765f8c4493dc2","status":"affected","version":"8486a32dd484a7d7ec25295c7439094608f54915","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["include/linux/cpufreq.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.15"},{"lessThan":"5.15","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.209","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.116","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.55","versionType":"semver"},{"lessThanOrEqual":"6.10.*","status":"unaffected","version":"6.10.14","versionType":"semver"},{"lessThanOrEqual":"6.11.*","status":"unaffected","version":"6.11.3","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.12","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.209","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.116","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.55","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.10.14","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.11.3","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12","versionStartIncluding":"5.15","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncpufreq: Avoid a bad reference count on CPU node\n\nIn the parse_perf_domain function, if the call to\nof_parse_phandle_with_args returns an error, then the reference to the\nCPU device node that was acquired at the start of the function would not\nbe properly decremented.\n\nAddress this by declaring the variable with the __free(device_node)\ncleanup attribute."}],"providerMetadata":{"dateUpdated":"2026-06-01T16:04:45.179Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/2b846344b15f933a56903b7cdba9080f06c725ff"},{"url":"https://git.kernel.org/stable/c/6c3d8387839252f1a0fc6367f314446e4a2ebd0b"},{"url":"https://git.kernel.org/stable/c/0f41f383b5a61a2bf6429a449ebba7fb08179d81"},{"url":"https://git.kernel.org/stable/c/77f88b17387a017416babf1e6488fa17682287e2"},{"url":"https://git.kernel.org/stable/c/47cb1d9278f179df8250304ec41009e3e836a926"},{"url":"https://git.kernel.org/stable/c/c0f02536fffbbec71aced36d52a765f8c4493dc2"}],"title":"cpufreq: Avoid a bad reference count on CPU node","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2024-50012","datePublished":"2024-10-21T18:54:04.377Z","dateReserved":"2024-10-21T12:17:06.061Z","dateUpdated":"2026-06-01T16:04:45.179Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2024-10-21 19:15:04","lastModifiedDate":"2026-06-01 17:16:30","problem_types":["NVD-CWE-Other"],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":3.6}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.55","matchCriteriaId":"8B527B5F-BDDA-424E-932E-16FCAAB575E2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.10.14","matchCriteriaId":"4C16BCE0-FFA0-4599-BE0A-1FD65101C021"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.11.3","matchCriteriaId":"54D9C704-D679-41A7-9C40-10A6B1E7FFE9"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2024","CveId":"50012","Ordinal":"1","Title":"cpufreq: Avoid a bad reference count on CPU node","CVE":"CVE-2024-50012","Year":"2024"},"notes":[{"CveYear":"2024","CveId":"50012","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ncpufreq: Avoid a bad reference count on CPU node\n\nIn the parse_perf_domain function, if the call to\nof_parse_phandle_with_args returns an error, then the reference to the\nCPU device node that was acquired at the start of the function would not\nbe properly decremented.\n\nAddress this by declaring the variable with the __free(device_node)\ncleanup attribute.","Type":"Description","Title":"cpufreq: Avoid a bad reference count on CPU node"}]}}}