# CVE-2026-142802: platform/x86/amd: hfi: Fix a use-after-free when unloading the driver

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:11:31.553Z
- **Modified:** 2026-12-03T04:18:13.943Z

## Who should check

- Anyone running Linux \>= bb20421c05fc0a0fd70a3f8af076319f7dec4cf1, \< ff2c27583cf9f4e009e30ca27b04f69bbc9b9674; \>= bb20421c05fc0a0fd70a3f8af076319f7dec4cf1, \< 02b63c0227a3694b89133e3f17342a4ed083a348; \>= bb20421c05fc0a0fd70a3f8af076319f7dec4cf1, \< 55d8406dfa2fa8ad8ac2f053c2a53a97d8b0ce48
- Anyone running Linux 6.17

## 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.

## Affected and fixed versions

- Linux: \>= bb20421c05fc0a0fd70a3f8af076319f7dec4cf1, \< ff2c27583cf9f4e009e30ca27b04f69bbc9b9674; \>= bb20421c05fc0a0fd70a3f8af076319f7dec4cf1, \< 02b63c0227a3694b89133e3f17342a4ed083a348; \>= bb20421c05fc0a0fd70a3f8af076319f7dec4cf1, \< 55d8406dfa2fa8ad8ac2f053c2a53a97d8b0ce48 (cvelist)
- Linux: 6.17 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 55d8406dfa2fa8ad8ac2f053c2a53a97d8b0ce48 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142802. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142802.md
Affected: Linux >= bb20421c05fc0a0fd70a3f8af076319f7dec4cf1, < ff2c27583cf9f4e009e30ca27b04f69bbc9b9674; >= bb20421c05fc0a0fd70a3f8af076319f7dec4cf1, < 02b63c0227a3694b89133e3f17342a4ed083a348; >= bb20421c05fc0a0fd70a3f8af076319f7dec4cf1, < 55d8406dfa2fa8ad8ac2f053c2a53a97d8b0ce48; Linux 6.17
Fixed in: Linux 02b63c0227a3694b89133e3f17342a4ed083a348, Linux 55d8406dfa2fa8ad8ac2f053c2a53a97d8b0ce48

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142802 being exploited?

There is no confirmed exploitation: CVE-2026-142802 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142802?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142802?

Linux \>= bb20421c05fc0a0fd70a3f8af076319f7dec4cf1, \< ff2c27583cf9f4e009e30ca27b04f69bbc9b9674; \>= bb20421c05fc0a0fd70a3f8af076319f7dec4cf1, \< 02b63c0227a3694b89133e3f17342a4ed083a348; \>= bb20421c05fc0a0fd70a3f8af076319f7dec4cf1, \< 55d8406dfa2fa8ad8ac2f053c2a53a97d8b0ce48; Linux 6.17.

### Is there a fix for CVE-2026-142802?

Yes. Fixed in Linux 02b63c0227a3694b89133e3f17342a4ed083a348, Linux 55d8406dfa2fa8ad8ac2f053c2a53a97d8b0ce48. Upgrade Linux to 55d8406dfa2fa8ad8ac2f053c2a53a97d8b0ce48 or later.

### How do I check if I'm affected by CVE-2026-142802?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/ff2c27583cf9f4e009e30ca27b04f69bbc9b9674>
- other: <https://git.kernel.org/stable/c/02b63c0227a3694b89133e3f17342a4ed083a348>
- other: <https://git.kernel.org/stable/c/55d8406dfa2fa8ad8ac2f053c2a53a97d8b0ce48>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142802>

HTML: <https://flawdb.com/CVE-2026-142802> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142802>
