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

摘要:

In the Linux kernel, the following vulnerability has been resolved:swiotlb: initialise restricted pool list_head when SWIOTLB_DYNAMIC=yUsing restricted DMA pools (CONFIG_DMA_RESTRICTED_POOL=y) in conjunctionwith dynamic SWIOTLB (CONFIG_SWIOTLB_DYNAMIC=y) leads to the followingcrash when initialising the restricted pools at boot-time: | Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008 | Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP | pc : rmem_swiotlb_device_init+0xfc/0x1ec | lr : rmem_swiotlb_device_init+0xf0/0x1ec | Call trace: | rmem_swiotlb_device_init+0xfc/0x1ec | of_reserved_mem_device_init_by_idx+0x18c/0x238 | of_dma_configure_id+0x31c/0x33c | platform_dma_configure+0x34/0x80faddr2line reveals that the crash is in the list validation code: include/linux/list.h:83 include/linux/rculist.h:79 include/linux/rculist.h:106 kernel/dma/swiotlb.c:306 kernel/dma/swiotlb.c:1695because add_mem_pool() is trying to list_add_rcu() to a NULL mem->pools .Fix the crash by initialising the mem->pools list_head inrmem_swiotlb_device_init() before calling add_mem_pool().

安全等级: Low

公告ID: KylinSec-SA-2024-3014

发布日期: 2024年7月4日

关联CVE: CVE-2024-36925  

  • 详细介绍

1. 漏洞描述

   

In the Linux kernel, the following vulnerability has been resolved:swiotlb: initialise restricted pool list_head when SWIOTLB_DYNAMIC=yUsing restricted DMA pools (CONFIG_DMA_RESTRICTED_POOL=y) in conjunctionwith dynamic SWIOTLB (CONFIG_SWIOTLB_DYNAMIC=y) leads to the followingcrash when initialising the restricted pools at boot-time: | Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008 | Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP | pc : rmem_swiotlb_device_init+0xfc/0x1ec | lr : rmem_swiotlb_device_init+0xf0/0x1ec | Call trace: | rmem_swiotlb_device_init+0xfc/0x1ec | of_reserved_mem_device_init_by_idx+0x18c/0x238 | of_dma_configure_id+0x31c/0x33c | platform_dma_configure+0x34/0x80faddr2line reveals that the crash is in the list validation code: include/linux/list.h:83 include/linux/rculist.h:79 include/linux/rculist.h:106 kernel/dma/swiotlb.c:306 kernel/dma/swiotlb.c:1695because add_mem_pool() is trying to list_add_rcu() to a NULL mem->pools .Fix the crash by initialising the mem->pools list_head inrmem_swiotlb_device_init() before calling add_mem_pool().

2. 影响范围

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

3. 影响组件

    无

4. 修复版本

    无

5. 修复方法

   无

6. 下载链接

    无
上一篇:KylinSec-SA-2024-3013 下一篇:KylinSec-SA-2024-3015