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

VectorAV: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 data function is vulnerable due to its use of an unsigned int for the len parameter, which can cause an overflow.
  • The /fs/ext4/inline.c file is involved in the vulnerability, specifically the ext4 write inline data function.
  • Variables such as pos and len are 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

Weakness Enumeration

Related Identifiers

AZL-64746
BDU:2025-10768
CVE-2025-38222
DLA-4327-1
DLA-4328-1
DSA-5973-1
ECHO-A36D-7DAC-D8BE
MGASA-2025-0218
MGASA-2025-0219
OESA-2025-1959
OESA-2025-1960
OESA-2025-1961
OESA-2025-1963
OESA-2025-1964
OESA-2025-2080
OPENSUSE-SU-2025:20081-1
SUSE-SU-2025:02846-1
SUSE-SU-2025:02853-1
SUSE-SU-2025:02923-1
SUSE-SU-2025:02969-1
SUSE-SU-2025:02996-1
SUSE-SU-2025:02997-1
SUSE-SU-2025:03011-1
SUSE-SU-2025:03023-1
SUSE-SU-2025:20577-1
SUSE-SU-2025:20586-1
SUSE-SU-2025:20601-1
SUSE-SU-2025:20602-1
SUSE-SU-2025:21074-1
SUSE-SU-2025:21139-1
SUSE-SU-2025:21179-1
SUSE-SU-2025_02846-1
SUSE-SU-2025_02853-1
SUSE-SU-2025_02969-1
SUSE-SU-2025_02996-1
SUSE-SU-2025_02997-1
SUSE-SU-2025_03011-1
SUSE-SU-2025_03023-1
USN-7774-1
USN-7774-2
USN-7774-3
USN-7774-4
USN-7774-5
USN-7775-1
USN-7775-2
USN-7775-3
USN-7776-1
USN-7833-1
USN-7833-2
USN-7833-3
USN-7833-4
USN-7834-1
USN-7856-1
USN-8028-1
USN-8028-2
USN-8028-3
USN-8028-4
USN-8028-5
USN-8028-6
USN-8028-7
USN-8028-8
USN-8031-1
USN-8031-2
USN-8031-3
USN-8052-1
USN-8052-2
USN-8074-1
USN-8074-2
USN-8126-1

Affected Products

Astra Linux
Debian
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu