PT-2026-152596
CVE-2026-99716
·
Published
2026-11-20
·
Updated
2026-11-20
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
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.
Found an issue in the description? Have something to add? Feel free to write us 👾