CVE-2022-50435
kernel: ext4: avoid crash when inline data creation follows DIO write
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · October 1, 2025
Updated · June 30, 2026
Description
A flaw was found in the ext4 filesystem implementation in the Linux kernel. When a file is created and written via direct I/O (DIO), the flag EXT4_STATE_MAY_INLINE_DATA is not cleared. Subsequently, if the inode is truncated and then written using buffered I/O, the filesystem may attempt to store inline data and normal blocks for the same inode. This inconsistent state may lead to a kernel crash (BUG) or panic.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
CVSS / CWE
CVSS 3.1 · 4.7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-664 · Improper Control of a Resource Through its Lifetime