rust-osdev linked-list-allocator 内存缓冲区边界内操作的限制不恰当

admin 2023-11-30 06:07:28 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
中危 rust-osdev linked-list-allocator 内存缓冲区边界内操作的限制不恰当

CVE编号

CVE-2022-36086

利用情况

暂无

补丁情况

官方补丁

披露时间

2022-09-08
漏洞描述
linked_list_allocator is an allocator usable for no_std systems. Prior to version 0.10.2, the heap initialization methods were missing a minimum size check for the given heap size argument. This could lead to out-of-bound writes when a heap was initialized with a size smaller than `3 * size_of::<usize>` because of metadata write operations. This vulnerability impacts all the initialization functions on the `Heap` and `LockedHeap` types, including `Heap::new`, `Heap::init`, `Heap::init_from_slice`, and `LockedHeap::new`. It also affects multiple uses of the `Heap::extend` method. Version 0.10.2 contains a patch for the issue. As a workaround, ensure that the heap is only initialized with a size larger than `3 * size_of::<usize>` and that the `Heap::extend` method is only called with sizes larger than `2 * size_of::<usize>()`. Also, ensure that the total heap size is (and stays) a multiple of `2 * size_of::<usize>()`.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://github.com/rust-osdev/linked-list-allocator/commit/013b0758643943e8df...
https://github.com/rust-osdev/linked-list-allocator/security/advisories/GHSA-...
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 rust-osdev linked-list-allocator * Up to (excluding) 0.10.2
阿里云评分 6.7
  • 攻击路径 远程
  • 攻击复杂度 容易
  • 权限要求 无需权限
  • 影响范围 全局影响
  • EXP成熟度 未验证
  • 补丁情况 官方补丁
  • 数据保密性 无影响
  • 数据完整性 无影响
  • 服务器危害 无影响
  • 全网数量 N/A
CWE-ID 漏洞类型
CWE-119 内存缓冲区边界内操作的限制不恰当
CWE-1284 Improper Validation of Specified Quantity in Input
CWE-787 跨界内存写
- avd.aliyun.com
weinxin
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
N/A Ali_nvd

N/A

N/ACVE编号 CVE-2024-9120利用情况 暂无补丁情况 N/A披露时间 2024-09-23漏洞描述Use after free in Dawn
评论:0   参与:  0