• 公告ID (KylinSec-SA-2024-3091)

摘要:

In the Linux kernel, the following vulnerability has been resolved:thermal/debugfs: Prevent use-after-free from occurring after cdev removalSince thermal_debug_cdev_remove() does not run under cdev-&gt;lock, it canrun in parallel with thermal_debug_cdev_state_update() and it may freethe struct thermal_debugfs object used by the latter after it has beenchecked against NULL.If that happens, thermal_debug_cdev_state_update() will access memorythat has been freed already causing the kernel to crash.Address this by using cdev-&gt;lock in thermal_debug_cdev_remove() aroundthe cdev-&gt;debugfs value check (in case the same cdev is removed at thesame time in two different threads) and its reset to NULL.Cc :6.8+ <stable@vger.kernel.org&gt; # 6.8+

安全等级: Low

公告ID: KylinSec-SA-2024-3091

发布日期: 2024年7月10日

关联CVE: CVE-2024-36932  

  • 详细介绍

1. 漏洞描述

   

In the Linux kernel, the following vulnerability has been resolved:thermal/debugfs: Prevent use-after-free from occurring after cdev removalSince thermal_debug_cdev_remove() does not run under cdev-&gt;lock, it canrun in parallel with thermal_debug_cdev_state_update() and it may freethe struct thermal_debugfs object used by the latter after it has beenchecked against NULL.If that happens, thermal_debug_cdev_state_update() will access memorythat has been freed already causing the kernel to crash.Address this by using cdev-&gt;lock in thermal_debug_cdev_remove() aroundthe cdev-&gt;debugfs value check (in case the same cdev is removed at thesame time in two different threads) and its reset to NULL.Cc :6.8+ <stable@vger.kernel.org&gt; # 6.8+

2. 影响范围

cve名称 产品 组件 是否受影响
CVE-2024-36932 KY3.4-5A kernel Unaffected
CVE-2024-36932 KY3.5.2 kernel Unaffected
CVE-2024-36932 V6 kernel Unaffected

3. 影响组件

    无

4. 修复版本

    无

5. 修复方法

   无

6. 下载链接

    无
上一篇:KylinSec-SA-2024-3090 下一篇:KylinSec-SA-2024-3092