PT-2026-166525
CVE-2026-142802
·
Published
2026-12-03
·
Updated
2026-12-03
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:
platform/x86/amd: hfi: Fix a use-after-free when unloading the driver
amd hfi probe() registers CPU hotplug callbacks with
cpuhp setup state(CPUHP AP ONLINE DYN, ...) and schedules the static
sched amd hfi itmt work work item, but amd hfi remove() tears down
neither. The dynamically assigned hotplug state returned by
cpuhp setup state() is discarded, so cpuhp remove state() can never be
called, and the pending work is never cancelled.
After the module is unloaded and its memory is freed, any subsequent CPU
hotplug event or execution of the scheduled work dereferences the stale
callback and work function pointers, resulting in a use-after-free and
kernel panic.
Store the hotplug state returned by cpuhp setup state() and, on removal,
call cpuhp remove state() to unregister the callbacks and
cancel work sync() to flush the scheduled work before the module memory
goes away.
Found an issue in the description? Have something to add? Feel free to write us 👾