CVEvulnerability

CVE-2024-46688

5.5 MEDIUM Published 2024-09-13 Modified 2026-06-17 Official page ↗
Status
Analyzed
Published
2024-09-13
Last modified
2026-06-17
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 ([email protected])
5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-787

Description

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/[email protected]

Affected configurations

• linux linux kernel (>= 6.10 < 6.10.8) • linux linux kernel 6.11

Related

Weakness · CWE (1)

  • CWE-787 Out-of-bounds Write weakness

References