Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-47056

MEDIUM 5.5EPSS 8%

crypto: qat - ADF_STATUS_PF_RUNNING should be set after adf_dev_init

Mitigation

  • Upgrade Linux to 8609f5cfdc872fc3a462efa6a3eca5cb1e2f6446 or later.

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

Vulnerability facts

Affected
Linux >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < f4c4e07140687f42bfa40e091bb4a55d7960ce4d; >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < 446045cf682af12d9294765f6c46084b374b5654; >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < 09d16cee6285d37cc76311c29add6d97a7e4acda; >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < 05ec8192ee4bfdf2a8894a68350dac9f1a155fa6; >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < 1f50392650ae794a1aea41c213c6a3e1c824413c; >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < 20fd40fc6f2c2b41dc6f637f88d494b14e9c21f1; >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < 1ea500ce6f7c9106e4a561d28e69215f3d451818; >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < 8609f5cfdc872fc3a462efa6a3eca5cb1e2f6446; Linux 4.7
Fixed in
Linux 446045cf682af12d9294765f6c46084b374b5654, Linux 09d16cee6285d37cc76311c29add6d97a7e4acda, Linux 05ec8192ee4bfdf2a8894a68350dac9f1a155fa6, Linux 1f50392650ae794a1aea41c213c6a3e1c824413c, Linux 20fd40fc6f2c2b41dc6f637f88d494b14e9c21f1, Linux 1ea500ce6f7c9106e4a561d28e69215f3d451818, Linux 8609f5cfdc872fc3a462efa6a3eca5cb1e2f6446
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.23% chance of exploitation in 30 days (percentile 8, 2026-11-26)
CWE
CWE-908
Published
Modified

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

Package / productAffectedFixedSource
Linux>= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < f4c4e07140687f42bfa40e091bb4a55d7960ce4d; >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < 446045cf682af12d9294765f6c46084b374b5654; >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < 09d16cee6285d37cc76311c29add6d97a7e4acda; >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < 05ec8192ee4bfdf2a8894a68350dac9f1a155fa6; >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < 1f50392650ae794a1aea41c213c6a3e1c824413c; >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < 20fd40fc6f2c2b41dc6f637f88d494b14e9c21f1; >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < 1ea500ce6f7c9106e4a561d28e69215f3d451818; >= 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, < 8609f5cfdc872fc3a462efa6a3eca5cb1e2f6446—cvelist
Linux4.7—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors