CVE-2021-47056
crypto: qat - ADF_STATUS_PF_RUNNING should be set after adf_dev_init
Check your servers for CVE-2021-47056
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-47056 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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]
Exploitation
EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, before f4c4e07140687f42bfa40e091bb4a55d7960ce4d affected from 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, before 446045cf682af12d9294765f6c46084b374b5654 affected from 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, before 09d16cee6285d37cc76311c29add6d97a7e4acda affected from 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, before 05ec8192ee4bfdf2a8894a68350dac9f1a155fa6 affected from 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, before 1f50392650ae794a1aea41c213c6a3e1c824413c affected from 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, before 20fd40fc6f2c2b41dc6f637f88d494b14e9c21f1 affected from 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, before 1ea500ce6f7c9106e4a561d28e69215f3d451818 affected from 25c6ffb249f612c56a48ce48a3887adf57b8f4bd, before 8609f5cfdc872fc3a462efa6a3eca5cb1e2f6446
Other versions: unaffected
|
| Linux |
affected 4.7 unaffected before 4.7 unaffected from 4.9.269 up to and including 4.9.* unaffected from 4.14.233 up to and including 4.14.* unaffected from 4.19.191 up to and including 4.19.* unaffected from 5.4.119 up to and including 5.4.* unaffected from 5.10.37 up to and including 5.10.* unaffected from 5.11.21 up to and including 5.11.* unaffected from 5.12.4 up to and including 5.12.* unaffected 5.13 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-47056 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47056
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-47056
trivy image --scanners vuln IMAGE | grep CVE-2021-47056
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/f4c4e07140687f42bfa40e091bb4a55d7960ce4d git.kernel.org
- https://git.kernel.org/stable/c/446045cf682af12d9294765f6c46084b374b5654 git.kernel.org
- https://git.kernel.org/stable/c/09d16cee6285d37cc76311c29add6d97a7e4acda git.kernel.org
- https://git.kernel.org/stable/c/05ec8192ee4bfdf2a8894a68350dac9f1a155fa6 git.kernel.org
- https://git.kernel.org/stable/c/1f50392650ae794a1aea41c213c6a3e1c824413c git.kernel.org
- https://git.kernel.org/stable/c/20fd40fc6f2c2b41dc6f637f88d494b14e9c21f1 git.kernel.org
- https://git.kernel.org/stable/c/1ea500ce6f7c9106e4a561d28e69215f3d451818 git.kernel.org
- https://git.kernel.org/stable/c/8609f5cfdc872fc3a462efa6a3eca5cb1e2f6446 git.kernel.org
Source: the record CVE-2021-47056 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse