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

摘要:

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

can: etas_es58x: es58x_rx_err_msg(): fix memory leak in error path

In es58x_rx_err_msg(), if can->do_set_mode() fails, the function
directly returns without calling netif_rx(skb). This means that the
skb previously allocated by alloc_can_err_skb() is not freed. In other
terms, this is a memory leak.

This patch simply removes the return statement in the error branch and
let the function continue.

Issue was found with GCC -fanalyzer, please follow the link below for
details.

安全等级: Low

公告ID: KylinSec-SA-2025-2407

发布日期: 2025年5月30日

关联CVE: CVE-2021-47671  

  • 详细介绍

1. 漏洞描述

   

Linux内核漏洞修复公告:​​

​组件​:CAN子系统(etas_es58x驱动)
​漏洞描述​:
在 es58x_rx_err_msg() 函数中,当 can->do_set_mode() 调用失败时,函数未调用 netif_rx(skb) 直接返回。这导致通过 alloc_can_err_skb() 分配的 skb 缓冲区未被释放,​引发内存泄漏。

​修复方案​:
移除错误分支中的 return 语句,确保函数在失败场景下仍能正确释放内存资源。

​漏洞发现​:
通过 GCC 的静态分析工具 -fanalyzer 检测发现(详见 关联报告)。

2. 影响范围

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

3. 影响组件

    无

4. 修复版本

    无

5. 修复方法

   无

6. 下载链接

    无
上一篇:KylinSec-SA-2025-2377 下一篇:KylinSec-SA-2025-2408