# CVE-2026-99716: hwmon: (coretemp) Set nr_cores only after core_data allocation succeeds

Status: published. Published: 2026-11-20. Updated: 2026-11-23.

In the Linux kernel, the following vulnerability has been resolved:

hwmon: (coretemp) Set nr_cores only after core_data allocation succeeds

In init_temp_data(), pdata->nr_cores is populated from
topology_num_cores_per_package() before allocating pdata->core_data. If
that allocation fails, init_temp_data() returns NULL with
pdata->core_data still NULL and pdata->nr_cores set to a positive value.

coretemp_add_core() logs the error without failing coretemp_cpu_online(),
so the CPU still comes online with pdata->hwmon_dev registered. When the
CPU is later taken offline (or the module is unloaded),
coretemp_cpu_offline() calls get_temp_data(pd, cpu), which loops up to
pdata->nr_cores and dereferences the NULL pdata->core_data pointer.

Store the core count in a local variable and assign pdata->nr_cores only
after pdata->core_data is allocated, preserving the invariant that
pdata->nr_cores is zero whenever pdata->core_data is NULL.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ 1a793caf6f6991716cb07583ed7c27de84ef0cba; < 18551f9cfa0890187219e5d46a277feb1fa260b9 (affected, git); ≥ 1a793caf6f6991716cb07583ed7c27de84ef0cba; < 01bd308458a2855e64358669b057a59e1e819570 (affected, git); ≥ 1a793caf6f6991716cb07583ed7c27de84ef0cba; < 2fb99a03cb8c4a5907c55968d1aa8df6c885e347 (affected, git); ≥ 1a793caf6f6991716cb07583ed7c27de84ef0cba; < 95638f1f05ced75a82e83f610cd01b636d2a21b1 (affected, git). Source: CNA: Linux
- Linux / Linux: 6.9 (affected); ≥ 0; < 6.9 (unaffected, semver); ≥ 6.12.119; ≤ 6.12.* (unaffected, semver); ≥ 6.18.65; ≤ 6.18.* (unaffected, semver); ≥ 7.3.5; ≤ 7.3.* (unaffected, semver); ≥ 7.4-rc2; ≤ * (unaffected, original_commit_for_fix). Source: CNA: Linux

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: 0.16% as of 2026-11-22; percentile 4.72%

- SSVC: Not available

- Weaknesses: Not reported

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://git.kernel.org/stable/c/18551f9cfa0890187219e5d46a277feb1fa260b9 (CNA: Linux)

- https://git.kernel.org/stable/c/01bd308458a2855e64358669b057a59e1e819570 (CNA: Linux)

- https://git.kernel.org/stable/c/2fb99a03cb8c4a5907c55968d1aa8df6c885e347 (CNA: Linux)

- https://git.kernel.org/stable/c/95638f1f05ced75a82e83f610cd01b636d2a21b1 (CNA: Linux)

- https://git.kernel.org/stable/c/2fb99a03cb8c4a5907c55968d1aa8df6c885e347 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/95638f1f05ced75a82e83f610cd01b636d2a21b1 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

## Provenance

- CNA: Linux: https://www.cve.org/CVERecord?id=CVE-2026-99716; retrieved 2026-11-23; source updated 2026-11-23

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-99716; retrieved 2026-11-20; source updated 2026-11-20

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-99716; retrieved 2026-11-23; source updated Not reported

Revision: 8ff15be731741e7431cf14b7971268e97089fa81e1ef6bd8dd83e5793560aff7

Canonical: https://y2.dev/cve/CVE-2026-99716

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.