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

摘要:

rust security update

安全等级: Critical

公告ID: KylinSec-SA-2024-1563

发布日期: 2024年2月23日

关联CVE: CVE-2024-24577  

  • 详细介绍

1. 漏洞描述

   

Rust is a systems programming language focused on three goals:safety, speed,and concurrency.It maintains these goals without having a garbage collector, making it a useful language for a number of use cases other languages are not good at: embedding in other languages, programs with specific space and time requirements,and writing low-level code, like device drivers and operating systems. It improves on current languages targeting this space by having a number of compile-time safety checks that produce no runtime overhead,while eliminating all data races.

Security Fix(es):

libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API, allowing to build Git functionality into your application. Using well-crafted inputs to `git_index_add` can cause heap corruption that could be leveraged for arbitrary code execution. There is an issue in the `has_dir_name` function in `src/libgit2/index.c`, which frees an entry that should not be freed. The freed entry is later used and overwritten with potentially bad actor-controlled data leading to controlled heap corruption. Depending on the application that uses libgit2, this could lead to arbitrary code execution. This issue has been patched in version 1.6.5 and 1.7.2.(CVE-2024-24577)

2. 影响范围

cve名称 产品 组件 是否受影响
CVE-2024-24577 KY3.5.2 libgit2 Fixed

3. 影响组件

    rust

4. 修复版本

   

KY3.5.2

软件名称 架构 版本号
rust-src noarch 1.60.0-3.ky3_5
rust-lldb noarch 1.60.0-3.ky3_5
rust-gdb noarch 1.60.0-3.ky3_5
rustfmt x86_64 1.60.0-3.ky3_5
rust-analysis x86_64 1.60.0-3.ky3_5
cargo x86_64 1.60.0-3.ky3_5
rust-std-static x86_64 1.60.0-3.ky3_5
clippy x86_64 1.60.0-3.ky3_5
rust-help x86_64 1.60.0-3.ky3_5
rust x86_64 1.60.0-3.ky3_5
rls x86_64 1.60.0-3.ky3_5
rust aarch64 1.60.0-3.ky3_5
rustfmt aarch64 1.60.0-3.ky3_5
rust-help aarch64 1.60.0-3.ky3_5
rust-analysis aarch64 1.60.0-3.ky3_5
cargo aarch64 1.60.0-3.ky3_5
rust-std-static aarch64 1.60.0-3.ky3_5
clippy aarch64 1.60.0-3.ky3_5
rls aarch64 1.60.0-3.ky3_5

5. 修复方法


方法一:下载安装包进行升级安装
1、通过下载链接下载需要升级的升级包保存,如 xxx.rpm
2、通过rpm命令升级,如 rpm -Uvh xxx.rpm

方法二:通过软件源进行升级安装
1、保持能够连接上互联网
2、通过yum命令升级指定的包,如 yum install 包名

6. 下载链接

   

KY3.5.2:

x86_64:

     rust-src   

     rust-lldb   

     rust-gdb   

     rustfmt   

     rust-analysis   

     cargo   

     rust-std-static   

     clippy   

     rust-help   

     rust   

     rls   

aarch64:

     rust-src   

     rust-lldb   

     rust-gdb   

     rust   

     rustfmt   

     rust-help   

     rust-analysis   

     cargo   

     rust-std-static   

     clippy   

     rls   

上一篇:KylinSec-SA-2024-1495 下一篇:KylinSec-SA-2024-1564