{"api_version":"1","generated_at":"2026-11-20T07:30:01+00:00","cve":"CVE-2026-99716","urls":{"html":"https://cve.report/CVE-2026-99716","api":"https://cve.report/api/cve/CVE-2026-99716.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99716","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99716"},"summary":{"title":"hwmon: (coretemp) Set nr_cores only after core_data allocation succeeds","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (coretemp) Set nr_cores only after core_data allocation succeeds\n\nIn init_temp_data(), pdata->nr_cores is populated from\ntopology_num_cores_per_package() before allocating pdata->core_data. If\nthat allocation fails, init_temp_data() returns NULL with\npdata->core_data still NULL and pdata->nr_cores set to a positive value.\n\ncoretemp_add_core() logs the error without failing coretemp_cpu_online(),\nso the CPU still comes online with pdata->hwmon_dev registered. When the\nCPU is later taken offline (or the module is unloaded),\ncoretemp_cpu_offline() calls get_temp_data(pd, cpu), which loops up to\npdata->nr_cores and dereferences the NULL pdata->core_data pointer.\n\nStore the core count in a local variable and assign pdata->nr_cores only\nafter pdata->core_data is allocated, preserving the invariant that\npdata->nr_cores is zero whenever pdata->core_data is NULL.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:18:08","updated_at":"2026-11-20 06:18:08"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/2fb99a03cb8c4a5907c55968d1aa8df6c885e347","name":"https://git.kernel.org/stable/c/2fb99a03cb8c4a5907c55968d1aa8df6c885e347","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/95638f1f05ced75a82e83f610cd01b636d2a21b1","name":"https://git.kernel.org/stable/c/95638f1f05ced75a82e83f610cd01b636d2a21b1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99716","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99716","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1a793caf6f6991716cb07583ed7c27de84ef0cba 2fb99a03cb8c4a5907c55968d1aa8df6c885e347 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1a793caf6f6991716cb07583ed7c27de84ef0cba 95638f1f05ced75a82e83f610cd01b636d2a21b1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.9","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.9 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/hwmon/coretemp.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"2fb99a03cb8c4a5907c55968d1aa8df6c885e347","status":"affected","version":"1a793caf6f6991716cb07583ed7c27de84ef0cba","versionType":"git"},{"lessThan":"95638f1f05ced75a82e83f610cd01b636d2a21b1","status":"affected","version":"1a793caf6f6991716cb07583ed7c27de84ef0cba","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/hwmon/coretemp.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.9"},{"lessThan":"6.9","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"6.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"6.9","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (coretemp) Set nr_cores only after core_data allocation succeeds\n\nIn init_temp_data(), pdata->nr_cores is populated from\ntopology_num_cores_per_package() before allocating pdata->core_data. If\nthat allocation fails, init_temp_data() returns NULL with\npdata->core_data still NULL and pdata->nr_cores set to a positive value.\n\ncoretemp_add_core() logs the error without failing coretemp_cpu_online(),\nso the CPU still comes online with pdata->hwmon_dev registered. When the\nCPU is later taken offline (or the module is unloaded),\ncoretemp_cpu_offline() calls get_temp_data(pd, cpu), which loops up to\npdata->nr_cores and dereferences the NULL pdata->core_data pointer.\n\nStore the core count in a local variable and assign pdata->nr_cores only\nafter pdata->core_data is allocated, preserving the invariant that\npdata->nr_cores is zero whenever pdata->core_data is NULL."}],"providerMetadata":{"dateUpdated":"2026-11-20T05:50:54.576Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/2fb99a03cb8c4a5907c55968d1aa8df6c885e347"},{"url":"https://git.kernel.org/stable/c/95638f1f05ced75a82e83f610cd01b636d2a21b1"}],"title":"hwmon: (coretemp) Set nr_cores only after core_data allocation succeeds","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99716","datePublished":"2026-11-20T05:50:54.576Z","dateReserved":"2026-09-25T10:25:14.430Z","dateUpdated":"2026-11-20T05:50:54.576Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:18:08","lastModifiedDate":"2026-11-20 06:18:08","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99716","Ordinal":"1","Title":"hwmon: (coretemp) Set nr_cores only after core_data allocation s","CVE":"CVE-2026-99716","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99716","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (coretemp) Set nr_cores only after core_data allocation succeeds\n\nIn init_temp_data(), pdata->nr_cores is populated from\ntopology_num_cores_per_package() before allocating pdata->core_data. If\nthat allocation fails, init_temp_data() returns NULL with\npdata->core_data still NULL and pdata->nr_cores set to a positive value.\n\ncoretemp_add_core() logs the error without failing coretemp_cpu_online(),\nso the CPU still comes online with pdata->hwmon_dev registered. When the\nCPU is later taken offline (or the module is unloaded),\ncoretemp_cpu_offline() calls get_temp_data(pd, cpu), which loops up to\npdata->nr_cores and dereferences the NULL pdata->core_data pointer.\n\nStore the core count in a local variable and assign pdata->nr_cores only\nafter pdata->core_data is allocated, preserving the invariant that\npdata->nr_cores is zero whenever pdata->core_data is NULL.","Type":"Description","Title":"hwmon: (coretemp) Set nr_cores only after core_data allocation s"}]}}}