{"id":"CVE-2024-26590","summary":"erofs: fix inconsistent per-file compression format","details":"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-\u003eavailable_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-\u003eavailable_compr_algs` for each\nm_algorithmformat request.  Incorrect !erofs_sb_has_compr_cfgs preset\nbitmap is now fixed together since it was harmless previously.","modified":"2026-04-02T10:04:53.153909Z","published":"2024-02-22T16:13:34.315Z","related":["SUSE-SU-2024:3194-1","SUSE-SU-2024:3195-1","SUSE-SU-2024:3383-1","SUSE-SU-2025:20044-1","SUSE-SU-2025:20047-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26590.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/118a8cf504d7dfa519562d000f423ee3ca75d2c4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/47467e04816cb297905c0f09bc2d11ef865942d9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/823ba1d2106019ddf195287ba53057aee33cf724"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eed24b816e50c6cd18cbee0ff0d7218c8fced199"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26590.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26590"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8f89926290c4b3d31748d5089b27952243be0693"},{"fixed":"47467e04816cb297905c0f09bc2d11ef865942d9"},{"fixed":"823ba1d2106019ddf195287ba53057aee33cf724"},{"fixed":"eed24b816e50c6cd18cbee0ff0d7218c8fced199"},{"fixed":"118a8cf504d7dfa519562d000f423ee3ca75d2c4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26590.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}