CVE-2026-93816: f2fs: validate inline dentry name lengths before conversion
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
f2fs: validate inline dentry name lengths before conversion
Inline dentry conversion copies names out of the inline dentry area before checking that each recorded name length fits in the available filename slots.
A corrupted image can therefore make the conversion path read past the inline filename storage while building the regular dentry block.
Validate each inline dentry name length against the inline filename area before copying it.
The Linux kernel CVE team has assigned CVE-2026-93816 to this issue.
Affected and fixed versions
===========================
Fixed in 6.12.111 with commit 2ce0bc5853bec7cdc724477a87ea579fde664243 Fixed in 6.18.53 with commit 7caa8a0ae94b132576c2e46e9b4fd4e0f356f373 Fixed in 7.2 with commit cfcd0e49a178b3dac2c0ece656079081dbf5da74
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-93816
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/f2fs/inline.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/2ce0bc5853bec7cdc724477a87ea579fde664243 https://git.kernel.org/stable/c/7caa8a0ae94b132576c2e46e9b4fd4e0f356f373 https://git.kernel.org/stable/c/cfcd0e49a178b3dac2c0ece656079081dbf5da74