cachefiles:设置 CACHEFILES_DEAD 后刷新所有请求(CVE-2024-40935)

admin 2024-07-22 15:19:50 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
cachefiles:设置 CACHEFILES_DEAD 后刷新所有请求(CVE-2024-40935)

CVE编号

CVE-2024-40935

利用情况

暂无

补丁情况

N/A

披露时间

2024-07-12
漏洞描述
In the Linux kernel, the following vulnerability has been resolved: cachefiles: flush all requests after setting CACHEFILES_DEAD In ondemand mode, when the daemon is processing an open request, if the kernel flags the cache as CACHEFILES_DEAD, the cachefiles_daemon_write() will always return -EIO, so the daemon can't pass the copen to the kernel. Then the kernel process that is waiting for the copen triggers a hung_task. Since the DEAD state is irreversible, it can only be exited by closing /dev/cachefiles. Therefore, after calling cachefiles_io_error() to mark the cache as CACHEFILES_DEAD, if in ondemand mode, flush all requests to avoid the above hungtask. We may still be able to read some of the cached data before closing the fd of /dev/cachefiles. Note that this relies on the patch that adds reference counting to the req, otherwise it may UAF.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://git.kernel.org/stable/c/320ba9cbca78be79c912143bbba1d1b35ca55cf0
https://git.kernel.org/stable/c/3bf0b8030296e9ee60d3d4c15849ad9ac0b47081
https://git.kernel.org/stable/c/85e833cd7243bda7285492b0653c3abb1e2e757b
https://git.kernel.org/stable/c/e73fac95084839c5178d97e81c6a2051251bdc00
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
系统 debian_11 linux * Up to (excluding) 5.10.218-1
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
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论:0   参与:  0