CVE-2026-142802
Received Received - Intake

Use-After-Free in Linux Kernel AMD HFI Driver

Vulnerability report for CVE-2026-142802, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-03

Last updated on: 2026-12-03

Assigner: kernel.org

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-03
Last Modified
2026-12-03
Generated
2026-12-03
AI Q&A
2026-12-03
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a use-after-free vulnerability in the Linux kernel related to the AMD HFI (Hardware Feedback Interface) driver. When the driver is unloaded, it fails to properly clean up CPU hotplug callbacks and scheduled work items. This leaves stale pointers that can be dereferenced later, causing a kernel panic.

Detection Guidance

This vulnerability is specific to the Linux kernel module 'amd_hfi' and requires kernel-level detection. Check for kernel logs for use-after-free errors or kernel panics related to the amd_hfi module. Commands like 'dmesg | grep -i amd_hfi' or 'journalctl -k | grep -i amd_hfi' may help identify issues.

Impact Analysis

If exploited, this vulnerability could crash the system by triggering a kernel panic. It may lead to denial-of-service conditions, data corruption, or unauthorized code execution if an attacker can trigger CPU hotplug events or execute the stale work item after the module is unloaded.

Mitigation Strategies

Update the Linux kernel to a patched version where this vulnerability is resolved. If the amd_hfi module is not in use, consider blacklisting it to prevent loading. Monitor kernel logs for any signs of exploitation or crashes.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-142802. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...