{"id":"CVE-2024-46688","published":"2024-09-13T05:29:19Z","modified":"2026-05-11T20:34:28Z","title":"erofs: fix out-of-bound access when z_erofs_gbuf_growsize() partially fails","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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->pages[] 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->nrpages in advance.\n\n[1] https://lore.kernel.org/r/000000000000f7b96e062018c6e3@google.com","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00297,"percentile":0.14744,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/49c0e081998008cde0c872c0ff9affa1ece4b878","tags":[]},{"url":"https://git.kernel.org/stable/c/0005e01e1e875c5e27130c5e2ed0189749d1e08a","tags":[]}],"priority":{"score":2.9,"factors":[{"name":"EPSS percentile","points":2.95}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= d6db47e571dcaecaeaafa8840d00ae849ae3907b, < 49c0e081998008cde0c872c0ff9affa1ece4b878",">= d6db47e571dcaecaeaafa8840d00ae849ae3907b, < 0005e01e1e875c5e27130c5e2ed0189749d1e08a"]},{"vendor":"Linux","product":"Linux","versions":["6.10"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-29T15:07:39.843089Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-41949","exploited":false,"provenance":"source"}}