{"id":"CVE-2024-26590","published":"2024-02-22T16:13:34Z","modified":"2026-05-11T20:00:17Z","title":"erofs: fix inconsistent per-file compression format","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nerofs: fix inconsistent per-file compression format\n\nEROFS can select compression algorithms on a per-file basis, and each\nper-file compression algorithm needs to be marked in the on-disk\nsuperblock for initialization.\n\nHowever, syzkaller can generate inconsistent crafted images that use\nan unsupported algorithmtype for specific inodes, e.g. use MicroLZMA\nalgorithmtype even it's not set in `sbi->available_compr_algs`.  This\ncan lead to an unexpected \"BUG: kernel NULL pointer dereference\" if\nthe corresponding decompressor isn't built-in.\n\nFix this by checking against `sbi->available_compr_algs` for each\nm_algorithmformat request.  Incorrect !erofs_sb_has_compr_cfgs preset\nbitmap is now fixed together since it was harmless previously.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00305,"percentile":0.15718,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://git.kernel.org/stable/c/47467e04816cb297905c0f09bc2d11ef865942d9","tags":[]},{"url":"https://git.kernel.org/stable/c/823ba1d2106019ddf195287ba53057aee33cf724","tags":[]},{"url":"https://git.kernel.org/stable/c/eed24b816e50c6cd18cbee0ff0d7218c8fced199","tags":[]},{"url":"https://git.kernel.org/stable/c/118a8cf504d7dfa519562d000f423ee3ca75d2c4","tags":[]}],"priority":{"score":7.0,"factors":[{"name":"EPSS percentile","points":3.14},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 8f89926290c4b3d31748d5089b27952243be0693, < 47467e04816cb297905c0f09bc2d11ef865942d9",">= 8f89926290c4b3d31748d5089b27952243be0693, < 823ba1d2106019ddf195287ba53057aee33cf724",">= 8f89926290c4b3d31748d5089b27952243be0693, < eed24b816e50c6cd18cbee0ff0d7218c8fced199",">= 8f89926290c4b3d31748d5089b27952243be0693, < 118a8cf504d7dfa519562d000f423ee3ca75d2c4"]},{"vendor":"Linux","product":"Linux","versions":["5.16"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-22T16:17:45.622198Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-23852","exploited":false,"provenance":"source"}}