CVE-2026-142802

Source
https://cve.org/CVERecord?id=CVE-2026-142802
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142802.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-142802
Downstream
Published
2026-12-03T03:11:31Z
Modified
2026-12-03T05:00:26Z
Summary
platform/x86/amd: hfi: Fix a use-after-free when unloading the driver
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142802.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
bb20421c05fc0a0fd70a3f8af076319f7dec4cf1
Fixed
ff2c27583cf9f4e009e30ca27b04f69bbc9b9674
Fixed
02b63c0227a3694b89133e3f17342a4ed083a348
Fixed
55d8406dfa2fa8ad8ac2f053c2a53a97d8b0ce48

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142802.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.17.0
Fixed
6.18.61
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142802.json"