# CVE-2021-47056: crypto: qat - ADF\_STATUS\_PF\_RUNNING should be set after adf\_dev\_init

> 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.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2024-02-29T22:37:31.086Z
- **Modified:** 2026-06-17T04:16:19.990Z

## Who should check

- Anyone running Linux \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< f4c4e07140687f42bfa40e091bb4a55d7960ce4d; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 446045cf682af12d9294765f6c46084b374b5654; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 09d16cee6285d37cc76311c29add6d97a7e4acda; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 05ec8192ee4bfdf2a8894a68350dac9f1a155fa6; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 1f50392650ae794a1aea41c213c6a3e1c824413c; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 20fd40fc6f2c2b41dc6f637f88d494b14e9c21f1; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 1ea500ce6f7c9106e4a561d28e69215f3d451818; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 8609f5cfdc872fc3a462efa6a3eca5cb1e2f6446
- Anyone running Linux 4.7

## Description

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

crypto: qat - ADF\_STATUS\_PF\_RUNNING should be set after adf\_dev\_init

ADF\_STATUS\_PF\_RUNNING is (only) used and checked by adf\_vf2pf\_shutdown()
before calling adf\_iov\_putmsg()-\>mutex\_lock(vf2pf\_lock), however the
vf2pf\_lock is initialized in adf\_dev\_init(), which can fail and when it
fail, the vf2pf\_lock is either not initialized or destroyed, a subsequent
use of vf2pf\_lock will cause issue.
To fix this issue, only set this flag if adf\_dev\_init() returns 0.

\[    7.178404\] BUG: KASAN: user-memory-access in \_\_mutex\_lock.isra.0+0x1ac/0x7c0
\[    7.180345\] Call Trace:
\[    7.182576\]  mutex\_lock+0xc9/0xd0
\[    7.183257\]  adf\_iov\_putmsg+0x118/0x1a0 \[intel\_qat\]
\[    7.183541\]  adf\_vf2pf\_shutdown+0x4d/0x7b \[intel\_qat\]
\[    7.183834\]  adf\_dev\_shutdown+0x172/0x2b0 \[intel\_qat\]
\[    7.184127\]  adf\_probe+0x5e9/0x600 \[qat\_dh895xccvf\]

## Affected and fixed versions

- Linux: \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< f4c4e07140687f42bfa40e091bb4a55d7960ce4d; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 446045cf682af12d9294765f6c46084b374b5654; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 09d16cee6285d37cc76311c29add6d97a7e4acda; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 05ec8192ee4bfdf2a8894a68350dac9f1a155fa6; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 1f50392650ae794a1aea41c213c6a3e1c824413c; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 20fd40fc6f2c2b41dc6f637f88d494b14e9c21f1; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 1ea500ce6f7c9106e4a561d28e69215f3d451818; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 8609f5cfdc872fc3a462efa6a3eca5cb1e2f6446 (cvelist)
- Linux: 4.7 (cvelist)

## Mitigation

- Upgrade Linux to 8609f5cfdc872fc3a462efa6a3eca5cb1e2f6446 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2021-47056.md
Affected: Linux >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < f4c4e07140687f42bfa40e091bb4a55d7960ce4d; >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < 446045cf682af12d9294765f6c46084b374b5654; >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < 09d16cee6285d37cc76311c29add6d97a7e4acda; >= 25c6ffb249f612c56a48ce4…
Fixed in: Linux 446045cf682af12d9294765f6c46084b374b5654, Linux 09d16cee6285d37cc76311c29add6d97a7e4acda, Linux 05ec8192ee4bfdf2a8894a68350dac9f1a155fa6, Linux 1f50392650ae794a1aea41c213c6a3e1c824413c, Linux 20fd40fc6f2c2b41dc6f637f88d494b14e9c21f1, Linux 1ea500ce6f7c9106e4a561d28e69215f3d451818, Linux 8609f…

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-2021-47056 being exploited?

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

### How serious is CVE-2021-47056?

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

### Which versions are affected by CVE-2021-47056?

Linux \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< f4c4e07140687f42bfa40e091bb4a55d7960ce4d; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 446045cf682af12d9294765f6c46084b374b5654; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 09d16cee6285d37cc76311c29add6d97a7e4acda; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 05ec8192ee4bfdf2a8894a68350dac9f1a155fa6; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 1f50392650ae794a1aea41c213c6a3e1c824413c; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 20fd40fc6f2c2b41dc6f637f88d494b14e9c21f1; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 1ea500ce6f7c9106e4a561d28e69215f3d451818; \>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, \< 8609f5cfdc872fc3a462efa6a3eca5cb1e2f6446; Linux 4.7.

### Is there a fix for CVE-2021-47056?

Yes. Fixed in Linux 446045cf682af12d9294765f6c46084b374b5654, Linux 09d16cee6285d37cc76311c29add6d97a7e4acda, Linux 05ec8192ee4bfdf2a8894a68350dac9f1a155fa6, Linux 1f50392650ae794a1aea41c213c6a3e1c824413c, Linux 20fd40fc6f2c2b41dc6f637f88d494b14e9c21f1, Linux 1ea500ce6f7c9106e4a561d28e69215f3d451818, Linux 8609f5cfdc872fc3a462efa6a3eca5cb1e2f6446. Upgrade Linux to 8609f5cfdc872fc3a462efa6a3eca5cb1e2f6446 or later.

### How do I check if I'm affected by CVE-2021-47056?

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/f4c4e07140687f42bfa40e091bb4a55d7960ce4d>
- patch: <https://git.kernel.org/stable/c/446045cf682af12d9294765f6c46084b374b5654>
- patch: <https://git.kernel.org/stable/c/09d16cee6285d37cc76311c29add6d97a7e4acda>
- patch: <https://git.kernel.org/stable/c/05ec8192ee4bfdf2a8894a68350dac9f1a155fa6>
- patch: <https://git.kernel.org/stable/c/1f50392650ae794a1aea41c213c6a3e1c824413c>
- patch: <https://git.kernel.org/stable/c/20fd40fc6f2c2b41dc6f637f88d494b14e9c21f1>
- patch: <https://git.kernel.org/stable/c/1ea500ce6f7c9106e4a561d28e69215f3d451818>
- patch: <https://git.kernel.org/stable/c/8609f5cfdc872fc3a462efa6a3eca5cb1e2f6446>

## 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-2021-47056>

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