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

摘要:

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

ipv4: prevent potential spectre v1 gadget in ip_metrics_convert()

if (!type)
continue;
if (type > RTAX_MAX)
return -EINVAL;
...
metrics[type - 1] = val;

@type being used as an array index, we need to prevent
cpu speculation or risk leaking kernel memory content.

安全等级: Low

公告ID: KylinSec-SA-2025-2388

发布日期: 2025年4月28日

关联CVE: CVE-2023-52997  

  • 详细介绍

1. 漏洞描述

   

在Linux内核中修复了以下漏洞:

ipv4:防止ip_metrics_convert()中潜在的Spectre v1攻击漏洞

当@type被用作数组索引时(metrics[type - 1] = val),存在以下风险代码模式:
if (!type)
continue;
if (type > RTAX_MAX)
return -EINVAL;
...
metrics[type - 1] = val;

由于@type被用作数组索引,我们需要防止CPU推测执行,否则可能导致内核内存内容泄露。

2. 影响范围

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

3. 影响组件

    无

4. 修复版本

    无

5. 修复方法

   无

6. 下载链接

    无
上一篇:KylinSec-SA-2025-2387 下一篇:KylinSec-SA-2025-2389