# CVE-2025-39721: crypto: qat - flush misc workqueue during device shutdown

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-09-05T17:21:28.911Z
- **Modified:** 2026-11-10T13:17:49.567Z

## Who should check

- Anyone running Linux \>= e5745f34113b758b45d134dec04a7df94dc67131, \< fa4c14a82747886d333d8baef0d26da86ba1ccf7; \>= e5745f34113b758b45d134dec04a7df94dc67131, \< 5858448a6c65d8ee3f8600570d3ce19febcb33be; \>= e5745f34113b758b45d134dec04a7df94dc67131, \< fe546f5c50fc474daca6bee72caa7ab68a74c33d; \>= e5745f34113b758b45d134dec04a7df94dc67131, \< e59a52e429e13df3feb34f4853a8e36d121ed937; \>= e5745f34113b758b45d134dec04a7df94dc67131, \< 3d4df408ba9bad2b205c7fb8afc1836a6a4ca88a
- Anyone running Linux 5.18

## Description

In the Linux kernel, the following vulnerability has been resolved:

crypto: qat - flush misc workqueue during device shutdown

Repeated loading and unloading of a device specific QAT driver, for
example qat\_4xxx, in a tight loop can lead to a crash due to a
use-after-free scenario. This occurs when a power management (PM)
interrupt triggers just before the device-specific driver (e.g.,
qat\_4xxx.ko) is unloaded, while the core driver (intel\_qat.ko) remains
loaded.

Since the driver uses a shared workqueue (\`qat\_misc\_wq\`) across all
devices and owned by intel\_qat.ko, a deferred routine from the
device-specific driver may still be pending in the queue. If this
routine executes after the driver is unloaded, it can dereference freed
memory, resulting in a page fault and kernel crash like the following:

    BUG: unable to handle page fault for address: ffa000002e50a01c
    \#PF: supervisor read access in kernel mode
    RIP: 0010:pm\_bh\_handler+0x1d2/0x250 \[intel\_qat\]
    Call Trace:
      pm\_bh\_handler+0x1d2/0x250 \[intel\_qat\]
      process\_one\_work+0x171/0x340
      worker\_thread+0x277/0x3a0
      kthread+0xf0/0x120
      ret\_from\_fork+0x2d/0x50

To prevent this, flush the misc workqueue during device shutdown to
ensure that all pending work items are completed before the driver is
unloaded.

Note: This approach may slightly increase shutdown latency if the
workqueue contains jobs from other devices, but it ensures correctness
and stability.

## Affected and fixed versions

- Linux: \>= e5745f34113b758b45d134dec04a7df94dc67131, \< fa4c14a82747886d333d8baef0d26da86ba1ccf7; \>= e5745f34113b758b45d134dec04a7df94dc67131, \< 5858448a6c65d8ee3f8600570d3ce19febcb33be; \>= e5745f34113b758b45d134dec04a7df94dc67131, \< fe546f5c50fc474daca6bee72caa7ab68a74c33d; \>= e5745f34113b758b45d134dec04a7df94dc67131, \< e59a52e429e13df3feb34f4853a8e36d121ed937; \>= e5745f34113b758b45d134dec04a7df94dc67131, \< 3d4df408ba9bad2b205c7fb8afc1836a6a4ca88a (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- Upgrade Linux to 3d4df408ba9bad2b205c7fb8afc1836a6a4ca88a or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-39721.md
Affected: Linux >= e5745f34113b758b45d134dec04a7df94dc67131, < fa4c14a82747886d333d8baef0d26da86ba1ccf7; >= e5745f34113b758b45d134dec04a7df94dc67131, < 5858448a6c65d8ee3f8600570d3ce19febcb33be; >= e5745f34113b758b45d134dec04a7df94dc67131, < fe546f5c50fc474daca6bee72caa7ab68a74c33d; >= e5745f34113b758b45d134d…
Fixed in: Linux 5858448a6c65d8ee3f8600570d3ce19febcb33be, Linux 3d4df408ba9bad2b205c7fb8afc1836a6a4ca88a

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-2025-39721 being exploited?

There is no confirmed exploitation: CVE-2025-39721 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-39721?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-39721?

Linux \>= e5745f34113b758b45d134dec04a7df94dc67131, \< fa4c14a82747886d333d8baef0d26da86ba1ccf7; \>= e5745f34113b758b45d134dec04a7df94dc67131, \< 5858448a6c65d8ee3f8600570d3ce19febcb33be; \>= e5745f34113b758b45d134dec04a7df94dc67131, \< fe546f5c50fc474daca6bee72caa7ab68a74c33d; \>= e5745f34113b758b45d134dec04a7df94dc67131, \< e59a52e429e13df3feb34f4853a8e36d121ed937; \>= e5745f34113b758b45d134dec04a7df94dc67131, \< 3d4df408ba9bad2b205c7fb8afc1836a6a4ca88a; Linux 5.18.

### Is there a fix for CVE-2025-39721?

Yes. Fixed in Linux 5858448a6c65d8ee3f8600570d3ce19febcb33be, Linux 3d4df408ba9bad2b205c7fb8afc1836a6a4ca88a. Upgrade Linux to 3d4df408ba9bad2b205c7fb8afc1836a6a4ca88a or later.

### How do I check if I'm affected by CVE-2025-39721?

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

- patch: <https://git.kernel.org/stable/c/fa4c14a82747886d333d8baef0d26da86ba1ccf7>
- patch: <https://git.kernel.org/stable/c/5858448a6c65d8ee3f8600570d3ce19febcb33be>
- patch: <https://git.kernel.org/stable/c/fe546f5c50fc474daca6bee72caa7ab68a74c33d>
- patch: <https://git.kernel.org/stable/c/e59a52e429e13df3feb34f4853a8e36d121ed937>
- patch: <https://git.kernel.org/stable/c/3d4df408ba9bad2b205c7fb8afc1836a6a4ca88a>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## 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-2025-39721>

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