漏洞标题
erofs:修复当z_erofs_gbuf_growsize()部分失败时越界的访问问题
漏洞描述信息
在Linux内核中,已解决以下漏洞:
erofs:修复当z_erofs_gbuf_growsize()部分失败时的越界访问
如果由于内存分配失败或注入故障(如syzbot报告的那样 [1])导致全局缓冲区上z_erofs_gbuf_growsize()部分失败,那么需要通过比较现有页面来释放新页面,以防止内存泄露。
然而,旧的gbuf->pages[]数组可能不够大,这可能导致null-ptr-deref或越界访问。
通过提前检查gbuf->nrpages来修复此问题。
[1] https://lore.kernel.org/r/000000000000f7b96e062018c6e3@google.com
CVSS信息
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
漏洞类别
跨界内存读
漏洞标题
erofs: fix out-of-bound access when z_erofs_gbuf_growsize() partially fails
漏洞描述信息
In the Linux kernel, the following vulnerability has been resolved:
erofs: fix out-of-bound access when z_erofs_gbuf_growsize() partially fails
If z_erofs_gbuf_growsize() partially fails on a global buffer due to
memory allocation failure or fault injection (as reported by syzbot [1]),
new pages need to be freed by comparing to the existing pages to avoid
memory leaks.
However, the old gbuf->pages[] array may not be large enough, which can
lead to null-ptr-deref or out-of-bound access.
Fix this by checking against gbuf->nrpages in advance.
[1] https://lore.kernel.org/r/000000000000f7b96e062018c6e3@google.com
CVSS信息
N/A
漏洞类别
N/A
漏洞标题
Linux kernel 安全漏洞
漏洞描述信息
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于在z_erofs_gbuf_growsize函数部分失败时未能正确释放新页面,可能导致内存泄漏或越界访问。
CVSS信息
N/A
漏洞类别
其他