{"id":"CVE-2024-46688","aliases":["CVE-2024-46688"],"related":[],"kind":"vulnerability","state":"published","title":"erofs: fix out-of-bound access when z_erofs_gbuf_growsize() partially fails","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","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","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: erofs: se corrige el acceso fuera de los límites cuando z_erofs_gbuf_growsize() falla parcialmente Si z_erofs_gbuf_growsize() falla parcialmente en un búfer global debido a un error en la asignación de memoria o inyección de fallas (como lo informó syzbot [1]), se deben liberar nuevas páginas comparándolas con las páginas existentes para evitar fugas de memoria. Sin embargo, la matriz gbuf-&gt;pages[] anterior puede no ser lo suficientemente grande, lo que puede provocar un acceso fuera de los límites o una desreferencia de ptr nula. Corrija esto verificando con gbuf-&gt;nrpages de antemano. [1] https://lore.kernel.org/r/000000000000f7b96e062018c6e3@google.com","source":"nvd"}],"published":"2024-09-13T05:29:19.031Z","modified":"2026-06-17T07:55:44.103Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"d6db47e571dcaecaeaafa8840d00ae849ae3907b","fixed":"49c0e081998008cde0c872c0ff9affa1ece4b878","status":"affected"},{"type":"git","introduced":"d6db47e571dcaecaeaafa8840d00ae849ae3907b","fixed":"0005e01e1e875c5e27130c5e2ed0189749d1e08a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.10","status":"unaffected"},{"type":"semver","introduced":"6.10.8","lastAffected":"6.10.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.11","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.10","fixed":"6.10.8"},{"status":"affected","version":"6.11"},{"status":"affected","version":"6.11"},{"status":"affected","version":"6.11"},{"status":"affected","version":"6.11"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/49c0e081998008cde0c872c0ff9affa1ece4b878","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0005e01e1e875c5e27130c5e2ed0189749d1e08a","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-29T15:07:39.843Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-46688","url":"https://www.cve.org/CVERecord?id=CVE-2024-46688","licence":"CVE Terms of Use","modified":"2026-05-11T20:34:28.918Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-46688","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46688","licence":"Public domain","modified":"2026-06-17T07:55:44.103Z"}],"updatedAt":"2026-11-25T22:58:45.379Z","epss":{"score":0.002,"percentile":0.10342,"date":"2026-12-01T12:00:22.000Z"}}