KernelScan.io

HIGH Introduced in 3.11

f2fs RecoveryName OOB

CVE-2026-89838

CVSS 7.1 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

KernelScan AI2.5LOW

01

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 i_name buffer. The buffer is not NUL-terminated, but recover_inode() and recover_dentry() print it with %s. For a 255-byte filename, recovery logging can read past i_name into the following raw inode fields. Print the name with a precision bounded by i_namelen and F2FS_NAME_LEN.

02

Engine v0.6.0

Risk summary

An out-of-bounds read in the F2FS recovery routine leaks on-disk inode metadata to the kernel log when a maximum-length filename is printed without bounding the read length. The bug is reachable during F2FS recovery, triggered by mounting a crafted filesystem image or by recovery after an unclean shutdown of a filesystem where a long filename was previously created. The impact is limited to a minor information leak of filesystem-internal data.

Affectedfs/f2fs/recovery.c (f2fs filesystem)

Vulnerability analysis

The F2FS filesystem recovery routine stores filenames in a fixed-size buffer that is not NUL-terminated, but prints them using an unbounded string format during recovery logging. For a maximum-length filename, this causes the kernel to read past the filename buffer into adjacent on-disk inode fields, leaking filesystem metadata to the kernel log. The fix bounds the printed length to the stored filename length and the maximum buffer size using a precision format specifier. The vulnerable code path is reached during F2FS recovery, which runs when a filesystem with pending recovery entries is mounted — either by an administrator mounting a crafted image or automatically after an unclean shutdown of a filesystem where an unprivileged user previously created a maximum-length filename.

03

BranchIntroducedFixed inPatch commit
5.103.115.10.273b8ac8b14b9d9
5.153.115.15.224450ab2e5dbe0
6.13.116.1.1913d02c7c8446f
6.123.116.12.1127ab178007494
6.183.116.18.5335c5abccd092
6.63.116.6.160e754120f8ede
7.23.117.2.5317d32e1a8de
mainline3.117.301027b2fcb74
cip/6.123.116.12.112-cip337ab178007494

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.112-cip33
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip137)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip137-rt51)
cip/4.4Affected — no CIP fix yet (latest 4.4.302-cip116)
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)