• 公告ID (KylinSec-SA-2025-1021)

摘要:

In the Linux kernel, the following vulnerability has been resolved:

drm/xe: Fix fault on fd close after unbind

If userspace holds an fd open, unbinds the device and then closes it,
the driver shouldn't try to access the hardware. Protect it by using
drm_dev_enter()/drm_dev_exit(). This fixes the following page fault:

<6&gt; [IGT] xe_wedged: exiting, ret=98
<1&gt; BUG: unable to handle page fault for address: ffffc901bc5e508c
<1&gt; #PF: supervisor read access in kernel mode
<1&gt; #PF: error_code(0x0000) - not-present page
...
<4&gt; xe_lrc_update_timestamp+0x1c/0xd0 [xe]
<4&gt; xe_exec_queue_update_run_ticks+0x50/0xb0 [xe]
<4&gt; xe_exec_queue_fini+0x16/0xb0 [xe]
<4&gt; __guc_exec_queue_fini_async+0xc4/0x190 [xe]
<4&gt; guc_exec_queue_fini_async+0xa0/0xe0 [xe]
<4&gt; guc_exec_queue_fini+0x23/0x40 [xe]
<4&gt; xe_exec_queue_destroy+0xb3/0xf0 [xe]
<4&gt; xe_file_close+0xd4/0x1a0 [xe]
<4&gt; drm_file_free+0x210/0x280 [drm]
<4&gt; drm_close_helper.isra.0+0x6d/0x80 [drm]
<4&gt; drm_release_noglobal+0x20/0x90 [drm]

(cherry picked from commit 4ca1fd418338d4d135428a0eb1e16e3b3ce17ee8)

安全等级: Low

公告ID: KylinSec-SA-2025-1021

发布日期: 2025年1月18日

关联CVE: CVE-2024-57844  

  • 详细介绍

1. 漏洞描述

   

In the Linux kernel, the following vulnerability has been resolved:

drm/xe: Fix fault on fd close after unbind

If userspace holds an fd open, unbinds the device and then closes it,
the driver shouldn't try to access the hardware. Protect it by using
drm_dev_enter()/drm_dev_exit(). This fixes the following page fault:

<6&gt; [IGT] xe_wedged: exiting, ret=98
<1&gt; BUG: unable to handle page fault for address: ffffc901bc5e508c
<1&gt; #PF: supervisor read access in kernel mode
<1&gt; #PF: error_code(0x0000) - not-present page
...
<4&gt; xe_lrc_update_timestamp+0x1c/0xd0 [xe]
<4&gt; xe_exec_queue_update_run_ticks+0x50/0xb0 [xe]
<4&gt; xe_exec_queue_fini+0x16/0xb0 [xe]
<4&gt; __guc_exec_queue_fini_async+0xc4/0x190 [xe]
<4&gt; guc_exec_queue_fini_async+0xa0/0xe0 [xe]
<4&gt; guc_exec_queue_fini+0x23/0x40 [xe]
<4&gt; xe_exec_queue_destroy+0xb3/0xf0 [xe]
<4&gt; xe_file_close+0xd4/0x1a0 [xe]
<4&gt; drm_file_free+0x210/0x280 [drm]
<4&gt; drm_close_helper.isra.0+0x6d/0x80 [drm]
<4&gt; drm_release_noglobal+0x20/0x90 [drm]

(cherry picked from commit 4ca1fd418338d4d135428a0eb1e16e3b3ce17ee8)

2. 影响范围

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

3. 影响组件

    无

4. 修复版本

    无

5. 修复方法

   无

6. 下载链接

    无
上一篇:KylinSec-SA-2025-1020 下一篇:KylinSec-SA-2025-1022