ice:修复 VF 的并发重置和删除问题(CVE-2022-48941)

admin 2024-08-22 23:46:38 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
ice:修复 VF 的并发重置和删除问题(CVE-2022-48941)

CVE编号

CVE-2022-48941

利用情况

暂无

补丁情况

N/A

披露时间

2024-08-22
漏洞描述
In the Linux kernel, the following vulnerability has been resolved: ice: fix concurrent reset and removal of VFs Commit c503e63200c6 ("ice: Stop processing VF messages during teardown") introduced a driver state flag, ICE_VF_DEINIT_IN_PROGRESS, which is intended to prevent some issues with concurrently handling messages from VFs while tearing down the VFs. This change was motivated by crashes caused while tearing down and bringing up VFs in rapid succession. It turns out that the fix actually introduces issues with the VF driver caused because the PF no longer responds to any messages sent by the VF during its .remove routine. This results in the VF potentially removing its DMA memory before the PF has shut down the device queues. Additionally, the fix doesn't actually resolve concurrency issues within the ice driver. It is possible for a VF to initiate a reset just prior to the ice driver removing VFs. This can result in the remove task concurrently operating while the VF is being reset. This results in similar memory corruption and panics purportedly fixed by that commit. Fix this concurrency at its root by protecting both the reset and removal flows using the existing VF cfg_lock. This ensures that we cannot remove the VF while any outstanding critical tasks such as a virtchnl message or a reset are occurring. This locking change also fixes the root cause originally fixed by commit c503e63200c6 ("ice: Stop processing VF messages during teardown"), so we can simply revert it. Note that I kept these two changes together because simply reverting the original commit alone would leave the driver vulnerable to worse race conditions.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://git.kernel.org/stable/c/05ae1f0fe9c6c5ead08b306e665763a352d20716
https://git.kernel.org/stable/c/2a3e61de89bab6696aa28b70030eb119968c5586
https://git.kernel.org/stable/c/3c805fce07c9dbc47d8a9129c7c5458025951957
https://git.kernel.org/stable/c/fadead80fe4c033b5e514fcbadd20b55c4494112
CVSS3评分 N/A
  • 攻击路径 N/A
  • 攻击复杂度 N/A
  • 权限要求 N/A
  • 影响范围 N/A
  • 用户交互 N/A
  • 可用性 N/A
  • 保密性 N/A
  • 完整性 N/A
N/A
CWE-ID 漏洞类型
- avd.aliyun.com
weinxin
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
N/A Ali_nvd

N/A

N/ACVE编号 CVE-2024-45163利用情况 暂无补丁情况 N/A披露时间 2024-08-22漏洞描述The Mirai botnet thro
评论:0   参与:  0