Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-47056— crypto: qat - ADF_STATUS_PF_RUNNING should be set after adf_dev_init

EPSS 0.01% · P2
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2021-47056

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
crypto: qat - ADF_STATUS_PF_RUNNING should be set after adf_dev_init
Source: NVD (National Vulnerability Database)
Vulnerability 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]
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel 存在安全漏洞,该漏洞源于vf2pf_lock 在 adf_dev_init() 中初始化,当失败时,vf2pf_lock 要么未初始化,要么被销毁 ,后续使用 vf2pf_lock 将导致问题。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
LinuxLinux 25c6ffb249f612c56a48ce48a3887adf57b8f4bd ~ f4c4e07140687f42bfa40e091bb4a55d7960ce4d -
LinuxLinux 4.7 -

II. Public POCs for CVE-2021-47056

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2021-47056

登录查看更多情报信息。

Same Patch Batch · Linux · 2024-02-29 · 53 CVEs total

CVE-2021-47016m68k: mvme147,mvme16x: Don't wipe PCC timer config bits
CVE-2021-47068net/nfc: fix use-after-free llcp_sock_bind/connect
CVE-2021-47067soc/tegra: regulators: Fix locking up when voltage-spread is out of range
CVE-2021-47062KVM: SVM: Use online_vcpus, not created_vcpus, to iterate over vCPUs
CVE-2021-47065rtw88: Fix array overrun in rtw_get_tx_power_params()
CVE-2021-47064mt76: fix potential DMA mapping leak
CVE-2021-47063drm: bridge/panel: Cleanup connector on bridge detach
CVE-2021-47066async_xor: increase src_offs when dropping destination page
CVE-2021-47054bus: qcom: Put child node before return
CVE-2021-47020soundwire: stream: fix memory leak in stream config error path
CVE-2021-47055mtd: require write permissions for locking and badblock ioctls
CVE-2021-46959spi: Fix use-after-free with devm_spi_alloc_*
CVE-2024-26620s390/vfio-ap: always filter entire AP matrix
CVE-2024-26619riscv: Fix module loading free order
CVE-2024-26618arm64/sme: Always exit sme_alloc() early with existing storage
CVE-2024-26617fs/proc/task_mmu: move mmu notification mechanism inside mm lock
CVE-2024-26616btrfs: scrub: avoid use-after-free when chunk length is not 64K aligned
CVE-2024-26615net/smc: fix illegal rmb_desc access in SMC-D connection dump
CVE-2024-26614tcp: make sure init the accept_queue's spinlocks once
CVE-2024-26612netfs, fscache: Prevent Oops in fscache_put_cache()

Showing top 20 of 53 CVEs. View all on vendor page → →

IV. Related Vulnerabilities

V. Comments for CVE-2021-47056

No comments yet


Leave a comment