漏洞信息
# drm/amd/display:修复 CalculateVMAndRowBytes 中的移位越界问题
## 漏洞概述
在Linux内核中的drm/amd/display模块中,修复了一个在`CalculateVMAndRowBytes`函数中的移位越界问题。
## 影响版本
未具体提及受影响的Linux内核版本。
## 细节
当`PTEBufferSizeInRequests`为零时,UBSAN(Undefined Behavior Sanitizer)会报告以下警告,因为`dml_log2`返回了一个意外的负值:
```plaintext
shift exponent 4294966273 is too large for 32-bit type 'int'
```
## 影响
在`PTEBufferSizeInRequests`为零的情况下,绕过`dml_log2()`函数直接赋值结果。
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
drm/amd/display: fix shift-out-of-bounds in CalculateVMAndRowBytes
漏洞描述信息
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: fix shift-out-of-bounds in CalculateVMAndRowBytes
[WHY]
When PTEBufferSizeInRequests is zero, UBSAN reports the following
warning because dml_log2 returns an unexpected negative value:
shift exponent 4294966273 is too large for 32-bit type 'int'
[HOW]
In the case PTEBufferSizeInRequests is zero, skip the dml_log2() and
assign the result directly.
CVSS信息
N/A
漏洞类别
N/A
漏洞标题
Linux kernel 安全漏洞
漏洞描述信息
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于CalculateVMAndRowBytes中存在移位越界。
CVSS信息
N/A
漏洞类别
其他