{"id":"CVE-2026-31467","published":"2026-04-22T13:53:56Z","modified":"2026-08-05T12:22:46Z","title":"erofs: add GFP_NOIO in the bio completion if needed","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00393,"percentile":0.34217,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/d6565ea662e17d45a577184b0011bd69de22dc2b","tags":[]},{"url":"https://git.kernel.org/stable/c/d9d8360cb66e3b599d89d2526e7da8b530ebf2ff","tags":[]},{"url":"https://git.kernel.org/stable/c/5c8ecdcfbfb0b0c6a82a4ebadc1ddea61609b902","tags":[]},{"url":"https://git.kernel.org/stable/c/378949f46e897204384f3f5f91e42e93e3f87568","tags":[]},{"url":"https://git.kernel.org/stable/c/da40464064599eefe78749f75cd2bba371044c04","tags":[]},{"url":"https://git.kernel.org/stable/c/e83e20b82859f0588e9a52a6fa9fea704a2061cf","tags":[]},{"url":"https://git.kernel.org/stable/c/c23df30915f83e7257c8625b690a1cece94142a0","tags":[]}],"priority":{"score":12.1,"factors":[{"name":"EPSS percentile","points":6.84},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 648f2de053a882c87c05f0060f47d3b11841fdbe, < d6565ea662e17d45a577184b0011bd69de22dc2b",">= 648f2de053a882c87c05f0060f47d3b11841fdbe, < d9d8360cb66e3b599d89d2526e7da8b530ebf2ff",">= 648f2de053a882c87c05f0060f47d3b11841fdbe, < 5c8ecdcfbfb0b0c6a82a4ebadc1ddea61609b902",">= 648f2de053a882c87c05f0060f47d3b11841fdbe, < 378949f46e897204384f3f5f91e42e93e3f87568",">= 648f2de053a882c87c05f0060f47d3b11841fdbe, < da40464064599eefe78749f75cd2bba371044c04",">= 648f2de053a882c87c05f0060f47d3b11841fdbe, < e83e20b82859f0588e9a52a6fa9fea704a2061cf",">= 648f2de053a882c87c05f0060f47d3b11841fdbe, < c23df30915f83e7257c8625b690a1cece94142a0"]},{"vendor":"Linux","product":"Linux","versions":["5.13"]}],"euvd":{"id":"EUVD-2026-24814","exploited":false,"provenance":"source"}}