Description
In the Linux kernel, the following vulnerability has been resolved: f2fs: reject device aliasing without a multi-device configuration A malformed F2FS image can enable F2FS_FEATURE_DEVICE_ALIAS without providing a multi-device configuration. For a regular single-device filesystem, f2fs_scan_devices() returns without allocating sbi->devs. In this state, f2fs_dev_is_alloc_blocked() passes the device alias feature check and dereferences FDEV(0), resulting in a NULL pointer dereference during segment allocation. Device aliasing requires at least one secondary device. Reject superblocks that enable device aliasing without entries for both the main and secondary devices in sanity_check_raw_super().
Affected products and versions
References
- git.kernel.org/stable/c/a68530a985f7aff0b63d7bfcca44ac12e9916a65
- git.kernel.org/stable/c/7566fec606d233f803e61f5ce37c54fbcdb00010
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.