Grub2: ufs: integer overflow may lead to heap based out-of-bounds write when handling symlinks
Red Hat / Red Hat Enterprise Linux 10、Red Hat Enterprise Linux 9、Red Hat Enterprise Linux 7、Red Hat Enterprise Linux 8、Red Hat OpenShift Container Platform 4
CVE 记录列出的受影响产品:Red Hat · Red Hat OpenShift Container Platform 4nday 产品登记表中 OpenShift 的产品类型
当前阶段
DIS
披露
CVSS
6.4 MEDIUM v3.1
# 生命周期
横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录
# 摘要
A flaw was found in grub2. When performing a symlink lookup, the grub's UFS module checks the inode's data size to allocate the internal buffer to read the file content, however, it fails to check if the symlink data size has overflown. When this occurs, grub_malloc() may be called with a smaller value than needed. When further reading the data from the disk into the buffer, the grub_ufs_lookup_symlink() function will write past the end of the allocated size. An attack can leverage this by crafting a malicious filesystem, and as a result, it will corrupt data stored in the heap, allowing for arbitrary code execution used to by-pass secure boot mechanisms.