CVE-2025-68264: ext4: refresh inline data size before write operations
In the Linux kernel, the following vulnerability has been resolved:
ext4: refresh inline data size before write operations
The cached ei->i_inline_size can become stale between the initial size
check and when ext4_update_inline_data()/ext4_create_inline_data() use
it. Although ext4_get_max_inline_size() reads the correct value at the
time of the check, concurrent xattr operations can modify i_inline_size
before ext4_write_lock_xattr() is acquired.
This causes ext4_update_inline_data() and ext4_create_inline_data() to
work with stale capacity values, leading to a BUG_ON() crash in
ext4_write_inline_data():
kernel BUG at fs/ext4/inline.c:1331!
BUG_ON(pos + len > EXT4_I(inode)->i_inline_size);
The race window:
1. ext4_get_max_inline_size() reads i_inline_size = 60 (correct)
2. Size check passes for 50-byte write
3. [Another thread adds xattr, i_inline_size changes to 40]
4. ext4_write_lock_xattr() acquires lock
5. ext4_update_inline_data() uses stale i_inline_size = 60
6. Attempts to write 50 bytes but only 40 bytes actually available
7. BUG_ON() triggers
Fix this by recalculating i_inline_size via ext4_find_inline_data_nolock()
immediately after acquiring xattr_sem. This ensures ext4_update_inline_data()
and ext4_create_inline_data() work with current values that are protected
from concurrent modifications.
This is similar to commit a54c4613dac1 ("ext4: fix race writing to an
inline_data file while its xattrs are changing") which fixed i_inline_off
staleness. This patch addresses the related i_inline_size staleness issue.
Security readout for executives and security teams
Plain-English summary
CVE-2025-68264 is a Linux kernel ext4 filesystem flaw where a race during file writes and extended-attribute changes can make the kernel use stale inline-data size information. The documented result is a kernel BUG crash, so the business impact is primarily availability loss on affected Linux systems.
Executive priority
Treat this as a reliability and service-availability issue. Patch through normal kernel maintenance, with accelerated handling for shared Linux infrastructure, container hosts, and operational technology environments where an unexpected kernel crash could disrupt business operations.
Technical view
In ext4 inline-data handling, ei->i_inline_size can become stale after an initial size check but before ext4_update_inline_data() or ext4_create_inline_data() uses it. Concurrent xattr modification can shrink available inline capacity, causing ext4_write_inline_data() to hit BUG_ON(pos + len > i_inline_size). The fix recalculates inline data state after acquiring xattr_sem.
Likely exposure
Exposure is most likely on Linux systems using ext4 where local processes, containers, or workloads can write inline-data files and modify extended attributes. The bundle lists Linux as affected, but does not provide distribution-specific package names or a complete version-to-fix mapping.
Exploitation context
The source bundle does not show CISA KEV listing or active exploitation. The described trigger is a race between write operations and xattr changes, leading to a crash rather than documented privilege escalation or data theft. Remote exploitability is not established by the provided sources.
Researcher notes
The evidence supports an ext4 race condition fixed by refreshing inline data size after xattr_sem acquisition. Severity, CVSS, CWE, and exploitation details are absent in the bundle. Avoid claiming more than local crash potential unless vendor advisories add stronger impact analysis.
Mitigation direction
Apply vendor-provided Linux kernel updates containing the referenced ext4 fixes.
Check distribution advisories for the corrected kernel package in your supported branch.
For Siemens environments, review SSA-019113 for product-specific guidance.
Prioritize shared, multi-tenant, or container hosts using ext4.
If no update is available, follow vendor mitigation guidance rather than ad hoc workarounds.
Validation and detection
Inventory Linux hosts and identify ext4 filesystems in use.
Check running kernel versions against vendor advisories and referenced stable commits.
Review kernel logs for BUG_ON entries mentioning fs/ext4/inline.c.
Confirm whether untrusted local workloads can modify xattrs on ext4 files.
Verify Siemens product exposure against SSA-019113 where applicable.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-68264 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.