CVE-2026-89838: f2fs: limit recovery filename logging to stored length

Published Sep 16, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

f2fs: limit recovery filename logging to stored length

F2FS stores recovery filenames as a length plus a fixed-size iname buffer. The buffer is not NUL-terminated, but recoverinode() and recoverdentry() print it with %s.

For a 255-byte filename, recovery logging can read past iname into the following raw inode fields.

Print the name with a precision bounded by inamelen and F2FSNAMELEN.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 16, 2026
CVE Published
via MITRE·10:31 AM
Data Sourced
via MITRE·10:31 AM
Description

Frequently Asked Questions

1

What conditions are required for the out-of-bounds read to occur?

F2FS recovery must process an inode or directory entry whose recovery filename is 255 bytes long. The vulnerable logging paths are recover_inode() and recover_dentry(), which print the non-NUL-terminated name buffer with %s.

2

What data could be exposed by the vulnerable logging?

Logging may read beyond the fixed-size i_name buffer and include bytes from raw inode fields that follow it in memory. The provided data describes an information disclosure through recovery filename logging, not a write or code-execution condition.

3

How is the issue fixed?

The fix prints recovery filenames using a precision bounded by both i_namelen and F2FS_NAME_LEN, rather than treating the stored buffer as a NUL-terminated string. The referenced stable kernel commits contain the remediation.

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