CVE-2026-63815: f2fs: bound i_inline_xattr_size for non-inline-xattr inodes

Published Jul 19, 2026
·
Updated

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

f2fs: bound iinlinexattrsize for non-inline-xattr inodes

When the flexibleinlinexattr feature is enabled, doreadinode() loads the on-disk iinlinexattrsize unconditionally:

if (f2fssbhasflexibleinlinexattr(sbi)) fi->iinlinexattrsize = le16tocpu(ri->iinlinexattrsize);

but sanitycheckinode() only range-checks it when the inode also has the FIINLINEXATTR flag set. An inode that carries an inline dentry or inline data but not FIINLINEXATTR -- the normal layout for an inline directory -- therefore keeps a fully attacker-controlled iinlinexattrsize from a crafted image.

getinlinexattraddrs() returns that value with no flag gating, so it feeds the inode geometry:

MAXINLINEDATA() = 4 (CURADDRSPERINODE - iinlinexattrsize - 1) NRINLINEDENTRY() = MAXINLINEDATA() BITSPERBYTE / (...) addrsperpage() = CURADDRSPERINODE - iinlinexattrsize

A large iinlinexattrsize drives MAXINLINEDATA() and NRINLINEDENTRY() negative, so makedentryptrinline() sets d->max (int) to a negative value. The inline directory walk then compares an unsigned long bitpos against that negative d->max, which is promoted to a huge unsigned bound, and reads far past the inline area:

while (bitpos < d->max) / fs/f2fs/dir.c / ... testbitle(bitpos, d->bitmap) / d->dentry[bitpos] ...

Mounting a crafted image and reading such a directory triggers an out-of-bounds read in f2fsfilldentries(); the same underflow also corrupts ADDRSPERINODE for regular files.

Validate iinlinexattrsize against MAXINLINEXATTRSIZE whenever the flexibleinlinexattr feature is enabled -- i.e. whenever the value is loaded from disk and consumed -- and keep the lower MININLINEXATTRSIZE bound gated on inodes that actually carry an inline xattr, so legitimate inodes with iinlinexattrsize == 0 are still accepted.

Affected Software

1 affected component
The Linux Kernel Organization Linux kernel (F2FS filesystem)

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    When the flexible_inline_xattr feature is enabled, ensure the kernel fix is applied so i_inline_xattr_size is properly bounded; otherwise crafted images can cause underflow/overflow in inline directory handling.

    f2fs flexible_inline_xattr = enable/allowed only after patch
  2. Configuration

    Disable the flexible_inline_xattr feature on vulnerable kernels until the fix that validates i_inline_xattr_size against MAX_INLINE_XATTR_SIZE is applied.

    f2fs f2fs_sb_has_flexible_inline_xattr(sbi) / flexible_inline_xattr feature gating = disabled for vulnerable kernels

Event History

Jul 19, 2026
CVE Published
via MITRE·12:02 PM
Data Sourced
via MITRE·12:02 PM
DescriptionSeverity
Data Sourced
via NVD·12:16 PM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-63815?

CVE-2026-63815 has a high severity rating of 8.4 according to CVSS 3.1.

2

What are the impacts of CVE-2026-63815?

CVE-2026-63815 can lead to high confidentiality, integrity, and availability impacts due to improper handling of inline extended attributes.

3

How do I fix CVE-2026-63815?

To fix CVE-2026-63815, update to the patched version of the Linux kernel that resolves this issue.

4

Which software is affected by CVE-2026-63815?

CVE-2026-63815 affects the Linux kernel, specifically the F2FS filesystem.

5

When was CVE-2026-63815 published?

CVE-2026-63815 was published on July 19, 2026.

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