of:动态:将 of_changeset_destroy() 与 devlink 删除同步 (CVE-2024-35879)

admin 2024-05-22 00:31:28 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
of:动态:将 of_changeset_destroy() 与 devlink 删除同步 (CVE-2024-35879)

CVE编号

CVE-2024-35879

利用情况

暂无

补丁情况

N/A

披露时间

2024-05-19
漏洞描述
In the Linux kernel, the following vulnerability has been resolved: of: dynamic: Synchronize of_changeset_destroy() with the devlink removals In the following sequence: 1) of_platform_depopulate() 2) of_overlay_remove() During the step 1, devices are destroyed and devlinks are removed. During the step 2, OF nodes are destroyed but __of_changeset_entry_destroy() can raise warnings related to missing of_node_put(): ERROR: memory leak, expected refcount 1 instead of 2 ... Indeed, during the devlink removals performed at step 1, the removal itself releasing the device (and the attached of_node) is done by a job queued in a workqueue and so, it is done asynchronously with respect to function calls. When the warning is present, of_node_put() will be called but wrongly too late from the workqueue job. In order to be sure that any ongoing devlink removals are done before the of_node destruction, synchronize the of_changeset_destroy() with the devlink removals.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://git.kernel.org/stable/c/3127b2ee50c424a96eb3559fbb7b43cf0b111c7a
https://git.kernel.org/stable/c/3ee2424107546d882e1ddd75333ca9c32879908c
https://git.kernel.org/stable/c/7b6df050c45a1ea158fd50bc32a8e1447dd1e951
https://git.kernel.org/stable/c/801c8b8ec5bfb3519566dff16a5ecd48302fca82
https://git.kernel.org/stable/c/8917e7385346bd6584890ed362985c219fe6ae84
https://git.kernel.org/stable/c/ae6d76e4f06c37a623e357e79d49b17411db6f5c
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
系统 debian_10 linux * Up to (excluding) 4.19.304-1
运行在以下环境
系统 debian_11 linux * Up to (excluding) 5.10.216-1
运行在以下环境
系统 debian_12 linux * Up to (excluding) 6.1.85-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