PT-2025-27997 · Linux+6 · Linux Kernel+6
Published
2025-07-04
·
Updated
2026-04-20
·
CVE-2025-38222
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions:
Linux kernel versions prior to the fixed version
Description:
A vulnerability has been identified in the Linux kernel related to the ext4 filesystem with the inline data feature enabled. The issue arises from a length overflow in the ext4 prepare inline data function, which can lead to a bug when writing to a file. This occurs because the write begin function succeeds, but later, when write end is called, it hits a BUG ON condition due to the truncated pos + len value. The estimated number of potentially affected devices worldwide is not specified. There is no information about real-world incidents where this issue was exploited.
Technical details about exploitation include:
- The
ext4 prepare inline datafunction is vulnerable due to its use of an unsigned int for the len parameter, which can cause an overflow. - The
/fs/ext4/inline.cfile is involved in the vulnerability, specifically theext4 write inline datafunction. - Variables such as
posandlenare used in the vulnerable code, and their values can lead to the overflow condition.
Recommendations:
To resolve the issue, update the Linux kernel to a version that includes the fix for the length overflow in the ext4 prepare inline data function.
As a temporary workaround, consider disabling the inline data feature for ext4 filesystems until a patch is available.
Exploit
Fix
RCE
Integer Overflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Astra Linux
Debian
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu