{"id":"CVE-2024-46688","summary":"erofs: fix out-of-bound access when z_erofs_gbuf_growsize() partially fails","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nerofs: fix out-of-bound access when z_erofs_gbuf_growsize() partially fails\n\nIf z_erofs_gbuf_growsize() partially fails on a global buffer due to\nmemory allocation failure or fault injection (as reported by syzbot [1]),\nnew pages need to be freed by comparing to the existing pages to avoid\nmemory leaks.\n\nHowever, the old gbuf-\u003epages[] array may not be large enough, which can\nlead to null-ptr-deref or out-of-bound access.\n\nFix this by checking against gbuf-\u003enrpages in advance.\n\n[1] https://lore.kernel.org/r/000000000000f7b96e062018c6e3@google.com","modified":"2026-08-12T03:51:34.517700386Z","published":"2024-09-13T05:29:19.031Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46688.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0005e01e1e875c5e27130c5e2ed0189749d1e08a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/49c0e081998008cde0c872c0ff9affa1ece4b878"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46688.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46688"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d6db47e571dcaecaeaafa8840d00ae849ae3907b"},{"fixed":"49c0e081998008cde0c872c0ff9affa1ece4b878"},{"fixed":"0005e01e1e875c5e27130c5e2ed0189749d1e08a"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-46688.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.10.0"},{"fixed":"6.10.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-46688.json"}}],"schema_version":"1.9.0"}