CVE-2026-139569: f2fs: reject device aliasing without a multi-device configuration

Published Nov 30, 2026
·
Updated

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 F2FSFEATUREDEVICEALIAS without providing a multi-device configuration. For a regular single-device filesystem, f2fsscandevices() returns without allocating sbi->devs.

In this state, f2fsdevisallocblocked() 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 sanitycheckrawsuper().

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:35 PM
Data Sourced
via MITRE·01:35 PM
Description

Frequently Asked Questions

1

What conditions are required to trigger the NULL pointer dereference?

An attacker needs to provide a malformed F2FS image that enables F2FS_FEATURE_DEVICE_ALIAS while omitting the required multi-device configuration. The filesystem is then treated as a regular single-device filesystem, leaving the device array unallocated before segment allocation dereferences its first entry.

2

Are ordinary single-device F2FS filesystems affected?

The vulnerable condition is a malformed single-device F2FS image that advertises device aliasing without entries for both the main and secondary devices. A normal single-device filesystem that does not enable the device-alias feature is not described as affected.

3

What validation prevents the issue after the fix?

The fix rejects superblocks that enable device aliasing unless they include entries for both the main device and at least one secondary device. This validation occurs in sanity_check_raw_super().

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203