{"id":"CVE-2026-31467","aliases":["CVE-2026-31467"],"related":[],"kind":"vulnerability","state":"published","title":"erofs: add GFP_NOIO in the bio completion if needed","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nerofs: add GFP_NOIO in the bio completion if needed\n\nThe bio completion path in the process context (e.g. dm-verity)\nwill directly call into decompression rather than trigger another\nworkqueue context for minimal scheduling latencies, which can\nthen call vm_map_ram() with GFP_KERNEL.\n\nDue to insufficient memory, vm_map_ram() may generate memory\nswapping I/O, which can cause submit_bio_wait to deadlock\nin some scenarios.\n\nTrimmed down the call stack, as follows:\n\nf2fs_submit_read_io\n  submit_bio                      //bio_list is initialized.\n    mmc_blk_mq_recovery\n      z_erofs_endio\n        vm_map_ram\n          __pte_alloc_kernel\n            __alloc_pages_direct_reclaim\n              shrink_folio_list\n                __swap_writepage\n                  submit_bio_wait  //bio_list is non-NULL, hang!!!\n\nUse memalloc_noio_{save,restore}() to wrap up this path.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nerofs: add GFP_NOIO in the bio completion if needed\n\nThe bio completion path in the process context (e.g. dm-verity)\nwill directly call into decompression rather than trigger another\nworkqueue context for minimal scheduling latencies, which can\nthen call vm_map_ram() with GFP_KERNEL.\n\nDue to insufficient memory, vm_map_ram() may generate memory\nswapping I/O, which can cause submit_bio_wait to deadlock\nin some scenarios.\n\nTrimmed down the call stack, as follows:\n\nf2fs_submit_read_io\n  submit_bio                      //bio_list is initialized.\n    mmc_blk_mq_recovery\n      z_erofs_endio\n        vm_map_ram\n          __pte_alloc_kernel\n            __alloc_pages_direct_reclaim\n              shrink_folio_list\n                __swap_writepage\n                  submit_bio_wait  //bio_list is non-NULL, hang!!!\n\nUse memalloc_noio_{save,restore}() to wrap up this path.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nerofs: añadir GFP_NOIO en la completación de bio si es necesario\n\nLa ruta de completación de bio en el contexto del proceso (p. ej., dm-verity) llamará directamente a la descompresión en lugar de activar otro contexto de workqueue para latencias de planificación mínimas, lo que luego puede llamar a vm_map_ram() con GFP_KERNEL.\n\nDebido a memoria insuficiente, vm_map_ram() puede generar E/S de intercambio de memoria, lo que puede causar que submit_bio_wait entre en interbloqueo en algunos escenarios.\n\nSe ha reducido la pila de llamadas, como sigue:\n\nf2fs_submit_read_io\n  submit_bio                      //bio_list está inicializada.\n    mmc_blk_mq_recovery\n      z_erofs_endio\n        vm_map_ram\n          __pte_alloc_kernel\n            __alloc_pages_direct_reclaim\n              shrink_folio_list\n                __swap_writepage\n                  submit_bio_wait  //bio_list no es nula, ¡¡¡cuelgue!!!\n\nUsar memalloc_noio_{save,restore}() para envolver esta ruta.","source":"nvd"}],"published":"2026-04-22T13:53:56.910Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-667"],"affected":[{"ranges":[{"type":"git","introduced":"648f2de053a882c87c05f0060f47d3b11841fdbe","fixed":"d6565ea662e17d45a577184b0011bd69de22dc2b","status":"affected"},{"type":"git","introduced":"648f2de053a882c87c05f0060f47d3b11841fdbe","fixed":"d9d8360cb66e3b599d89d2526e7da8b530ebf2ff","status":"affected"},{"type":"git","introduced":"648f2de053a882c87c05f0060f47d3b11841fdbe","fixed":"5c8ecdcfbfb0b0c6a82a4ebadc1ddea61609b902","status":"affected"},{"type":"git","introduced":"648f2de053a882c87c05f0060f47d3b11841fdbe","fixed":"378949f46e897204384f3f5f91e42e93e3f87568","status":"affected"},{"type":"git","introduced":"648f2de053a882c87c05f0060f47d3b11841fdbe","fixed":"da40464064599eefe78749f75cd2bba371044c04","status":"affected"},{"type":"git","introduced":"648f2de053a882c87c05f0060f47d3b11841fdbe","fixed":"e83e20b82859f0588e9a52a6fa9fea704a2061cf","status":"affected"},{"type":"git","introduced":"648f2de053a882c87c05f0060f47d3b11841fdbe","fixed":"c23df30915f83e7257c8625b690a1cece94142a0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.13","status":"unaffected"},{"type":"semver","introduced":"5.15.203","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.168","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.131","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.80","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.21","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.11","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","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":"5.13","fixed":"5.15.203"},{"status":"affected","introduced":"5.16","fixed":"6.1.168"},{"status":"affected","introduced":"6.2","fixed":"6.6.131"},{"status":"affected","introduced":"6.7","fixed":"6.12.80"},{"status":"affected","introduced":"6.13","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d6565ea662e17d45a577184b0011bd69de22dc2b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d9d8360cb66e3b599d89d2526e7da8b530ebf2ff","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c8ecdcfbfb0b0c6a82a4ebadc1ddea61609b902","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/378949f46e897204384f3f5f91e42e93e3f87568","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/da40464064599eefe78749f75cd2bba371044c04","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e83e20b82859f0588e9a52a6fa9fea704a2061cf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c23df30915f83e7257c8625b690a1cece94142a0","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31467","url":"https://www.cve.org/CVERecord?id=CVE-2026-31467","licence":"CVE Terms of Use","modified":"2026-08-05T12:22:46.421Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31467","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31467","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.277Z","epss":{"score":0.00562,"percentile":0.4049,"date":"2026-11-30T12:00:22.000Z"}}