{"id":"CVE-2026-64372","state":"PUBLISHED","title":"cpufreq: pcc: fix use-after-free and double free in _OSC evaluation","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncpufreq: pcc: fix use-after-free and double free in _OSC evaluation\n\npcc_cpufreq_do_osc() calls acpi_evaluate_object() twice for the\ntwo-phase _OSC negotiation. Between the two calls it freed\noutput.pointer but left output.length unchanged. Since\nacpi_evaluate_object() treats a non-zero length with a non-NULL\npointer as an existing buffer to write into, the second call wrote\ninto freed memory (use-after-free). The subsequent kfree(output.pointer)\nat out_free then freed the same pointer a second time (double free).\n\nReset output.pointer to NULL and output.length to ACPI_ALLOCATE_BUFFER\nafter freeing the first result, so ACPICA allocates a fresh buffer for\neach phase independently.","publishedAt":"2026-07-25T08:50:24.733Z","updatedAt":"2026-10-19T20:38:25.140Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0f1d683fb35d6c6f49ef696c95757f3970682a0e","status":"affected","lessThan":"8e454e9d0bc03446d610ee49abec9dfd424f6541","versionType":"git"},{"version":"0f1d683fb35d6c6f49ef696c95757f3970682a0e","status":"affected","lessThan":"632666a63116d8061c62a988d1ca39dcd6d27c9b","versionType":"git"},{"version":"0f1d683fb35d6c6f49ef696c95757f3970682a0e","status":"affected","lessThan":"5cdb25f144b101083d8bf3fd023ad87fbe6850d7","versionType":"git"},{"version":"0f1d683fb35d6c6f49ef696c95757f3970682a0e","status":"affected","lessThan":"982c9f92d57bda2b769851ff6d90d43dcf5f3734","versionType":"git"},{"version":"0f1d683fb35d6c6f49ef696c95757f3970682a0e","status":"affected","lessThan":"a36ca93a8ba57464e521d70a337d37f069064111","versionType":"git"},{"version":"0f1d683fb35d6c6f49ef696c95757f3970682a0e","status":"affected","lessThan":"6ba6f6783be2ffeb2cbcdc9321c4b9f708f796f7","versionType":"git"},{"version":"0f1d683fb35d6c6f49ef696c95757f3970682a0e","status":"affected","lessThan":"0e3c739a2f6fc1de5b19a8839ab80696b9cb2a29","versionType":"git"},{"version":"0f1d683fb35d6c6f49ef696c95757f3970682a0e","status":"affected","lessThan":"266d3dd8b757b48a576e90f018b51f7b7563cc32","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/cpufreq/pcc-cpufreq.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.34","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.34","versionType":"semver"},{"version":"5.10.261","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.212","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.96","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.39","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.4","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/cpufreq/pcc-cpufreq.c"]}],"references":["https://git.kernel.org/stable/c/8e454e9d0bc03446d610ee49abec9dfd424f6541","https://git.kernel.org/stable/c/632666a63116d8061c62a988d1ca39dcd6d27c9b","https://git.kernel.org/stable/c/5cdb25f144b101083d8bf3fd023ad87fbe6850d7","https://git.kernel.org/stable/c/982c9f92d57bda2b769851ff6d90d43dcf5f3734","https://git.kernel.org/stable/c/a36ca93a8ba57464e521d70a337d37f069064111","https://git.kernel.org/stable/c/6ba6f6783be2ffeb2cbcdc9321c4b9f708f796f7","https://git.kernel.org/stable/c/0e3c739a2f6fc1de5b19a8839ab80696b9cb2a29","https://git.kernel.org/stable/c/266d3dd8b757b48a576e90f018b51f7b7563cc32"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:12:41.951Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/64xxx/CVE-2026-64372.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-64372","state":"PUBLISHED","datePublished":"2026-07-25T08:50:24.733Z","dateUpdated":"2026-10-19T20:38:25.140Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-19T15:36:31.783Z"},"containers":{"cna":{"title":"cpufreq: pcc: fix use-after-free and double free in _OSC evaluation","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncpufreq: pcc: fix use-after-free and double free in _OSC evaluation\n\npcc_cpufreq_do_osc() calls acpi_evaluate_object() twice for the\ntwo-phase _OSC negotiation. Between the two calls it freed\noutput.pointer but left output.length unchanged. Since\nacpi_evaluate_object() treats a non-zero length with a non-NULL\npointer as an existing buffer to write into, the second call wrote\ninto freed memory (use-after-free). The subsequent kfree(output.pointer)\nat out_free then freed the same pointer a second time (double free).\n\nReset output.pointer to NULL and output.length to ACPI_ALLOCATE_BUFFER\nafter freeing the first result, so ACPICA allocates a fresh buffer for\neach phase independently."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0f1d683fb35d6c6f49ef696c95757f3970682a0e","status":"affected","lessThan":"8e454e9d0bc03446d610ee49abec9dfd424f6541","versionType":"git"},{"version":"0f1d683fb35d6c6f49ef696c95757f3970682a0e","status":"affected","lessThan":"632666a63116d8061c62a988d1ca39dcd6d27c9b","versionType":"git"},{"version":"0f1d683fb35d6c6f49ef696c95757f3970682a0e","status":"affected","lessThan":"5cdb25f144b101083d8bf3fd023ad87fbe6850d7","versionType":"git"},{"version":"0f1d683fb35d6c6f49ef696c95757f3970682a0e","status":"affected","lessThan":"982c9f92d57bda2b769851ff6d90d43dcf5f3734","versionType":"git"},{"version":"0f1d683fb35d6c6f49ef696c95757f3970682a0e","status":"affected","lessThan":"a36ca93a8ba57464e521d70a337d37f069064111","versionType":"git"},{"version":"0f1d683fb35d6c6f49ef696c95757f3970682a0e","status":"affected","lessThan":"6ba6f6783be2ffeb2cbcdc9321c4b9f708f796f7","versionType":"git"},{"version":"0f1d683fb35d6c6f49ef696c95757f3970682a0e","status":"affected","lessThan":"0e3c739a2f6fc1de5b19a8839ab80696b9cb2a29","versionType":"git"},{"version":"0f1d683fb35d6c6f49ef696c95757f3970682a0e","status":"affected","lessThan":"266d3dd8b757b48a576e90f018b51f7b7563cc32","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/cpufreq/pcc-cpufreq.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.34","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.34","versionType":"semver"},{"version":"5.10.261","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.212","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.96","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.39","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.4","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/cpufreq/pcc-cpufreq.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8e454e9d0bc03446d610ee49abec9dfd424f6541"},{"url":"https://git.kernel.org/stable/c/632666a63116d8061c62a988d1ca39dcd6d27c9b"},{"url":"https://git.kernel.org/stable/c/5cdb25f144b101083d8bf3fd023ad87fbe6850d7"},{"url":"https://git.kernel.org/stable/c/982c9f92d57bda2b769851ff6d90d43dcf5f3734"},{"url":"https://git.kernel.org/stable/c/a36ca93a8ba57464e521d70a337d37f069064111"},{"url":"https://git.kernel.org/stable/c/6ba6f6783be2ffeb2cbcdc9321c4b9f708f796f7"},{"url":"https://git.kernel.org/stable/c/0e3c739a2f6fc1de5b19a8839ab80696b9cb2a29"},{"url":"https://git.kernel.org/stable/c/266d3dd8b757b48a576e90f018b51f7b7563cc32"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The flaw is reached during local initialization of the x86 PCC cpufreq driver on systems exposing the required ACPI PCC objects; no network, radio, or hot-plug input reaches this path.\nAC:L - Once two-phase _OSC negotiation succeeds, the stale-buffer write and subsequent double free occur deterministically without a race or other condition beyond attacker influence.\nPR:L - PCC platform-device creation and driver probing can occur automatically during boot or module autoload, leaving exploitable heap corruption without the attacker needing CAP_SYS_MODULE. A basic local user can groom and consume the resulting overlapping or corrupted slab objects.\nUI:N - The vulnerable driver probe and _OSC negotiation occur automatically and require no victim action.\nS:U - The corruption affects the host kernel within the same security authority and does not inherently cross a VM, IOMMU, or sandbox boundary.\nC:H - The use-after-free and double free can produce overlapping kernel heap objects, enabling disclosure of arbitrary kernel memory.\nI:H - The freed-object write and allocator freelist corruption can enable arbitrary kernel-memory modification and control-flow hijacking.\nA:H - Hardened allocators may immediately detect the double free and stop the kernel, while other configurations can crash or panic from the corrupted slab freelist."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-17T04:54:22.197Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.34","versionEndExcluding":"5.10.261"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.34","versionEndExcluding":"5.15.212"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.34","versionEndExcluding":"6.1.178"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.34","versionEndExcluding":"6.6.145"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.34","versionEndExcluding":"6.12.96"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.34","versionEndExcluding":"6.18.39"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.34","versionEndExcluding":"7.1.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.34","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-64372","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-16T15:39:34.226056Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","type":"CWE","description":"CWE-416 Use After Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-19T20:38:25.140Z"}}]}}}