dma-buf:堆:修复 CMA 堆故障处理程序中的 off-by-one 问题(CVE-2024-46852)

admin 2024-09-29 00:54:40 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
dma-buf:堆:修复 CMA 堆故障处理程序中的 off-by-one 问题(CVE-2024-46852)

CVE编号

CVE-2024-46852

利用情况

暂无

补丁情况

N/A

披露时间

2024-09-27
漏洞描述
In the Linux kernel, the following vulnerability has been resolved: dma-buf: heaps: Fix off-by-one in CMA heap fault handler Until VM_DONTEXPAND was added in commit 1c1914d6e8c6 ("dma-buf: heaps: Don't track CMA dma-buf pages under RssFile") it was possible to obtain a mapping larger than the buffer size via mremap and bypass the overflow check in dma_buf_mmap_internal. When using such a mapping to attempt to fault past the end of the buffer, the CMA heap fault handler also checks the fault offset against the buffer size, but gets the boundary wrong by 1. Fix the boundary check so that we don't read off the end of the pages array and insert an arbitrary page in the mapping.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://git.kernel.org/stable/c/84175dc5b2c932266a50c04e5ce342c30f817a2f
https://git.kernel.org/stable/c/e79050882b857c37634baedbdcf7c2047c24cbff
https://git.kernel.org/stable/c/ea5ff5d351b520524019f7ff7f9ce418de2dad87
https://git.kernel.org/stable/c/eb7fc8b65cea22f9038c52398c8b22849e9620ea
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
系统 debian_11 linux * Up to (excluding) 5.10.223-1
CVSS3评分 N/A
  • 攻击路径 N/A
  • 攻击复杂度 N/A
  • 权限要求 N/A
  • 影响范围 N/A
  • 用户交互 N/A
  • 可用性 N/A
  • 保密性 N/A
  • 完整性 N/A
N/A
CWE-ID 漏洞类型
- avd.aliyun.com
评论:0   参与:  39