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


- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 20 Nov 2026
- **Updated:** 23 Nov 2026
- **Also known as:** BELL-CVE-2026-99716, DEBIAN-CVE-2026-99716, GHSA-r4wr-6g88-ccgm, UBUNTU-CVE-2026-99716

## What is CVE-2026-99716?

CVE-2026-99716 is a vulnerability in Linux, published on 20 Nov 2026. 

### Official description

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.

## Which versions are affected by CVE-2026-99716?


Status by vendor (upstream, then each distribution release and vendor build):

| Who | Release | Status | Packages | Fixed in |
| --- | --- | --- | --- | --- |
| Red Hat | 8 | not affected | `bpftool`, `kernel`, `kernel-abi-stablelists` and 43 more |  |
| Red Hat | 9 | not affected | `bpftool`, `kernel`, `kernel-64k` and 104 more |  |
| Red Hat | 10 | deferred | `kernel`, `kernel-64k`, `kernel-64k-core` and 73 more |  |
| Red Hat | els/6 | end of life | `kernel`, `kernel-abi-whitelists`, `kernel-bootwrapper` and 10 more |  |
| Red Hat | els/7 | not affected | `bpftool`, `kernel`, `kernel-abi-whitelists` and 23 more |  |

## How do I fix CVE-2026-99716?

Upgrade to a fixed version.

## Is CVE-2026-99716 being exploited?

There is no known exploitation of CVE-2026-99716 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-99716 and fix it if it is affected.

What it is: CVE-2026-99716 is a vulnerability in Linux, published on 20 Nov 2026. 
Exploitation: There is no known exploitation of CVE-2026-99716 in the wild and no public exploit code.

Affected product: Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-99716/ (Markdown: https://insights.sbomify.com/CVE-2026-99716/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-99716
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-99716
- OSV: https://osv.dev/vulnerability/CVE-2026-99716

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-99716/
Summaries are generated and may contain mistakes; the official description above is the record.
