HIGH Introduced in 3.11
f2fs RecoveryName OOB
CVE-2026-89838
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
KernelScan AI2.5LOW
01Description
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.
02KernelScan AI Analysis
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.
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.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 3.11 | 5.10.273 | b8ac8b14b9d9 |
| 5.15 | 3.11 | 5.15.224 | 450ab2e5dbe0 |
| 6.1 | 3.11 | 6.1.191 | 3d02c7c8446f |
| 6.12 | 3.11 | 6.12.112 | 7ab178007494 |
| 6.18 | 3.11 | 6.18.53 | 35c5abccd092 |
| 6.6 | 3.11 | 6.6.160 | e754120f8ede |
| 7.2 | 3.11 | 7.2.5 | 317d32e1a8de |
| mainline | 3.11 | 7.3 | 01027b2fcb74 |
| cip/6.12 | 3.11 | 6.12.112-cip33 | 7ab178007494 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip136) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip136-rt50) |
| cip/4.4 | Affected — no CIP fix yet (latest 4.4.302-cip115) |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |