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

ext4: fix kernel BUG in ext4_write_inline_data_end

When the data=journal mount option is used, the ext4_journalled_write_end()
function incorrectly calls ext4_write_inline_data_end() without checking
if the EXT4_STATE_MAY_INLINE_DATA flag is still set on the inode.

If a previous attempt to convert the inline data to an extent failed (e.g.
due to ENOSPC), the EXT4_STATE_MAY_INLINE_DATA flag is cleared, but
the EXT4_INODE_INLINE_DATA flag remains set. In this scenario, the next
call to ext4_write_begin() will not prepare the inline data xattr for
writing, but ext4_journalled_write_end() will incorrectly attempt to write
to it, triggering a BUG_ON(pos + len > EXT4_I(inode)->i_inline_size) in
ext4_write_inline_data() since i_inline_size was not expanded.

Fix this by ensuring that ext4_journalled_write_end() only calls
ext4_write_inline_data_end() if the EXT4_STATE_MAY_INLINE_DATA flag is
set, mirroring the behavior of ext4_write_end() and ext4_da_write_end().
Published: 2026-08-15
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An ext4 kernel bug was identified in which the function ext4_write_inline_data_end is called without verifying that the inode still allows inline data. When a previous attempt to convert inline data to an extent fails, a flag is cleared while a related flag remains set. Subsequent writes trigger a BUG_ON in ext4_write_inline_data, causing the kernel to panic. This flaw does not directly expose secrets; its primary impact is system unavailability if an attacker can force writes to a filesystem with the data=journal option enabled.

Affected Systems

All Linux kernel builds supplying the ext4 filesystem prior to the commit that introduced the guard on ext4_journalled_write_end. The issue applies to any kernel that supported the data=journal mount option and inline data proposals.

Risk and Exploitability

The CVSS score is 5.5, and the EPSS score is < 1%, but the vulnerability is not featured in CISA KEV. Because the trigger requires local filesystem writes with the data=journal option, the attack vector is local. An attacker who can write to a mounted ext4 volume could cause a denial‑of‑service through a kernel panic, but the lack of public exploit and restricted prerequisites keep the risk moderate. Updating the kernel to a version with the patch eliminates the vulnerability.

Generated by OpenCVE AI on August 22, 2026 at 00:38 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that incorporates the ext4_write_inline_data_end patch
  • Until a kernel update is available, avoid using the data=journal mount option on ext4 volumes
  • Monitor system logs for BUG_ON events and ensure no inline data conversion failures occur during operation

Generated by OpenCVE AI on August 22, 2026 at 00:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 21 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-805
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low


Sat, 15 Aug 2026 12:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-252
CWE-703

Sat, 15 Aug 2026 06:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ext4: fix kernel BUG in ext4_write_inline_data_end When the data=journal mount option is used, the ext4_journalled_write_end() function incorrectly calls ext4_write_inline_data_end() without checking if the EXT4_STATE_MAY_INLINE_DATA flag is still set on the inode. If a previous attempt to convert the inline data to an extent failed (e.g. due to ENOSPC), the EXT4_STATE_MAY_INLINE_DATA flag is cleared, but the EXT4_INODE_INLINE_DATA flag remains set. In this scenario, the next call to ext4_write_begin() will not prepare the inline data xattr for writing, but ext4_journalled_write_end() will incorrectly attempt to write to it, triggering a BUG_ON(pos + len > EXT4_I(inode)->i_inline_size) in ext4_write_inline_data() since i_inline_size was not expanded. Fix this by ensuring that ext4_journalled_write_end() only calls ext4_write_inline_data_end() if the EXT4_STATE_MAY_INLINE_DATA flag is set, mirroring the behavior of ext4_write_end() and ext4_da_write_end().
Title ext4: fix kernel BUG in ext4_write_inline_data_end
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:16:57.145Z

Reserved: 2026-08-15T05:44:03.883Z

Link: CVE-2026-74308

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:30.653

Modified: 2026-08-17T06:19:24.997

Link: CVE-2026-74308

cve-icon Redhat

Severity : Low

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-74308 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T00:45:05Z

Weaknesses
  • CWE-252

    Unchecked Return Value

  • CWE-703

    Improper Check or Handling of Exceptional Conditions

  • CWE-805

    Buffer Access with Incorrect Length Value