Bug 2589403 (CVE-2026-142802) - CVE-2026-142802 kernel: kernel: Denial of Service via use-after-free during AMD HFI driver teardown
Summary: CVE-2026-142802 kernel: kernel: Denial of Service via use-after-free during A...
Keywords:
Status: NEW
Alias: CVE-2026-142802
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-12-03 05:12 UTC by OSIDB Bzimport
Modified: 2026-12-03 10:08 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-12-03 05:12:43 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.